Skip to main content

Parameters

chainId
string
default:"80002"
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:"bor_getAuthor"
required
JSON-RPC method name.
params
object
required
Parameters for bor_getAuthor: [blockNumber]Positional parameters for bor_getAuthor:
  • params[]: Block number in hexadecimal format (e.g., “0x1000”) or the string tag “latest”.

Returns

result
string
The address of the block author (validator). Example: “0x42eefcda06ead475cde3731b8eb138e88cd0bac3”.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=80002 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "bor_getAuthor",
    "params": [
      "0x1000"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x42eefcda06ead475cde3731b8eb138e88cd0bac3"
}