aibank
API ReferenceTransfers

Transfer Tokens

Transfer tokens from a wallet to an external address.

Transfer Tokens

Send tokens from a managed wallet to any external address. Spending controls are enforced before the transfer is executed.

Authentication

Requires X-API-Key header.

Path parameters

ParameterTypeDescription
idstringWallet UUID

Request body

Request

curl -X POST http://localhost:4000/v1/wallets/WALLET_ID/transfer \
  -H "X-API-Key: ak_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "base",
    "to": "0xRecipientAddress",
    "amount": "10.00",
    "currency": "USDC"
  }'

Response (200)

{
  "transaction_id": "tx-uuid",
  "tx_hash": "0xabc123def456...",
  "from": "0x742d35Cc...",
  "to": "0xRecipientAddress",
  "amount": "10.00",
  "currency": "USDC",
  "chain": "base",
  "status": "confirmed"
}

Response fields

FieldTypeDescription
transaction_idstringInternal transaction UUID
tx_hashstringOn-chain transaction hash
fromstringSender address
tostringRecipient address
amountstringAmount transferred
currencystringToken symbol
chainstringChain used
statusstringconfirmed, pending, or failed

Errors

StatusCodeDescription
400INVALID_INPUTInvalid chain, missing fields, or bad amount
403DAILY_LIMIT_EXCEEDEDSpending control violation
403PER_TX_LIMIT_EXCEEDEDAmount exceeds per-transaction limit
403ADDRESS_NOT_ALLOWEDRecipient not in allowlist
404NOT_FOUNDWallet not found
500TRANSFER_FAILEDOn-chain transfer failed

On this page