Get smart contract information.
cURL
curl --request GET \ --url https://toncenter.com/api/v3/addressInformation
{ "balance": "<string>", "code": "<string>", "data": "<string>", "frozen_hash": "<string>", "last_transaction_hash": "<string>", "last_transaction_lt": "<string>", "status": "<string>" }
import asyncio from toncenter.rest import ToncenterRestClient from toncenter.types import Network ADDRESS = "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2" async def main() -> None: async with ToncenterRestClient(network=Network.MAINNET) as client: result = await client.v3.api_v2.get_address_information( address=ADDRESS, ) print(result.model_dump_json(indent=4)) if __name__ == "__main__": asyncio.run(main())
Account address in any form.
Use method from api/v2. Not recommended
OK