Get library code by their hashes
cURL
curl --request GET \ --url https://toncenter.com/api/v2/getLibraries
200
Example
{ "ok": true, "result": { "@type": "smc.libraryResult", "result": [ { "@type": "smc.libraryEntry", "hash": "<string>", "data": "<string>" } ] } }
import asyncio from toncenter.rest import ToncenterRestClient from toncenter.types import Network LIBRARIES = ["8F452D7A4DFD74066B682365177259ED05734435BE76B5FD4BD5D8AF2B7C3D68"] async def main() -> None: async with ToncenterRestClient(network=Network.MAINNET) as client: result = await client.v2.configuration.get_libraries( LIBRARIES, ) print(result.model_dump_json(indent=4)) if __name__ == "__main__": asyncio.run(main())
Hashes of libraries
OK
true
Show child attributes