POST
/
eth_gasPrice
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_gasPrice \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_gasPrice",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "result": "0x17d7840",
  "id": 1
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_gasPrice
required

The method to call

id
integer
default:1
required

Request identifier

params
any[]

No parameters

Response

200 - application/json
Returns the current gas price
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

The current gas price in wei

Example:

"0x17d7840"