v4

latestOpenAPI 3.1.02026-08-01131465.2 KB
AutoBoy Wallet

Withdraw an asset

Withdraws an ERC-20 token or native ETH from the AutoBoy smart wallet associated with the API key to any destination address.

  • chain selects the network to withdraw from, and defaults to base when omitted.
  • tokenAddress must be a contract on that chain — the same address on a different chain is a different asset.
  • The endpoint waits for the on-chain receipt and returns the final transaction hash.
post/api/public/v1/wallet/withdrawals

Request body

chain'base' | 'robinhood'

Chain to withdraw from. Defaults to base when omitted.

withdrawAddressstring required

Destination address that receives the withdrawn asset.

tokenAddressstring required

ERC-20 contract address, or the native-ETH sentinel 0xEeee…EEeE.

amountstring required

Decimal amount to withdraw, e.g. "12.5", or "max" to withdraw the entire on-chain balance of the asset.

Example request

{
  "chain": "base",
  "withdrawAddress": "0x1234567890123456789012345678901234567890",
  "tokenAddress": "0x1234567890123456789012345678901234567890",
  "amount": "12.5"
}

Response

The withdrawal was confirmed on-chain.

txHashstring required

Hash of the confirmed on-chain transaction.

chain'base' | 'robinhood' required

Chain the withdrawal was executed on.

tokenAddressstring required
withdrawAddressstring required
amountstring required

Atomic units actually transferred, base-10 string.

Example response

{
  "txHash": "0xa3f5c9e1b7d2048fa3f5c9e1b7d2048fa3f5c9e1b7d2048fa3f5c9e1b7d2048f",
  "chain": "base",
  "tokenAddress": "0x1234567890123456789012345678901234567890",
  "withdrawAddress": "0x1234567890123456789012345678901234567890",
  "amount": "12500000"
}