Comment on page
eth_hashrate
Returns the number of hashes per second that the node is mining with. Only applicable when the node is mining.
NOTE : BSC Web3API is not mining, hence it will always return a
0x0
hash rate. Command Shell
Bash
curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY
-X POST
-H "Content-Type: application/json"
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_hashrate\",\"params\": [],\"id\":1}"
curl -X POST 'https://bsc-<network>.web3api.com/v1/YOUR-API-KEY' \
-H 'Content-Type: application/json' \
--data-raw '{"jsonrpc":"2.0","method":"eth_hashrate","params": [],"id":1}'
Request Parameters
Response
No parameters required.
Result Fields
HASHRATE
- A hex code of an integer representing the number of hashes per second. Body
{
"jsonrpc":"2.0",
"id":1,
"result":"0x0"
}
Last modified 2yr ago