Get wallet address

Create a connection

Connect to the wallet using the sample code

NaboxWallet.request({ method: 'eth_requestAccounts' });
// ['0x09A5e.....']

Monitor account changes

When the wallet account is switched, the wallet will issue a corresponding event reminder. You can use the following time to monitor address changes:

NaboxWallet.on('accountsChanged', handler: (accounts: Array) => void);

Last updated