Optionalconfig: ConfigOptional CDP configuration. If provided, will initialize the SDK. If omitted, assumes SDK is already initialized (e.g., via CDPHooksProvider).
Object containing ready flag and wallet instance
// Within CDPHooksProvider (SDK already initialized)
function MyComponent() {
const { ready, wallet } = useCdpSolanaStandardWallet();
// ...
}
// Standalone usage (initialize SDK)
function MyComponent() {
const { ready, wallet } = useCdpSolanaStandardWallet({
projectId: "your-project-id"
});
// ...
}
Hook to get the CDP Standard Solana Wallet with ready state.
This hook monitors the user's Solana accounts from CDP core and: