Skip to main content

Endpoints

NetworkURL
Mainnethttps://toncenter.com/api/v3
Testnethttps://testnet.toncenter.com/api/v3

SDK Usage

import asyncio

from toncenter.rest import ToncenterRestClient
from toncenter.types import Network

async def main() -> None:
    async with ToncenterRestClient(network=Network.MAINNET) as client:
        result = await client.v3.accounts.get_wallet_states(address=["EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"])
        print(result)


if __name__ == "__main__":
    asyncio.run(main())
Resource groupProperty
Accountsclient.v3.accounts
Actionsclient.v3.actions
Blockchainclient.v3.blockchain
Jettonsclient.v3.jettons
NFTsclient.v3.nfts
DNSclient.v3.dns
Multisigclient.v3.multisig
Vestingclient.v3.vesting
Statsclient.v3.stats
Utilsclient.v3.utils
API V2client.v3.api_v2
Retries for 429 and 5xx are enabled by default with exponential backoff. See Reference for retry policy, rate limiting, and session management.

Errors

V3 API typically returns status codes 401, 404, 409, 422, and 500. See Reference for the full exception hierarchy, descriptions, and handling examples.