Overview
The v2 Server Wallet allows you to create accounts on EVM compatible networks and the Solana network. In this quickstart, you will learn how to:- Create EVM and Solana accounts
- Fund your accounts with testnet tokens using CDP Faucets
- Send a transaction using
viem
for Typescript orweb3
for Python
Prerequisites
Setup all dependencies, export your keys to environment variables, and initialize a new project before you begin. It is assumed you have:- Node.js 22.x+ if using Typescript
- Python 3.10+ if using Python
- Created and signed in to an existing CDP account
Create keys
Sign in to the CDP Portal, create a CDP API key and generate a Wallet Secret. Keep these values handy as you will need them in the following steps. For more information, see the CDP API Keys and Wallet Secret documentation.Project setup
After creating your keys, initialize a new project and instantiate the CDP client.1. Create an account
The v2 Server Wallet offers support for both EVM compatible accounts and Solana accounts.EVM
To create an EVM account, see below:You can also create accounts with human-readable names and retrieve them later using the
getOrCreateAccount
method.See the Managing Accounts guide for more information.Solana
To create a Solana account, see below:2. Fund account with test funds
Accounts do not have funds on creation. We provide a Faucet API to easily fund your EVM account with testnet tokens and Solana account with devnet tokens.Before you request funds, ensure you read about rate limits when using CDP Faucets.
EVM
Solana
3. Send a transaction
EVM
You can send transactions using the v2 Server Wallet.Note that in order to wait for transaction confirmation, you will need to have In the example below, we:
viem
installed:- Create a new EVM account.
- Request ETH from the faucet.
- Use the v2 Server Wallet to send a transaction.
- Wait for transaction confirmation.
main.ts
Solana
You can send transactions on Solana using the In the example below, we:
@solana/web3.js
v1 library.- Create a new Solana account.
- Request SOL from the faucet.
- Wait for funds to become available.
- Send the transaction to a specified address.
main.ts
Video: Watch and learn
Watch the video to learn about CDP Wallets and see a comprehensive demo, which covers:- Overview of CDP Server Wallet v2 features and capabilities
- Live demonstration of creating accounts and managing wallets
- Best practices for building with CDP Wallets
What to read next
- v2 Wallet Accounts: An overview of the types of accounts supported by the v2 Server Wallet.
- Using Smart Accounts: A step-by-step guide on how to create and use smart accounts.
- v2 Wallet Security: Learn about the security features of the v2 Server Wallet.
- Faucets: Learn more on supported testnet assets and their associated rate limits.