Request
Parameters
None.Returns
Errors
Related
wallet_addSubAccount, create a new sub-account.- Sub-accounts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
List sub-accounts the current application has previously created for the connected user.
const { subAccounts } = await provider.request<{ subAccounts: SubAccount[] }>({
method: 'wallet_getSubAccounts',
})
{
subAccounts: [
{
address: '0x...',
chainId: '0x74c',
factory: '0x...',
factoryData: '0x...',
},
],
}
| Code | Cause |
|---|---|
4100 | Wallet not connected |
wallet_addSubAccount, create a new sub-account.