Coinbase Wallet SDK
wallet_addSubAccount
Add a sub account to the wallet
Experimental RPC method for creating sub accounts
Creates a new sub account associated with the main wallet account. Sub accounts allow for hierarchical account management and delegation.
Parameters
The account configuration object.
Returns
Sub account information including address and deployment details.
Error Handling
Code | Message | Description |
---|---|---|
4001 | User rejected the request | User denied creating the sub account |
4100 | Requested method not supported | The method is not supported by the wallet |
-32602 | Invalid params | Invalid account configuration |
This is an experimental feature and the API may change in future versions.