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 0x0hash rate.

Example

Command Shell
Bash
1
curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY
2
-X POST
3
-H "Content-Type: application/json"
4
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_hashrate\",\"params\": [],\"id\":1}"
Copied!
1
curl -X POST 'https://bsc-<network>.web3api.com/v1/YOUR-API-KEY' \
2
-H 'Content-Type: application/json' \
3
--data-raw '{"jsonrpc":"2.0","method":"eth_hashrate","params": [],"id":1}'
Copied!
Request Parameters
Response
No parameters required.
Result Fields
HASHRATE - A hex code of an integer representing the number of hashes per second.
Body
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x0"
5
}
Copied!
Last modified 5mo ago
Copy link
Contents
Example