AppController_getGasPrice
GEThttps://api.socket.tech/v2/gas-price
AppController_getGasPrice
Request​
Query Parameters
chainId stringrequired
ID of chain, e.g Ethereum Mainnet = 1
Example: 1
Responses​
- 200
Current gas prices for a chain
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
result
object
required
chainId number
txType number
fast
object
gasPrice number
estimatedSeconds number
normal
object
gasPrice number
estimatedSeconds number
slow
object
gasPrice number
estimatedSeconds number
{
"success": true,
"result": {
"chainId": 0,
"txType": 0,
"fast": {
"gasPrice": 0,
"estimatedSeconds": 0
},
"normal": {
"gasPrice": 0,
"estimatedSeconds": 0
},
"slow": {
"gasPrice": 0,
"estimatedSeconds": 0
}
}
}
Loading...