The TON Indexer API provides a powerful way to access indexed blockchain data from the TON network. By storing blockchain data in PostgreSQL, this API allows for efficient queries and retrieval of historical information.
Returns first and last blocks information, can be used as a start point for blockchain search process
GET/api/v3/masterchainInfo
Authorization
Response
Successful Response
Body
last*Block
first*Block
Request
Response
Get Blocks
Returns blocks by specified filters.
GET/api/v3/blocks
Authorization
Query parameters
Response
Successful Response
Body
blocks*Blocks
Request
Response
Get Address Book
Generates and returns a user-friendly address book for a given contract address list.
GET/api/v3/addressBook
Authorization
Query parameters
Response
Successful Response
Body
Other propertiesAddressBookEntry
Request
Response
Get Transactions By Message
Returns transactions whose inbound/outbound message has the specified hash. This endpoint returns list of Transaction objects
since collisions of message hashes can occur.
GET/api/v3/transactionsByMessage
Authorization
Query parameters
Response
Successful Response
Body
transactions*Transactions
address_book*Address Book
Request
Response
Get Adjacent Transactions
Returns parent and/or children for specified transaction.
GET/api/v3/adjacentTransactions
Authorization
Query parameters
Response
Successful Response
Body
transactions*Transactions
address_book*Address Book
Request
Response
Send Message
Send external message in boc base64 format to TON network. Returns message hash in hex format.
External messages are sent from the outside to the smart contracts to make them perform certain actions.
For instance, a wallet smart contract expects to receive external messages signed by the wallet's owner.
POST/api/v3/message
Authorization
Body
boc*Boc
Response
Successful Response
Body
message_hash*Message Hash
Hash of sent message in hex format
Request
Response
Get Transactions By Masterchain Block
Returns transactions from masterchain block and from all shards.
GET/api/v3/transactionsByMasterchainBlock
Authorization
Query parameters
Response
Successful Response
Body
transactions*Transactions
address_book*Address Book
Request
Response
Get Masterchain Block Shards
Returns all workchain blocks, that appeared after previous masterchain block.
Note: this method is not equivalent with /api/v2/shards.
GET/api/v3/masterchainBlockShards
Authorization
Query parameters
Response
Successful Response
Body
blocks*Blocks
Request
Response
Get Account Information
Get smart contract information.
GET/api/v3/account
Authorization
Query parameters
Response
Successful Response
Body
balance*Balance
code*Code
data*Data
last_transaction_lt*Last Transaction Lt
last_transaction_hash*Last Transaction Hash
frozen_hash*Frozen Hash
status*AccountStatus
uninitfrozenactivenonexist
Request
Response
Get Wallet Information
Get wallet smart contract information. The following wallets are supported: v1r1, v1r2, v1r3, v2r1, v2r2, v3r1, v3r2, v4r1, v4r2.
In case the account is not a wallet error code 409 is returned.
GET/api/v3/wallet
Authorization
Query parameters
Response
Successful Response
Body
balance*Balance
wallet_type*Wallet Type
seqno*Seqno
wallet_id*Wallet Id
last_transaction_lt*Last Transaction Lt
last_transaction_hash*Last Transaction Hash
status*AccountStatus
uninitfrozenactivenonexist
Request
Response
Get Jetton Wallets
Returns Jetton wallets by specified filters.
GET/api/v3/jetton/wallets
Authorization
Query parameters
Response
Successful Response
Body
jetton_wallets*Jetton Wallets
Request
Response
Get Nft Collections
Returns NFT collections.
GET/api/v3/nft/collections
Authorization
Query parameters
Response
Successful Response
Body
nft_collections*Nft Collections
Request
Response
Get Jetton Masters
Returns Jetton masters by specified filters.
GET/api/v3/jetton/masters
Authorization
Query parameters
Response
Successful Response
Body
jetton_masters*Jetton Masters
Request
Response
Get Jetton Burns
Returns Jetton burns by specified filters.
GET/api/v3/jetton/burns
Authorization
Query parameters
Response
Successful Response
Body
jetton_burns*Jetton Burns
Request
Response
Get Nft Items
Returns NFT items.
GET/api/v3/nft/items
Authorization
Query parameters
Response
Successful Response
Body
nft_items*Nft Items
Request
Response
Estimate Fee
Estimate fees required for query processing.
Body, init_code and init_data accepted in base64 encoded format.
POST/api/v3/estimateFee
Authorization
Body
address*Address
body*Body
init_codeInit Code
init_dataInit Data
ignore_chksigIgnore Chksig
Response
Successful Response
Body
source_fees*Fee
destination_fees*Destination Fees
Request
Response
Get Nft Transfers
Returns NFT transfers by specified filters.
GET/api/v3/nft/transfers
Authorization
Query parameters
Response
Successful Response
Body
nft_transfers*Nft Transfers
Request
Response
Get Jetton Transfers
Returns Jetton transfers by specified filters.
GET/api/v3/jetton/transfers
Authorization
Query parameters
Response
Successful Response
Body
jetton_transfers*Jetton Transfers
Request
Response
Get Shards By Masterchain Block
Returns one masterchain block (with seqno equal to argument) and some number of shard blocks (with masterchain_block_ref.seqno equal to argument)
GET/api/v3/masterchainBlockShardState
Authorization
Query parameters
Response
Successful Response
Body
blocks*Blocks
Request
Response
Run Get Method
Run get method of smart contract. Stack supports only num, cell and slice types: