Virtual account blockchain fees

Estimate ledger to blockchain transaction fee

2 credits per API call.


Estimate current transaction fee for ledger to blockchain transaction.
Supported blockchains:

  • Bitcoin
  • Litecoin
  • Dogecoin

SecurityX-API-Key
Request
Request Body schema: application/json
senderAccountId
required
string = 24 characters

Sender account ID

address
required
string [ 1 .. 10000 ] characters

Blockchain address to send assets to. For BTC, LTC, DOGE and BCH, it is possible to enter list of multiple recipient blockchain addresses as a comma separated string.

amount
required
string <= 38 characters ^[+]?((\d+(\.\d*)?)|(\.\d+))$

Amount to be withdrawn to blockchain.

multipleAmounts
Array of strings

For BTC, LTC, DOGE and BCH, it is possible to enter list of multiple recipient blockchain amounts. List of recipient addresses must be present in the address field and total sum of amounts must be equal to the amount field.

attr
string [ 1 .. 256 ] characters

Used to parametrize withdrawal as a change address for left coins from transaction. XPub or attr must be used.

xpub
string [ 1 .. 150 ] characters

Extended public key (xpub) of the wallet associated with the accounts.

Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

403

Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.

500

Internal server error. There was an error on the server while processing the request.

post/v3/offchain/blockchain/estimate
Request samples
application/json
{
  • "senderAccountId": "5e68c66581f2ee32bc354087",
  • "address": "mpTwPdF8up9kidgcAStriUPwRdnE9MRAg7",
  • "amount": "0.001",
  • "multipleAmounts": [
    ],
  • "attr": "string",
  • "xpub": "xpub6EsCk1uU6cJzqvP9CdsTiJwT2rF748YkPnhv5Qo8q44DG7nn2vbyt48YRsNSUYS44jFCW9gwvD9kLQu9AuqXpTpM1c5hgg9PsuBLdeNncid"
}
Response samples
application/json
{
  • "fast": "0.006584",
  • "medium": "0.004584",
  • "slow": "0.002584"
}