Estimate transaction fees

This endpoint is design to work with LAM operators. Estimate transaction fees from a create transaction payload.

Security(Ledger_API_Key and Ledger_API_User) or Ledger_API_Key and Ledger_API_User and Ledger_Store_Auth_Token) or Ledger_API_User or Ledger_API_User and Ledger_Store_Auth_Token)
Request
Request Body schema: application/json
account_name
required
string

The account's name.

amount
string or null^[0-9]*(\.[0-9]+)?$
Default: null

The amount to be sent, in the currency's lowest unit. For Smart Contract interaction, use "0" instead of null

(BitcoinFieldsLAM (object or null)) or (TezosFieldsLAM (object or null)) or (EthereumAndEvmFieldsLAM (object or null)) or (RippleFieldsLAM (object or null)) or (StellarFieldsLAM (object or null)) or (SolanaStakeCreateAndDelegateFieldsLAM (object or null)) or (SolanaStakeActionFieldsLAM (object or null)) or (SolanaStakeMergeFieldsLAM (object or null)) or (CardanoFieldsLAM (object or null)) or (PolkadotFieldsLAM (object or null))
Default: null

coin specific data

recipient
required
string

The recipient's address.

speed
required
string

The transaction's processing speed.

Enum: "CUSTOM" "FAST" "NORMAL" "SLOW"
Responses
200

attributes of the transaction to estimate

400

Invalid transaction parameters

post/transactions/fees
Request samples
application/json
{
  • "account_name": "string",
  • "amount": null,
  • "coin_fields": null,
  • "recipient": "string",
  • "speed": "CUSTOM"
}
Response samples
application/json
{
  • "coin_fields": null,
  • "max_fees": "string",
  • "max_fees_buffer_factor": 0
}
Copyright © Ledger Enterprise Platform 2023. All right reserved.