curl --request POST \
--url https://mcp.echozero.app/api/v1/wallet/withdraw \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '{
"amount": 25
}'{
"success": true,
"data": {
"success": true,
"transactionId": "<string>",
"amount": 123,
"tokenSymbol": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"tradeId": "<string>",
"openTradeUpdatePending": true
}
}Wallet
Withdraw funds
Mirrors GraphQL withdrawFunds. Requires HMAC signing. Withdrawals that require MFA return MFA_VERIFICATION_REQUIRED — complete MFA in the main app, then retry. API-key sessions cannot satisfy withdrawal MFA. Real withdraws share the wallet spend reservation with buy/sell. Concurrent same-mint transfers fail with WITHDRAWAL_IN_PROGRESS. Redis down returns WALLET_LOCK_UNAVAILABLE. Frozen wallets return WALLET_FROZEN / HTTP 403.
POST
/
api
/
v1
/
wallet
/
withdraw
curl --request POST \
--url https://mcp.echozero.app/api/v1/wallet/withdraw \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '{
"amount": 25
}'{
"success": true,
"data": {
"success": true,
"transactionId": "<string>",
"amount": 123,
"tokenSymbol": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"tradeId": "<string>",
"openTradeUpdatePending": true
}
}Headers
Body
application/json
OpenAPI: McpWalletOperationBodyDto. toAddress is required for withdrawal.