Get wallet-specific information about address
cURL
curl --request GET \ --url https://toncenter.com/api/v2/getWalletInformation
200
Example
{ "ok": true, "result": { "@type": "ext.accounts.walletInformation", "wallet": true, "balance": "<string>", "account_state": "uninitialized", "last_transaction_id": { "@type": "internal.transactionId", "lt": "<string>", "hash": "<string>" }, "wallet_type": "wallet v1 r1", "seqno": 123, "wallet_id": 123, "is_signature_allowed": true } }
import asyncio from toncenter.rest import ToncenterRestClient from toncenter.types import Network ADDRESS = "UQCDrgGaI6gWK-qlyw69xWZosurGxrpRgIgSkVsgahUtxZR0" async def main() -> None: async with ToncenterRestClient(network=Network.MAINNET) as client: result = await client.v2.accounts.get_wallet_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