TONX API provides a comprehensive suite of TON APIs to simplify and optimize common request patterns, dramatically enhancing the developer experience.
TONX API ushers in a new era of TON API software stacks in the TON blockchain with instant scaling, 99.9% uptime, and seamless tools for a unified developer experience. Below is a complete list of TON API methods tailored for various use cases.
Messages API
- Estimate Fee: Estimate transaction fees of the given message processing. This may vary depending on the action content and the time elapsing.
- Get Message: Get detailed information on the given TON blockchain message.
- Send Message: Send a new message to the TON blockchain.
Accounts API
- Get Account Balance: Get the TON token balance of the given address.
- Get Address Information: Get the basic account state of the given address, e.g., TON balance, account status, and last transaction timestamp.
- Get Address State: Get the state string of the given address.
- Get Extended Address Information: Get the additional information about the given address.
- Account Reverse DNS Resolution: Get the account's TON Domain names by its account_id.
- Emulate Message To Account Event: Simulate sending a message to the account.
- Get Account Information: Get human-friendly information about an account.
- Get Account Difference: Get the account's balance change over a period of time.
- Get Account DNS Expiring: Get TON Domain name expiring information about an account.
- Get Account Event: Get the specific event for an account.
- Get Account Events: Get the events for an account where the event is built on top of a series of related transactions.
- Get Account Jetton Balance: Get Jetton balance by the owner's address.
- Get Account Jetton History By ID: Get the transfer jetton history for the account and the Jetton.
- Get Account All Jettons Balances: Get all of Jettons balances by the owner's address.
- Get Account Jettons History: Get the transfer Jetton history for the account.
Blocks API
- Get Block Header: Get a specific block header for the given block number.
- Get Block Transactions: Get all transactions using the given block number.
- Get Consensus Block: Get block details of the consensus layer in the TON blockchain.
- Get Masterchain Block Signatures: Get Merkle signatures for the given block number.
- Get Masterchain Info: Get latest Masterchain block information.
Note: Expiration Time
The Messages /Accounts / Blocks api are direct api, which retrieving your data directly through the TON peer-to-peer network. Through Direct API, you will be able to access low-level blockchain data more than other TON blockchain explorers.
Please be aware of the property of Direct API , it could only obtain data within 24 hours. This is the nature restriction from TON nodes, because it continuously does garbage collection with a small time window.
NFT API
- Get NFT Collections: Get information about NFT Collection, e.g., owner address, next index of the un-minted NFT Item, last transaction timestamp, parsed JSON metadata of the contract.
- Get NFT Items: Get information about NFT Item, e.g., owner address, the address of NFT Collection it belongs to, last transaction timestamp, parsed JSON metadata of the contract.
- Get NFT Transfers: Get the transaction details of transferring NFT Item.
Transactions API
- Get TON Transactions: Get the detail information of TON blockchain transactions.
Jettons API
- Get Jetton Masters: Get information about Jetton Master, e.g., admin address, total supply, last transaction timestamp, parsed JSON metadata of the contract.
- Get Jetton Transfers: Get transaction details of Jetton Transfer message.
- Get Jetton Wallets: Get information about Jetton Wallet, e.g., token balance, owner address, the address of Jetton Master it belongs to.
- Get Jetton Burns: Get the transaction details of Jetton Burn message.
Trace API
- Get Trace of Transactions:- Retrieve a trace using its trace ID or the hash of any transaction within the trace.
- Emulate Message To Trace:- Simulate sending a message to the blockchain.
Generic API
- Run Get Method: Execute the smart contract get-method of the given address.
- Get Token Data: Get comprehensive information about Jetton Master, Jetton Wallet, NFT Collection, and NFT Item contracts.
TONX Lab APIs: Advanced Tools for TON Developers
At TONX Lab, we create powerful TON APIs and tools through the TONX API, specifically designed for TON developers. As a team actively building real use cases in the TON ecosystem, we understand the challenges and complexities of the TON API development process. TONX Lab APIs were created to address these challenges, aiming to make TON development smoother, more efficient, and less cumbersome.
-
BoC Parsing Tools: The Bag of Cells (BoC) is a format used to serialize cells into byte arrays. In TON, everything—from contract code and stored data to blocks—is composed of cells, providing streamlined flexibility for developers.
Our BoC Parsing Tool ensures your BoC is valid and ready to use, allowing you to verify it before sending any messages to the chain. -
BoC Status API: TON operates as an asynchronous chain, which can make handling simultaneous messages complex. The BoC Status API simplifies this by letting you easily check whether a BoC has completed successfully or failed. If an error occurs, it can help identify underlying issues causing the failure.