Wallet connection
Read the selected account and understand the signature prompt.
Connect on the site
Use Connect wallet on the mining desk and choose your provider. The wallet asks whether this site may see your selected account. Keep the intended account selected before starting a round.
Read the connected account
For an injected wallet, eth_accounts returns the accounts already exposed to the page. It does not request a signature or a transaction. An empty array means this provider has not exposed an account to this page.
Run this after connecting. It reads only the first account and prints a shortened version locally.
const provider = window.ethereum;
if (!provider?.request) {
console.log('Use the site wallet picker.');
} else {
try {
const accounts = await provider.request({ method: 'eth_accounts' });
const address = accounts[0];
console.log(address
? `${address.slice(0, 6)}…${address.slice(-4)}`
: 'No account connected.');
} catch {
console.log('Wallet connection unavailable.');
}
}Authorize a round
Starting a round opens a wallet message-signing prompt. Review it in the wallet. The desk requires that signature to continue. Never enter a seed phrase or private key into the site or these examples.
Change accounts
Stop the search before changing accounts. Check the newly selected account in the site header, then start a new session. An earlier account connection is not authorization for a different wallet.