Overview
Accounts refer to an address on a blockchain that has the ability to sign transactions on behalf of the address, allowing you to not only send and receive funds, but also interact with smart contracts. Cryptographically, an account corresponds to a private/public key pair.
The v2 Server Wallet supports the following account types:
- EVM Compatible Accounts:
- EOAs: Externally Owned Accounts on any EVM-compatible blockchain that have the ability to sign transactions on behalf of an account’s address (i.e., when using a Smart Account).
- Smart Account: A smart contract-based account that can provide advanced functionality such as gas sponsorships and spend permissions.
- Solana Accounts: An account on the Solana blockchain.
More code samples are available in our Typescript
and Python SDK repositories.
EVM accounts
When using the v2 Server Wallet, ensure you understand the differences between our two offered account types, Externally Owned Accounts (EOAs) and Smart Accounts so that you select the proper type for your application. The v2 Server Wallet supports EOAs on all EVM-compatible networks and Smart Accounts on **Base, Arbitrum, Optimism, Zora, Polygon, BNB, Avalanche and Ethereum Mainnet **.EOA vs Smart Accounts
While both account types enable blockchain interactions, they differ significantly in their architecture, capabilities, and constraints:Feature | EOA | Smart Account |
---|---|---|
Control | Private key generated and secured in CDP’s TEE | Controlled by smart contract code with an owner account (can be a CDP-managed EOA or bring your own) |
Creation | Generated new or imported from existing private key | Created with CREATE2 opcode, deployed on first operation |
Transaction type | Direct, signed blockchain transactions | Bundled transactions (user operations) |
Gas payment | Must pay gas fees directly | Gas sponsorship available via paymaster (subsidized on Base Sepolia) |
Batch operations | Single operation at a time | Multiple calls in a single user operation |
Owner requirements | None required | Requires an owner account (CDP EOA or external) |
CDP limitations | None | One smart account per owner, one owner per smart account |
Network support | All EVM networks supported by CDP | Base, Arbitrum, Optimism, Zora, Polygon, BNB, Avalanche and Ethereum Mainnet |
Concurrent operations | Can have multiple pending transactions | Support for concurrent userOperations |
viem compatibility | Works seamlessly with viem for all onchain actions | Smart account owners work seamlessly with viem for all onchain actions |
web3/eth-account compatibility | Works seamlessly with web3.py and eth-account libraries for all onchain actions | Smart account owners work seamlessly with web3.py and eth-account libraries for all onchain actions |
Faucet support | Base, Ethereum, Solana | Base, Ethereum, Solana |
Need support for additional networks? Reach out to us on the Coinbase Developer Platform Discord in the #cdp-sdk channel.
Use cases
Use EOAs when:- You need support across all EVM networks
- You require simple wallet functionality
- You don’t need gas sponsorship features
- You’re building on Base Sepolia or Base Mainnet
- You need to batch multiple operations in one transaction
- You want to sponsor gas fees for users
- You need EIP-4337 account abstraction features
Implementation
EOAs are controlled directly by a private key.EOAs
EOAs can be created new or imported from existing private keys. The following example shows both methods:Unlike Solana, EVM signing is handled automatically by the CDP SDK. When you call
sendTransaction()
for EOAs or sendUserOperation()
for Smart Accounts, CDP manages the entire signing and submission process - you don’t need to manually serialize, sign, or submit transactions.Smart Accounts
Smart Accounts operate through deployed smart contracts, enabling advanced features through EIP-4337 Account Abstraction. When creating a Smart Account, an EOA must be provided as the owner (either a CDP-managed EOA or an external EOA). A Smart Account is not deployed until its first user operation:Smart Accounts use the CREATE2 opcode for deterministic addresses, allowing the contract address to be known before deployment.
Solana accounts
Solana accounts represent addresses on the Solana blockchain that can hold SOL and other tokens. They function similarly to EOAs on EVM chains but with some key differences in capabilities and architecture.Features
Here’s what’s available for Solana accounts in the v2 Server Wallet:Feature | Solana Account Support | Notes |
---|---|---|
Control | Private key secured in CDP’s TEE | Similar to EVM EOAs |
Creation | Generate new or import existing | From base58 or raw private keys |
Transaction signing | Native Solana transactions | See sending transactions |
Message signing | Off-chain message signing | See message signing |
Gas payment | Must pay fees directly | Sender pays transaction fees |
Fee sponsorship | Via feePayer property | See sponsoring transactions |
Batch operations | Multiple instructions per transaction | See batching instructions |
Token transfers | SOL and SPL tokens | See transfers |
Program interactions | Any Solana program | Full support |
Faucet support | Solana devnet only | See quickstart |
Network support | Mainnet and Devnet | solana and solana-devnet |
CDP currently supports standard Solana accounts (similar to EOAs on EVM). While Solana does support programmable wallets and PDAs, these advanced account types are not yet available through CDP’s Server Wallet v2.
Implementation
Creating and using Solana accounts with the CDP Server Wallet is straightforward. This example demonstrates creating an account, funding it via faucet, and signing a message:Transaction signing
Beyond basic account operations, you’ll often need to sign and send transactions. While message signing, demonstrated above, is used to verify account ownership (e.g., for authentication or off-chain verification), transaction signing is used to authorize actual on-chain actions, such as transferring SOL or interacting with a program. The CDP Server Wallet integrates seamlessly with the Solana Web3.js library for transaction handling. For complete examples of creating Solana accounts and sending transactions, see:- Quickstart guide: Basic Solana account creation and transactions using CDP with Solana’s Web3 library
- Sending transactions: How to send transactions using the CDP Server Wallet
- Batching Instructions: Execute multiple Solana instructions in a single transaction
- Sponsor Transactions: Learn about fee sponsorship on Solana
What to read next
- v2 Security: Learn about the security features of v2 Server Wallet.
- API Reference: Explore the complete API reference for v2 Server Wallet.