Server Wallet: Transfer
resource: transfer — move funds out of a CDP-managed wallet (XFR01–XFR02)
sendNative (XFR01) wallet secret required, confirmed
Sends the network's native token (e.g. ETH on Base) from a managed account to any address.
| Field | Required | Description |
|---|---|---|
accountName | ✓ Yes | The sending account (from account/getOrCreate). |
toAddress | ✓ Yes | Destination address. |
amount | ✓ Yes | Must be positive. |
network | No | Defaults to base-sepolia. See Networks. |
Output: single transfer record — transactionHash, fromAddress, toAddress, amount, token, network.
Safe to retry: an idempotency key (
X-Idempotency-Key) is generated once per attempt and reused on retry — confirmed behavior, unlike swap/execute below.
sendErc20 (XFR02) wallet secret required, confirmed
Sends an ERC-20 token from a managed account to any address.
| Field | Required | Description |
|---|---|---|
accountName | ✓ Yes | The sending account. |
toAddress | ✓ Yes | Destination address. |
token | ✓ Yes | ERC-20 token to send. |
amount | ✓ Yes | Must be positive. |
network | No | Defaults to base-sepolia. |
Output: same shape as sendNative. Same confirmed idempotency handling.