POSTbor_getAuthor

Polygon Mainnethttps://polygon-mainnet.nodit.io/

Returns the address of the validator (or block producer) that created the current block. This method is used to identify the node that produced a block in a PoA network. The block producer is selected according to the network's consensus protocol, and this method reveals the address of the block's "author" or "miner".

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

Enter the following parameters as an array with the appropriate types.

  1. block number or block tag: Enter the block number in hexadecimal string format. You can also enter block tags such as "earliest", "latest", or "pending".
params[0]string

Use either block number or block tag to specify a block.

  • Block number: Hexadecimal string (e.g. "0x1")
  • Block tag: Enum string (e.g. "latest", "earliest", "pending")
    • earliest: The oldest available block on the chain.
    • finalized: A recently finalized block that can no longer be changed. Primarily used in proof-of-stake (PoS) blockchains.
    • safe: A recent block considered safe by the network (immune to reorgs).
    • latest: The most recent block on the chain (may be subject to reorgs).
    • pending: The next block to be mined, including pending transactions in the mempool.
Responses

응답 본문이 없습니다.

X-API-KEY
RequestCU10
cURL
curl -X POST "https://polygon-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "bor_getAuthor",
  "params": [
    "latest"
  ]
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49"
}