EVM Token Transfers
Basic ETH Transfer
Transfer ETH using the high-leveltransfer method:
- TypeScript
- Python
ERC-20 Token Transfer
Transfer ERC-20 tokens (like USDC, USDT, DAI):- TypeScript
- Python
Token Decimals Guide:
- ETH, WETH: 18 decimals
- USDC, USDT: 6 decimals
- DAI: 18 decimals
Transfer to Another Account
You can transfer directly to another CDP account:- TypeScript
- Python
Smart Account Transfers
Smart accounts can transfer tokens via user operations, optionally with gas sponsorship:- TypeScript
- Python
Solana Token Transfers
SOL Transfer
Transfer native SOL tokens:- TypeScript
- Python
Solana Units:
- 1 SOL = 1,000,000,000 lamports (9 decimals)
- Always specify amounts in lamports
SPL Token Transfer
Transfer SPL tokens (Solana’s equivalent to ERC-20):- TypeScript
- Python
Checking Token Balances
Before transferring, check token balances:EVM Balances
- TypeScript
- Python
Complete Transfer Example
Here’s a complete example with faucet funding and confirmation:- TypeScript
- Python
Troubleshooting
Insufficient Balance
If the transfer fails due to insufficient balance:Gas Estimation Failed
Ensure the account has enough native tokens (ETH/SOL) for gas:Transfer to Invalid Address
Always validate addresses before transferring:- TypeScript
- Python