Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function useCreateSolanaAccount(): { createSolanaAccount: (options?: CreateSolanaAccountOptions) => Promise<string>; };
createSolanaAccount()
options?
CreateSolanaAccountOptions
Promise
string
import { useCreateSolanaAccount } from '@coinbase/cdp-hooks'; function MyComponent() { const { createSolanaAccount } = useCreateSolanaAccount(); const handleCreateAccount = async () => { try { const account = await createSolanaAccount(); console.log('Solana account created:', account); } catch (error) { console.error('Failed to create Solana account:', error); } }; return <button onClick={handleCreateAccount}>Create Solana Account</button>; }
Was this page helpful?