eth_gasPrice

Returns the number of hashes per second that the node is mining with.

GET https://api.securerpc.com/v1/ethereum/:network/eth_gasPrice

HEADERS

Content-Type: application/json

EXAMPLE

// HTTP GET
curl https://api.securerpc.com/v1/ethereum/mainnet/eth_gasPrice
// HTTP POST
curl https://mainnet.backbonecabal.xyz/ \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_gasPrice","params": [],"id":1}'
// WEBSOCKETS
>wscat -c wss://mainnet.backbonecabal.xyz/ws
>{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":73}

RESULT FIELDS

  • HASHRATE - a hex code of an integer representing the current gas price in wei.

BODY

{
jsonrpc: "2.0",
id: 1,
result: "0x3b9acde7"
}