Send USDC
Send USDC to an Ethereum address or ENS name on Base
Send USDC
Transfer USDC from your wallet to any Ethereum address or ENS name on Base.
Command
Arguments
| Argument | Description |
|---|---|
amount | Amount to send (see Amount Formats below) |
recipient | Ethereum address (0x...) or ENS name (vitalik.eth) |
Options
| Option | Description |
|---|---|
--chain <name> | Blockchain network (default: base) |
--json | Output result as JSON |
Amount Formats
| Format | Example | Description |
|---|---|---|
| Dollar prefix | '$1.00', '$0.50' | USD notation (single-quote the $) |
| Decimal | 1.0, 0.50 | Human-readable with decimal point |
| Whole number | 5, 100 | Interpreted as whole USDC tokens |
| Atomic units | 500000 | Large integers treated as atomic units |
Important: Always single-quote amounts that use $ to prevent bash variable expansion (e.g. '$1.00' not $1.00).
ENS Resolution
ENS names are automatically resolved to addresses via Ethereum mainnet. The command detects ENS names (any string containing .eth), resolves to an address, and displays both in the output.
Examples
Prerequisites
- Must be authenticated (
npx agnic@latest statusto check; use--token,AGNIC_TOKEN, or browser login) - Wallet must have sufficient USDC balance (
npx agnic@latest balanceto check)
Error Handling
| Error | Solution |
|---|---|
| "Not authenticated" | Provide --token, set AGNIC_TOKEN, or run npx agnic@latest auth login |
| "Insufficient balance" | Check balance with npx agnic@latest balance |
| "Could not resolve ENS name" | Verify the ENS name exists |
| "Invalid recipient" | Must be valid 0x address or ENS name |