cURL
curl --request POST \ --url https://api.ledger.so/v1/withdrawals \ --header 'Api-Key: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "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 a user’s deposit address.
API key for authentication. Get your key from the Dashboard.
ID of the user to withdraw from
Chain ID to withdraw on
Token contract address
Amount in cents
Destination wallet address (optional, defaults to user's registered address)
Withdrawal created
pending
submitted
confirmed
failed
Unix timestamp in milliseconds