curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_submitHashrate",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000500000",
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Used for submitting mining hashrate.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_submitHashrate",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000500000",
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
eth_submitHashrate:params[0]: Data - a hexadecimal string representation (32 bytes) of the hash rate.params[1]: Data - A random hexadecimal(32 bytes) ID identifying the client.true.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_submitHashrate",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000500000",
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Was this page helpful?