Initiates a token transfer from the wallet to a destination address. Supports idempotency via the Idempotency-Key header. Requires an API key with access level 2 or higher.
Path parameters
The wallet ID to transfer from.
Body
Recipient wallet address. Must not contain blank spaces.
Smart contract address of the token to transfer. Omit or leave empty to transfer the native coin.
Amount to transfer. Maximum 9 integer digits and 6 decimal places. Must be greater than 0.
Response
Blockchain transaction hash.
Transaction status. One of PENDING, SUCCESS, FAILED, MANUAL_CHECK.
curl -X POST "https://api.cryptomate.me/mpc/accounts/acc_6f1e2a30-4a3c-4b2e-9a1d-5e8c9b7a1f23/wallets/wallet_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/transfer" \
-H "X-API-KEY: $CRYPTOMATE_API_KEY " \
-H "Idempotency-Key: 4f5b8c9d-1e2a-4b3c-9d8e-7f6a5b4c3d2e" \
-H "Content-Type: application/json" \
-d '{
"to": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": 100.50
}'
200 OK
302 Found
404 Not Found
{
"transaction_hash" : "0x1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890" ,
"status" : "PENDING"
}