🟪 Polygon
bor_getAuthor

Polygon API Documentation


bor_getAuthor RPC Method

The bor_getAuthor returns the author of the specified block on Polygon

ℹ️

bor_getAuthor method is only availible on Polygon.

Parameters

block number - string - Block number hex encoded, or the tag latest to get the latest block.

Returns

string - Address of the author on Polygon.

🔌 To use bor_getAuthor you must be connected to a blockchain node.

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard
  • You can use a different supported network by replacing polygon-mainnet
curl https://polygon-mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"id": "1", "jsonrpc":"2.0","method":"bor_getAuthor","params": ["0x2DC6C00"]}'

Body

{
"id":"1",
"result":"0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49",
"jsonrpc":"2.0"
}

💡 Confusing?

Ask our experienced blockchain developers in Telegram

JSON-RPC Polygon API Documentation by CHAINNODES is based on Erigon node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or reth