Skill — Copyable reference implementation. Use as-is or customize. See Skills Philosophy.
Send ETH & Tokens
This guide covers sending ETH to addresses, building and signing transactions, sending ERC20 tokens, and checking transaction status.Prerequisites
- A provider (EIP-1193 compatible)
- Private key for signing (for raw transactions)
- Some ETH for gas
Sending ETH
Using eth_sendTransaction (Wallet Provider)
If you’re using a wallet provider (MetaMask, WalletConnect), the wallet handles signing:Building and Signing Raw Transactions
For programmatic signing without a wallet:Using Denomination Helpers
Convert between ETH, Gwei, and Wei:Sending ERC20 Tokens
Using Contract Module
The Contract module provides type-safe token transfers:With Gas Estimation
Estimate gas before sending to avoid failures:Manual Token Transfer
Build the transaction manually for more control:Checking Transaction Status
Get Transaction Receipt
Get Transaction Details
Wait for Confirmations
Error Handling
Handle common transaction failures:Transaction Types
Voltaire supports all Ethereum transaction types:| Type | Description | Use Case |
|---|---|---|
| Legacy (0) | Original format with gasPrice | Compatibility with older networks |
| EIP-2930 (1) | Access lists | Reduce gas with declared storage |
| EIP-1559 (2) | Dynamic fees | Recommended for mainnet |
| EIP-4844 (3) | Blob transactions | L2 data availability |
| EIP-7702 (4) | EOA delegation | Account abstraction |
Legacy Transaction
EIP-1559 Transaction (Recommended)
Related
- Contract Interaction - Read and write smart contracts
- Event Listening - Monitor Transfer events
- Transaction - Transaction primitive reference
- Denomination - Wei, Gwei, Ether conversions
- JSONRPCProvider - Provider API reference

