Look up block by seqno, shard and workchain
cURL
curl --request GET \ --url https://toncenter.com/api/v2/lookupBlock
200
Example
{ "ok": true, "result": { "@type": "ton.blockIdExt", "workchain": 123, "shard": "<string>", "seqno": 123, "root_hash": "<string>", "file_hash": "<string>" } }
import asyncio from toncenter.rest import ToncenterRestClient from toncenter.types import Network WORKCHAIN = 0 SHARD = "-9223372036854775808" SEQNO = 49560770 async def main() -> None: async with ToncenterRestClient(network=Network.MAINNET) as client: result = await client.v2.blocks.lookup_block( WORKCHAIN, SHARD, seqno=SEQNO, ) print(result.model_dump_json(indent=4)) if __name__ == "__main__": asyncio.run(main())
Workchain ID
Shard ID
Seqno of a block
Logical time of a block
UNIX timestamp of a block
OK
true
Extended block identifier.
Show child attributes