# TON API ## Docs - [AI Plugin](https://tonapi.ness.su/claude-plugin.md): Claude Code plugin for TONAPI - [Errors](https://tonapi.ness.su/errors.md): Exception hierarchy and HTTP error codes - [Getting Started](https://tonapi.ness.su/index.md): Python SDK for TONAPI - [Account Dns Back Resolve](https://tonapi.ness.su/rest/account_dns_back_resolve_get.md): Get account's domains - [Address Parse](https://tonapi.ness.su/rest/address_parse_get.md): parse address and display in all formats - [Blockchain Account Inspect](https://tonapi.ness.su/rest/blockchain_account_inspect_get.md): Blockchain account inspect - [Decode Message](https://tonapi.ness.su/rest/decode_message_post.md): Decode a given message. Only external incoming messages can be decoded currently. - [Dns Resolve](https://tonapi.ness.su/rest/dns_resolve_get.md): DNS resolve for domain name - [Download Blockchain Block Boc](https://tonapi.ness.su/rest/download_blockchain_block_boc_get.md): Download blockchain block BOC - [Emulate Message To Account Event](https://tonapi.ness.su/rest/emulate_message_to_account_event_post.md): Emulate sending message to retrieve account-specific events - [Emulate Message To Event](https://tonapi.ness.su/rest/emulate_message_to_event_post.md): Emulate sending message to retrieve general blockchain events - [Emulate Message To Trace](https://tonapi.ness.su/rest/emulate_message_to_trace_post.md): Emulate sending message to retrieve with a detailed execution trace - [Emulate Message To Wallet](https://tonapi.ness.su/rest/emulate_message_to_wallet_post.md): Emulates a wallet message on the current blockchain state and derives its consequences for the signing wallet - [Exec Get Method For Blockchain Account](https://tonapi.ness.su/rest/exec_get_method_for_blockchain_account_get.md): Execute get method for account - [Exec Get Method With Body For Blockchain Account](https://tonapi.ness.su/rest/exec_get_method_with_body_for_blockchain_account_post.md): Execute get method for account - [Gasless Config](https://tonapi.ness.su/rest/gasless_config_get.md): Returns configuration of gasless transfers - [Gasless Estimate](https://tonapi.ness.su/rest/gasless_estimate_post.md): Estimates the cost of the given messages and returns a payload to sign - [Gasless Send](https://tonapi.ness.su/rest/gasless_send_post.md): Submits the signed gasless transaction message to the network - [Get Account Diff](https://tonapi.ness.su/rest/get_account_diff_get.md): Get account's balance change - [Get Account Dns Expiring](https://tonapi.ness.su/rest/get_account_dns_expiring_get.md): Get expiring account .ton dns - [Get Account Event](https://tonapi.ness.su/rest/get_account_event_get.md): Get event for an account by event_id - [Get Account Events](https://tonapi.ness.su/rest/get_account_events_get.md): Get events for an account. Each event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Trans… - [Get Account Extra Currency History By Id](https://tonapi.ness.su/rest/get_account_extra_currency_history_by_id_get.md): Get the transfer history of extra currencies for an account. - [Get Account](https://tonapi.ness.su/rest/get_account_get.md): Get human-friendly information about an account without low-level details. - [Get Account Info By State Init](https://tonapi.ness.su/rest/get_account_info_by_state_init_post.md): Get account info by state init - [Get Account Jetton Balance](https://tonapi.ness.su/rest/get_account_jetton_balance_get.md): Get Jetton balance by owner address - [Get Account Jetton History By Id](https://tonapi.ness.su/rest/get_account_jetton_history_by_id_get.md): Please use `getJettonAccountHistoryByID`` instead - [Get Account Jettons Balances](https://tonapi.ness.su/rest/get_account_jettons_balances_get.md): Get all Jettons balances by owner address - [Get Account Jettons History](https://tonapi.ness.su/rest/get_account_jettons_history_get.md): Get the transfer jettons history for account - [Get Account Multisigs](https://tonapi.ness.su/rest/get_account_multisigs_get.md): Get account's multisigs - [Get Account Nft History](https://tonapi.ness.su/rest/get_account_nft_history_get.md): Get the transfer nft history - [Get Account Nft Items](https://tonapi.ness.su/rest/get_account_nft_items_get.md): Get all NFT items by owner address - [Get Account Nominators Pools](https://tonapi.ness.su/rest/get_account_nominators_pools_get.md): All pools where account participates - [Get Account Public Key](https://tonapi.ness.su/rest/get_account_public_key_get.md): Get public key by account id - [Get Account Seqno](https://tonapi.ness.su/rest/get_account_seqno_get.md): Get account seqno - [Get Account Subscriptions](https://tonapi.ness.su/rest/get_account_subscriptions_get.md): Get all subscriptions by wallet address - [Get Account Traces](https://tonapi.ness.su/rest/get_account_traces_get.md): Get traces for account - [Get Accounts](https://tonapi.ness.su/rest/get_accounts_post.md): Get human-friendly information about several accounts without low-level details. - [Get All Auctions](https://tonapi.ness.su/rest/get_all_auctions_get.md): Get all auctions - [Get All Raw Shards Info](https://tonapi.ness.su/rest/get_all_raw_shards_info_get.md): Get all raw shards info - [Get Blockchain Account Transactions](https://tonapi.ness.su/rest/get_blockchain_account_transactions_get.md): Get account transactions - [Get Blockchain Block](https://tonapi.ness.su/rest/get_blockchain_block_get.md): Get blockchain block data - [Get Blockchain Block Transactions](https://tonapi.ness.su/rest/get_blockchain_block_transactions_get.md): Get transactions from block - [Get Blockchain Config From Block](https://tonapi.ness.su/rest/get_blockchain_config_from_block_get.md): Get blockchain config from a specific block, if present. - [Get Blockchain Config](https://tonapi.ness.su/rest/get_blockchain_config_get.md): Get blockchain config - [Get Blockchain Masterchain Blocks](https://tonapi.ness.su/rest/get_blockchain_masterchain_blocks_get.md): Get all blocks in all shards and workchains between target and previous masterchain block according to shards last blocks snapshot in masterchain. We don't recommend to build your app around this method because it has problem with scalability and will work very slow in the future. - [Get Blockchain Masterchain Head](https://tonapi.ness.su/rest/get_blockchain_masterchain_head_get.md): Get last known masterchain block - [Get Blockchain Masterchain Shards](https://tonapi.ness.su/rest/get_blockchain_masterchain_shards_get.md): Get blockchain block shards - [Get Blockchain Masterchain Transactions](https://tonapi.ness.su/rest/get_blockchain_masterchain_transactions_get.md): Get all transactions in all shards and workchains between target and previous masterchain block according to shards last blocks snapshot in masterchain. We don't recommend to build your app around this method because it has problem with scalability and will work very slow in the future. - [Get Blockchain Raw Account](https://tonapi.ness.su/rest/get_blockchain_raw_account_get.md): Get low-level information about an account taken directly from the blockchain. - [Get Blockchain Transaction By Message Hash](https://tonapi.ness.su/rest/get_blockchain_transaction_by_message_hash_get.md): Get transaction data by message hash - [Get Blockchain Transaction](https://tonapi.ness.su/rest/get_blockchain_transaction_get.md): Get transaction data - [Get Blockchain Validators](https://tonapi.ness.su/rest/get_blockchain_validators_get.md): Get blockchain validators - [Get Chart Rates](https://tonapi.ness.su/rest/get_chart_rates_get.md): Get chart by token - [Get Dns Info](https://tonapi.ness.su/rest/get_dns_info_get.md): Get full information about domain name - [Get Domain Bids](https://tonapi.ness.su/rest/get_domain_bids_get.md): Get domain bids - [Get Event](https://tonapi.ness.su/rest/get_event_get.md): Get an event either by event ID or a hash of any transaction in a trace. An event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaning… - [Get Extra Currency Info](https://tonapi.ness.su/rest/get_extra_currency_info_get.md): Get extra currency info by id - [Get Items From Collection](https://tonapi.ness.su/rest/get_items_from_collection_get.md): Get NFT items from collection by collection address - [Get Jetton Account History By Id](https://tonapi.ness.su/rest/get_jetton_account_history_by_id_get.md): Get the transfer jetton history for account and jetton - [Get Jetton Holders](https://tonapi.ness.su/rest/get_jetton_holders_get.md): Get jetton's holders - [Get Jetton Info](https://tonapi.ness.su/rest/get_jetton_info_get.md): Get jetton metadata by jetton master address - [Get Jetton Infos By Addresses](https://tonapi.ness.su/rest/get_jetton_infos_by_addresses_post.md): Get jetton metadata items by jetton master addresses - [Get Jetton Transfer Payload](https://tonapi.ness.su/rest/get_jetton_transfer_payload_get.md): Get jetton's custom payload and state init required for transfer - [Get Jettons Events](https://tonapi.ness.su/rest/get_jettons_events_get.md): Get only jetton transfers in the event - [Get Jettons](https://tonapi.ness.su/rest/get_jettons_get.md): Get a list of all indexed jetton masters in the blockchain. - [Get Library By Hash](https://tonapi.ness.su/rest/get_library_by_hash_get.md): Get library cell - [Get Markets Rates](https://tonapi.ness.su/rest/get_markets_rates_get.md): Get the TON price from markets - [Get Multisig Account](https://tonapi.ness.su/rest/get_multisig_account_get.md): Get multisig account info - [Get Multisig Order](https://tonapi.ness.su/rest/get_multisig_order_get.md): Get multisig order - [Get Nft Collection](https://tonapi.ness.su/rest/get_nft_collection_get.md): Get NFT collection by collection address - [Get Nft Collection Items By Addresses](https://tonapi.ness.su/rest/get_nft_collection_items_by_addresses_post.md): Get NFT collection items by their addresses - [Get Nft Collections](https://tonapi.ness.su/rest/get_nft_collections_get.md): Get NFT collections - [Get Nft History By Id](https://tonapi.ness.su/rest/get_nft_history_by_id_get.md): Please use `getAccountNftHistory`` instead - [Get Nft Item By Address](https://tonapi.ness.su/rest/get_nft_item_by_address_get.md): Get NFT item by its address - [Get Nft Items By Addresses](https://tonapi.ness.su/rest/get_nft_items_by_addresses_post.md): Get NFT items by their addresses - [Get Openapi Json](https://tonapi.ness.su/rest/get_openapi_json_get.md): Get the openapi.json file - [Get Openapi Yml](https://tonapi.ness.su/rest/get_openapi_yml_get.md): Get the openapi.yml file - [Get Out Msg Queue Sizes](https://tonapi.ness.su/rest/get_out_msg_queue_sizes_get.md): Get out msg queue sizes - [Get Purchase History](https://tonapi.ness.su/rest/get_purchase_history_get.md): Get history of purchases - [Get Rates](https://tonapi.ness.su/rest/get_rates_get.md): Get the token price in the chosen currency for display only. Don’t use this for financial transactions. - [Get Raw Account State](https://tonapi.ness.su/rest/get_raw_account_state_get.md): Get raw account state - [Get Raw Block Proof](https://tonapi.ness.su/rest/get_raw_block_proof_get.md): Get raw block proof - [Get Raw Blockchain Block](https://tonapi.ness.su/rest/get_raw_blockchain_block_get.md): Get raw blockchain block - [Get Raw Blockchain Block Header](https://tonapi.ness.su/rest/get_raw_blockchain_block_header_get.md): Get raw blockchain block header - [Get Raw Blockchain Block State](https://tonapi.ness.su/rest/get_raw_blockchain_block_state_get.md): Get raw blockchain block state - [Get Raw Blockchain Config From Block](https://tonapi.ness.su/rest/get_raw_blockchain_config_from_block_get.md): Get raw blockchain config from a specific block, if present. - [Get Raw Blockchain Config](https://tonapi.ness.su/rest/get_raw_blockchain_config_get.md): Get raw blockchain config - [Get Raw Config](https://tonapi.ness.su/rest/get_raw_config_get.md): Get raw config - [Get Raw List Block Transactions](https://tonapi.ness.su/rest/get_raw_list_block_transactions_get.md): Get raw list block transactions - [Get Raw Masterchain Info Ext](https://tonapi.ness.su/rest/get_raw_masterchain_info_ext_get.md): Get raw masterchain info ext - [Get Raw Masterchain Info](https://tonapi.ness.su/rest/get_raw_masterchain_info_get.md): Get raw masterchain info - [Get Raw Shard Block Proof](https://tonapi.ness.su/rest/get_raw_shard_block_proof_get.md): Get raw shard block proof - [Get Raw Shard Info](https://tonapi.ness.su/rest/get_raw_shard_info_get.md): Get raw shard info - [Get Raw Time](https://tonapi.ness.su/rest/get_raw_time_get.md): Get raw time - [Get Raw Transactions](https://tonapi.ness.su/rest/get_raw_transactions_get.md): Get raw transactions - [Get Reduced Blockchain Blocks](https://tonapi.ness.su/rest/get_reduced_blockchain_blocks_get.md): Get reduced blockchain blocks data - [Get Staking Pool History](https://tonapi.ness.su/rest/get_staking_pool_history_get.md): Pool history - [Get Staking Pool Info](https://tonapi.ness.su/rest/get_staking_pool_info_get.md): Stacking pool info - [Get Staking Pools](https://tonapi.ness.su/rest/get_staking_pools_get.md): All pools available in network - [Get Storage Providers](https://tonapi.ness.su/rest/get_storage_providers_get.md): Get TON storage providers deployed to the blockchain. - [Get Ton Connect Payload](https://tonapi.ness.su/rest/get_ton_connect_payload_get.md): Get a payload for further token receipt - [Get Trace](https://tonapi.ness.su/rest/get_trace_get.md): Get the trace by trace ID or hash of any transaction in trace - [Get Wallet Info](https://tonapi.ness.su/rest/get_wallet_info_get.md): Get human-friendly information about a wallet without low-level details. - [Get Wallets By Public Key Bulk](https://tonapi.ness.su/rest/get_wallets_by_public_key_bulk_post.md): Get wallets by a list of public keys - [Get Wallets By Public Key](https://tonapi.ness.su/rest/get_wallets_by_public_key_get.md): Get wallets by public key - [Guide](https://tonapi.ness.su/rest/guide.md): Client setup, sessions, retries, and key rotation - [Overview](https://tonapi.ness.su/rest/overview.md): Accounts, blockchain, jettons, NFTs, and more - [Reindex Account](https://tonapi.ness.su/rest/reindex_account_post.md): Update internal cache for a particular account - [Search Accounts](https://tonapi.ness.su/rest/search_accounts_get.md): Search by account domain name - [Send Blockchain Message](https://tonapi.ness.su/rest/send_blockchain_message_post.md): Send message to blockchain - [Send Raw Message](https://tonapi.ness.su/rest/send_raw_message_post.md): Send raw message to blockchain - [Status](https://tonapi.ness.su/rest/status_get.md): Status - [Ton Connect Proof](https://tonapi.ness.su/rest/ton_connect_proof_post.md): Account verification and token issuance - [Guide](https://tonapi.ness.su/streaming/guide.md): Client setup, subscriptions, opcodes, and reconnection - [Overview](https://tonapi.ness.su/streaming/overview.md): SSE and WebSocket subscriptions with automatic reconnection - [Utilities](https://tonapi.ness.su/utilities.md): Address conversion and amount formatting - [Create Webhook](https://tonapi.ness.su/webhooks/create_webhook_post.md): Create a new webhook and configure its callback endpoint. Returns a webhook ID and a secret token for verifying incoming requests. - [Delete Webhook](https://tonapi.ness.su/webhooks/delete_webhook_delete.md): Delete a webhook and all its subscriptions. - [Get Account TX Subscriptions](https://tonapi.ness.su/webhooks/get_account_tx_subscriptions_get.md): List account transaction subscriptions for this webhook with pagination. - [Guide](https://tonapi.ness.su/webhooks/guide.md): Client setup, subscriptions, and event handling - [List Webhooks](https://tonapi.ness.su/webhooks/list_webhooks_get.md): List all configured webhooks with their status and subscription counts. - [Overview](https://tonapi.ness.su/webhooks/overview.md): Push notifications for blockchain events - [Subscribe to Account TX](https://tonapi.ness.su/webhooks/subscribe_account_tx_post.md): Subscribe to transactions on the specified accounts. When a new transaction happens on any of the accounts, TONAPI sends a POST request to the webhook URL. - [Subscribe to Mempool MSG](https://tonapi.ness.su/webhooks/subscribe_mempool_post.md): Subscribe to mempool events. When a new message enters the mempool, TONAPI sends a POST request to the webhook URL. - [Subscribe to Opcode MSG](https://tonapi.ness.su/webhooks/subscribe_msg_opcode_post.md): Subscribe to messages with a specific opcode. When a new transaction happens with a message that contains the specified opcode, TONAPI sends a POST request to the webhook URL. - [Subscribe to New Contracts](https://tonapi.ness.su/webhooks/subscribe_new_contracts_post.md): Subscribe to events about new contract deployments. When a new contract is deployed to the blockchain, TONAPI sends a POST request to the webhook URL. - [Unsubscribe from Account TX](https://tonapi.ness.su/webhooks/unsubscribe_account_tx_post.md): Unsubscribe from transactions on the specified accounts. - [Unsubscribe from Mempool MSG](https://tonapi.ness.su/webhooks/unsubscribe_mempool_post.md): Unsubscribe from mempool events. - [Unsubscribe from Opcode MSG](https://tonapi.ness.su/webhooks/unsubscribe_msg_opcode_post.md): Stop receiving webhook notifications for messages with the specified opcode. - [Unsubscribe from New Contracts](https://tonapi.ness.su/webhooks/unsubscribe_new_contracts_post.md): Stop receiving webhook notifications when a new contract is deployed to the blockchain. ## OpenAPI Specs - [webhooks](https://tonapi.ness.su/openapi/webhooks.yml) - [openapi](https://tonapi.ness.su/openapi/openapi.yml) Built with [Mintlify](https://mintlify.com).