Documentation Index
Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
Use this file to discover all available pages before exploring further.
function useEvmSmartAccounts(): {
evmSmartAccounts: | null
| EndUserEvmSmartAccount[];
};
Hook to access all EVM smart account objects for the current user.
Returns an array of smart account objects with address, owner addresses, and creation timestamp.
Each EVM EOA can own one smart account.
Returns
{
evmSmartAccounts: | null
| EndUserEvmSmartAccount[];
}
| Name | Type |
|---|
evmSmartAccounts | | null | EndUserEvmSmartAccount[] |
Example
function SmartAccountsList() {
const { evmSmartAccounts } = useEvmSmartAccounts();
if (!evmSmartAccounts || evmSmartAccounts.length === 0) {
return <p>No smart accounts found</p>;
}
return (
<div>
<h3>Your Smart Accounts</h3>
<ul>
{evmSmartAccounts.map((account, index) => (
<li key={account.address}>
Smart Account {index + 1}: {account.address}
<br />
Owners: {account.ownerAddresses.join(', ')}
<br />
Created: {new Date(account.createdAt).toLocaleDateString()}
</li>
))}
</ul>
</div>
);
}