Overview
Fee sponsorship lets CDP pay the Solana network fee on behalf of your users. Users can send transactions without holding SOL in their wallet to cover gas. This feature is in private preview and available to enterprise-scale integrations only. To opt in, apply for access. Once approved, passuseCdpSponsor: true to useSendSolanaTransaction or useSendSolanaUsdc.
Sponsoring a SOL transfer
UseuseSendSolanaTransaction with useCdpSponsor: true. CDP signs the transaction as the fee payer, so users don’t need SOL for the network fee.
sendSolanaTransactionSponsored.tsx
Sponsoring a USDC transfer
UseuseSendSolanaUsdc with useCdpSponsor: true. When createRecipientAta is also enabled, CDP sponsors both the network fee and the associated token account (ATA) rent for the recipient.
sendSolanaUsdcSponsored.tsx
Rate limits
CDP enforces sponsorship limits. If a limit is exceeded, the API returns a429 response. To request a limit increase, reach out in the Coinbase Developer Discord.
What to read next
- Sending Transactions: Build and send Solana transactions without fee sponsorship
- Signing: Sign Solana messages and transactions without broadcasting
- React Hooks: Explore all available CDP hooks for embedded wallets