Skip to content

Get transaction gas estimate

GET
/v2/gas-station/price/tx/{walletId}

Estimate gas required for a specific transaction.

walletId
required
string

The wallet ID

txData
required
string

Transaction data in hex format

Example
0x...
X-API-Key
string

API Key

X-API-Secret
string

API Secret

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
0x59682f00

Bad Request

Unauthorized

Forbidden

Not Found

Internal Server Error