function useCreateEvmEoaAccount(): { createEvmEoaAccount: () => Promise<`0x${string}`>; };
{ createEvmEoaAccount: () => Promise<`0x${string}`>; }
createEvmEoaAccount: () => Promise<`0x${string}`>;
Promise
`0x${string}`
import { useCreateEvmEoaAccount } from '@coinbase/cdp-hooks'; function MyComponent() { const { createEvmEoaAccount } = useCreateEvmEoaAccount(); const handleCreateAccount = async () => { try { const account = await createEvmEoaAccount(); console.log('EVM EOA account created:', account); } catch (error) { console.error('Failed to create EVM EOA account:', error); } }; return <button onClick={handleCreateAccount}>Create EVM EOA Account</button>; }
Was this page helpful?