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
}
Returns the current gas price in wei
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
}
Returns the current gas price
The response is of type object
.
Was this page helpful?