Get extended information about address
cURL
curl --request GET \ --url https://toncenter.com/api/v2/getExtendedAddressInformation
200
Example
{ "ok": true, "result": { "@type": "fullAccountState", "address": { "@type": "accountAddress", "account_address": "<string>" }, "balance": "<string>", "extra_currencies": [ { "@type": "extraCurrency", "id": 123, "amount": "<string>" } ], "last_transaction_id": { "@type": "internal.transactionId", "lt": "<string>", "hash": "<string>" }, "block_id": { "@type": "ton.blockIdExt", "workchain": 123, "shard": "<string>", "seqno": 123, "root_hash": "<string>", "file_hash": "<string>" }, "sync_utime": 123, "account_state": { "@type": "raw.accountState", "code": "<string>", "data": "<string>", "frozen_hash": "<string>" }, "revision": 123 } }
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.v2.accounts.get_extended_address_information( ADDRESS, ) print(result.model_dump_json(indent=4)) if __name__ == "__main__": asyncio.run(main())
Identifier of target TON account in any form
Seqno of a block
OK
true
Show child attributes