TON
TON API is available on Web3 API platform.
The Open Network (TON) is a decentralized and open internet platform made up of several components. These include: TON Blockchain, TON DNS, TON Storage, and TON Sites. TON Blockchain is the core protocol that connects TON’s underlying infrastructure together to form the greater TON Ecosystem.
TON is focused on achieving widespread cross-chain interoperability, while operating in a highly scalable secure framework. TON is designed to process millions of transactions per second (TPS), with the goal of eventually reaching hundreds of millions of users moving forward.
Currently, we provide two interfaces to query TON API — JSON-RPC and REST. Responses for both of them come in JSON format.
JSON-RPC/REST methods
Accounts — info about accounts:
getAddressInformation— retrieves address info.getExtendedAddressInformation— retrieves extended address info.getWalletInformation— retrieves wallet info.getTransactions— retrieves transactions.getAddressBalance— retrieves address balance.getAddressState— retrieves address state.packAddress— packs address.unpackAddress— unpacks address.getTokenData— retrieves token data.detectAddress— detects address.
Blocks — info about blocks:
getMasterchainInfo— retrieves masterchain info.getMasterchainBlockSignatures— retrieves masterchian block signatures.getShardBlockProof— retrieves shard block proof.getConsensusBlock— retrieves consensus block.lookupBlock— looks up block.shards— retrieves shards.getBlockTransactions— retrieves block transactions.getBlockTransactionsExt— retrieves block transactions extended info.getBlockHeader— retrieves block header.getOutMsgQueueSizes— retrieves messages queue sizes.
Transactions — fetching and locating transactions:
getTransactions— retrieves transactions.getBlockTransactions— retrieves block transactions.getBlockTransactionsExt— retrieves block transactions extended info.tryLocateTx— locates outgoing transaction.tryLocateResultTx— locates outgoing transaction.tryLocateSourceTx— locates incoming transaction.
Get config — getting blockchain config:
getConfigParam— retrieves config param.getConfigAll— retrieves full config.
Run method — running get method of smart contract:
runGetMethod— runs get method.
Send — sending data to blockchain:
estimateFee— estimates fee.
Methods
Methods
getAddressInformationgetExtendedAddressInformationgetWalletInformationgetTransactionsgetAddressBalancegetAddressStatepackAddressunpackAddressgetTokenDatadetectAddressgetMasterchainInfogetMasterchainBlockSignaturesgetShardBlockProofgetConsensusBlocklookupBlockshardsgetBlockTransactionsgetBlockTransactionsExtgetBlockHeadergetOutMsgQueueSizesgetTransactionsgetBlockTransactionsgetBlockTransactionsExttryLocateTxtryLocateResultTxtryLocateSourceTx