POSToptimism_outputAtBlock

This method is used to retrieve the output root at a specific block. Users can call it by providing the block number in hexadecimal format, and a successful call returns the output root for that block. The output root is an important element representing the state of Optimism and can be used to verify the state of a specific block.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

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

  1. block number: Enter the block number to query in hexadecimal string format. This method can query up to the latest 128 blocks.
params[0]string

Block number represents the order of blocks in the chain. It is expressed as a hexadecimal string.

Responses

응답 본문이 없습니다.

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