Get transaction gas estimate
GET /v2/gas-station/price/tx/{walletId}
GET
/v2/gas-station/price/tx/{walletId}
Estimate gas required for a specific transaction.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” walletId
required
string
The wallet ID
Query Parameters
Section titled “Query Parameters ” txData
required
string
Transaction data in hex format
Example
0x...Header Parameters
Section titled “Header Parameters ” X-API-Key
string
API Key
X-API-Secret
string
API Secret
Responses
Section titled “ Responses ”Estimated gas price for the transaction
object
isLegacy
required
Whether this is legacy gas pricing
boolean
chainId
required
Chain ID
string
31337 fast
required
Fast gas price in hex string
string
0x8b799121 normal
required
Normal gas price in hex string
string
0x743aa39c slow
required
Slow gas price in hex string
string
0x5cfbb616 feeData
EIP-1559 fee data (only present when isLegacy is false)
object
baseFee
required
Base fee per gas in hex string
string
0x0b lastBaseFeePerGas
required
Last base fee per gas in hex string
string
0x0b maxFeePerGas
required
Max fee per gas in hex string
string
0x59682f16 maxPriorityFeePerGas
required
Max priority fee per gas in hex string
string
0x59682f00Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error