Skip to content

Get gas estimation for a transaction

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

Estimate the gas required for a transaction from the specified wallet.

Note: This API is currently in beta and may be subject to changes.

Authorizations

Parameters

Path Parameters

walletId
required
string

The wallet id used to run the transaction.

Query Parameters

txData
required
string

The hex string of the transaction data.

Responses

200

Successfully retrieved gas estimation for the transaction.

object
txData

A hex string of the transaction data.

string
gasPrice

The gas price estimated for the transaction.

string
gasAmount

The gas amount attached to the transaction.

string

400

Invalid request parameters.

500

Internal server error.