Skip to main content
POST
https://api.uniblock.dev
/
uni
/
v1
/
json-rpc
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
  --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"
  ]
}

Parameters

chainId
string
default:"56"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getWork"
required
JSON-RPC method name.
This method does not require any parameters.

Returns

result
array
Array returned by eth_getWork. Contains [powHash, seedHash, boundary, blockNumber].
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
  --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"
  ]
}