Estimate Transaction Fees
Estimate transaction fees
Authorizations
Body
account_namestringRequired
The account's name.
amountstring | nullableOptionalDefault:
The amount to be sent, in the currency's lowest unit. For Smart Contract interaction, use "0" instead of null
null
Pattern: ^[0-9]*(\.[0-9]+)?$
coin_fieldsone of | nullableOptionalDefault:
coin specific data
null
or
or
or
or
or
or
or
or
or
recipientstringRequired
The recipient's address.
speedstring · enumRequiredPossible values:
The transaction's processing speed.
Responses
200
attributes of the transaction to estimate
application/json
400
Invalid transaction parameters
application/json
post
POST /transactions/fees HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"account_name": "text",
"amount": "text",
"coin_fields": {
"utxo_picking_strategy": "DEEP_OUTPUTS_FIRST"
},
"recipient": "text",
"speed": "CUSTOM"
}
{
"coin_fields": {
"gas_limit": 1,
"gas_price": 1,
"type": "text"
},
"max_fees": "text",
"max_fees_buffer_factor": 1
}