Get blockchain configuration parameter
cURL
curl --request GET \ --url https://toncenter.com/api/v2/getConfigParam
200
Example
{ "ok": true, "result": { "@type": "configInfo", "config": { "@type": "tvm.cell", "bytes": "<string>" } } }
import asyncio from toncenter.rest import ToncenterRestClient from toncenter.types import Network PARAM = 0 async def main() -> None: async with ToncenterRestClient(network=Network.MAINNET) as client: result = await client.v2.configuration.get_config_param( PARAM, ) print(result.model_dump_json(indent=4)) if __name__ == "__main__": asyncio.run(main())
Parameter number
Block seqno
OK
true
Show child attributes