Withdrawal

Get withdrawal details

get

Retrieves the details of a specific withdrawal using the withdrawal ID.

Path parameters
withdrawalIdstringrequired

The ID of the withdrawal to retrieve.

Example: f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600
Header parameters
x-api-keystringrequired

API key for authentication.

Example: your-api-key
Responses
curl -L \
  --url 'https://api.ordinalsbot.com/tokenpay/user/withdrawal/{withdrawalId}' \
  --header 'x-api-key: your-api-key'
{
  "id": "f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600",
  "accountId": "user123",
  "protocol": "bitcoin",
  "token": "BTC",
  "amount": 0.5,
  "address": "bc1qh3rp2pns6nrr8mhx0rlzd5kktwm33wc4ax0h4y",
  "state": "completed",
  "createdAt": 1721745751531
}