Funding

Create a withdrawal draft

POST/v1/blockchain-manager/order/withdrawal/draft

Creates a draft withdrawal order that must be accepted before it is submitted to the blockchain. The draft takes the destination address, network, tag and fees from the address book entry referenced by addressBookId, and debits the user's pocket of that currency with the highest balance; the caller only specifies how much to withdraw, either in the cryptocurrency or in a fiat currency.

Checks the balance (including the network fee), the minimum amount for the network and that the user is allowed to withdraw. Nothing is debited yet. The draft expires at expiresAt; after that it cannot be accepted and a new one has to be created.

Authorization

ApiKeyAuth
X-Api-Key<token>

For accessing these endpoints a valid API key must be sent in the X-Api-Key header.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request to create a withdrawal draft. The destination address, network, tag, source pocket and fees are taken from the address book entry referenced by addressBookId. The caller only specifies how much to withdraw.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

Create a withdrawal draft
Example1 of 2
curl --request POST \  --url 'https://gateway.bit2me.com/v1/blockchain-manager/order/withdrawal/draft' \  --header 'Content-Type: application/json' \  --data '{  "addressBookId": "550e8400-e29b-41d4-a716-446655440000",  "amount": {    "currency": "BTC",    "value": "0.5"  }}'
Example1 of 2
{  "addressBookId": "550e8400-e29b-41d4-a716-446655440000",  "amount": "0.5",  "currency": "BTC",  "denomination": {    "amount": "0.5",    "currency": "BTC",    "price": "1"  },  "destinationAddress": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",  "draftId": "550e8400-e29b-41d4-a716-446655440010",  "expiresAt": "2026-06-02T12:00:30.000Z",  "network": "bitcoin",  "networkFee": "0.0001",  "tag": null,  "totalAmount": "0.5001",  "walletPocketId": "550e8400-e29b-41d4-a716-446655440002"}