Download OpenAPI specification:Download
API Documentation for Blockchain Integration Data Query Apis Protocol Rest Queries Fees
CalculateTxFees simulates executing a transaction for estimating gas usage and additional fees. Deprecated: This query is deprecated. It is replaced by the CalculateTxFees query in the x/flatfees module. This query endpoint will be removed in a future release.
| txBytes | string <byte> (tx_bytes) tx_bytes is the transaction to simulate. (proto bytes) |
| defaultBaseDenom | string (default_base_denom) default_base_denom used to be the denom used for gas fees. Deprecated: This field is now ignored. The fees will be in the appropriate denomination(s) automatically. (proto string) |
| gasAdjustment | number <float> (gas_adjustment) gas_adjustment is the adjustment factor to be multiplied against the estimate gas returned by the tx simulation. This only affects the returned gas (since the fee is flat). (proto float) |
{- "txBytes": "string",
- "defaultBaseDenom": "string",
- "gasAdjustment": 0.1
}{- "additionalFees": [
- {
- "denom": "string",
- "amount": "string"
}
], - "totalFees": [
- {
- "denom": "string",
- "amount": "string"
}
], - "estimatedGas": 0
}