Skip to main content
POST
/
wallets
/
withdraw
Withdraw USDC
curl --request POST \
  --url https://api.example.com/wallets/withdraw \
  --header 'Content-Type: application/json' \
  --data '
{
  "toAddress": "<string>",
  "amount": 123,
  "currency": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.midasprotocol.org/llms.txt

Use this file to discover all available pages before exploring further.

Request

toAddress
string
required
Destination wallet address (0x, 40 hex characters).
amount
number
required
Amount of USDC to withdraw. Must be positive.
currency
string
required
Must be "USDC".
curl -X POST https://api.midasprotocol.org/wallets/withdraw \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "toAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD68",
    "amount": 50,
    "currency": "USDC"
  }'

Response

{
  "status": "sent",
  "txHash": "0xabc123...",
  "amount": 50,
  "currency": "USDC",
  "network": "base",
  "toAddress": "0x742d...",
  "explorer": "https://basescan.org/tx/0xabc123..."
}