Create a withdrawal draft
/v1/blockchain-manager/order/withdrawal/draftCreates 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 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
application/json
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" }}'{ "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"}Validate a blockchain address GET
Checks whether an address has a valid format for the given network: its encoding, length, prefix and checksum. Use it to reject a mistyped address before registering it in the address book or sending a withdrawal to it. A well-formed request always returns `200`: `valid` says whether the address is valid and, when it is not, `error` says why. This includes an address of another network and a network the validator does not support: in that case `supported` is `false`, the address could not be checked and `valid` is `false`. In production the address is checked against the mainnet format of the network; in the other environments testnet addresses are also accepted. It does not tell whether the address exists on the blockchain, whether it belongs to anyone or whether funds can be withdrawn to it.
Check if iban is valid POST
Checks whether an IBAN is well formed and its check digits are correct. It does not check that the account exists or who holds it. Send `iban` (required) and `countryCode` (optional) in the JSON body. This operation does not accept query parameters. An invalid IBAN is not an error: the response is `200` with `result: false`.