curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_submitWork",
"params": [
"0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Used for submitting a proof-of-work solution.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_submitWork",
"params": [
"0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
eth_submitWork:params[0]: 8 Bytes - The nonce found (64 bits).params[1]: 32 Bytes - The header’s pow-hash (256 bits)params[2]: Data - 32 Bytes - The mix digest (256 bits).true.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_submitWork",
"params": [
"0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Was this page helpful?