Parameters
- tx_prioritystringREQUIRED
The priority level for the gas price estimation
- TX_PRIORITY_UNSPECIFIEDinteger
Default priority, equivalent to MEDIUM priority (value: 0)
- TX_PRIORITY_LOWinteger
Low priority - gas price at the end of the lowest 10% of gas prices from last 5 blocks (value: 1)
- TX_PRIORITY_MEDIUMinteger
Medium priority - mean of all gas prices from last 5 blocks (value: 2)
- TX_PRIORITY_HIGHinteger
High priority - gas price at the start of the top 10% of gas prices from last 5 blocks (value: 3)
- tx_bytesstringREQUIRED
The encoded transaction bytes to estimate gas usage for
Returns
- estimated_gas_priceinteger
The estimated gas price in utia (micro TIA) based on the requested priority level
- estimated_gas_usedinteger
The estimated amount of gas that will be consumed by the transaction