Withdraw USDC on-chain to an external address
cURL
curl --request POST \ --url https://api.example.com/wallets/withdraw \ --header 'Content-Type: application/json' \ --data ' { "toAddress": "<string>", "amount": 123, "currency": "<string>" } '
"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" }'
{ "status": "sent", "txHash": "0xabc123...", "amount": 50, "currency": "USDC", "network": "base", "toAddress": "0x742d...", "explorer": "https://basescan.org/tx/0xabc123..." }