cURL
curl --request POST \ --url https://api.ledger.so/v1/users/{userId}/withdrawals \ --header 'Api-Key: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "chainId": 123, "tokenAddress": "<string>", "amount": 123, "recipientAddress": "<string>" } '
{ "id": "<string>", "userId": "<string>", "chainId": 123, "tokenAddress": "<string>", "amount": 123, "status": "pending", "createdAt": 123, "recipientAddress": "<string>", "transactionHash": "<string>" }
Withdraw funds from the user’s deposit address.
API key for authentication. Get your key from the Dashboard.
The user ID
Chain ID to withdraw on
Token contract address
Amount in cents
Destination wallet address
Withdrawal created
pending
submitted
confirmed
failed
Unix timestamp in milliseconds