Skip to main content

eth_accounts

Returns the list of Passport accounts that the user has authorised to connect to the dApp.

Params

This method does not accept any parameters.

Result

Returns a Promise that resolves with a string array containing the users Passport wallet address.

Example

const accounts = await provider.request({ method: 'eth_accounts' });
console.log(accounts); // ['0x...']