Parameters
Unique identifier for a blockchain network.
Request identifier used to match responses.
JSON-RPC version.
JSON-RPC method name.
Returns
Array returned by eth_getWork. Contains [powHash, seedHash, boundary, blockNumber].
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=369 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getWork",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0x5EED00000000000000000000000000005EED0000000000000000000000000000",
"0xd1ff1c01710000000000000000000000d1ff1c01710000000000000000000000",
"0x1"
]
}
Returns the hash of the current block, the seedHash, and the boundary condition to be met (“target”).
Show items
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=369 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getWork",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0x5EED00000000000000000000000000005EED0000000000000000000000000000",
"0xd1ff1c01710000000000000000000000d1ff1c01710000000000000000000000",
"0x1"
]
}
Was this page helpful?