Search…
Gas Price
Returns the gas prices for the specified chain

/v2/gas-price

How this endpoint is to be used :
  • Returns the gas prices for the specified chain in terms of price for slow, normal and fast transactions.
  • This endpoint can be used to estimate gas fees for the bridging transaction and display the estimated cost to the user
get
https://api.socket.tech/v2
/gas-price

Description of response parameters

Parameter
Description
chainId
ID of chain, for example Ethereum is 1
txType
Returns 0 for legacy transaction type (Currently the API does not support EIP-1559 enabled transactions)
fast
Returns the gasPrice in wei and the estimatedSeconds in seconds for fast transaction
normal
Returns the gasPrice in wei and the estimatedSeconds in seconds for normal transaction
slow
Returns the gasPrice in wei and the estimatedSeconds in seconds for slow transaction
​
TEST QUERY :
Last modified 3mo ago
Copy link
On this page
get
Description of response parameters