ton-http

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Based on ton-http-api (sources/ton-http) and TON Index (Go) v3. For request parameters and return values of any endpoint, use Swagger UI or OpenAPI doc.json.
TON nodes use ADNL binary transport; an HTTP API is an intermediary that accepts HTTP and talks to TON lite servers (via tonlib). Use the public toncenter.com or run your own instance from the ton-http-api repo. TON Index v3 (at toncenter.com) adds indexed REST APIs (accounts, actions, jettons, NFTs, etc.) on top of stored chain data.
基于ton-http-api(sources/ton-http)和TON Index (Go) v3构建。如需查看任意接口的请求参数和返回值,可使用Swagger UIOpenAPI doc.json
TON节点采用ADNL二进制传输协议;HTTP API作为中间层,接收HTTP请求并与TON轻节点(通过tonlib)通信。你可以使用公共服务toncenter.com,也可以从ton-http-api仓库部署自己的实例。TON Index v3(部署在toncenter.com)在已存储的链上数据基础上,新增了索引化的REST API(涵盖账户、操作、Jetton、NFT等)。

Looking up endpoint parameters and return values

查看接口参数和返回值

When calling or wrapping TON Center APIs, consult the above to confirm query/body parameters and response shapes.
在调用或封装TON Center API时,请参考上述资源确认查询/请求体参数及响应格式。

Core References

核心参考文档

TopicDescriptionReference
API groups and SwaggerGroup list, base URL, where to look up params and return valuescore-api-overview
Deployment and configurationRun locally or with Docker; webserver, tonlib, and cache env varscore-deployment-config
主题描述参考链接
API分组与Swagger分组列表、基础URL、参数及返回值查询位置core-api-overview
部署与配置本地或Docker部署;Web服务器、tonlib及缓存环境变量core-deployment-config

API groups (quick reference)

API分组(快速参考)

From ton-http-api (sources/ton-http)

来自ton-http-api(sources/ton-http)

TagDescriptionExample endpoints
accountsAddress info, wallet, balance, state, transactions, pack/unpack, token data
GET /getAddressInformation
,
GET /getWalletInformation
,
GET /getTransactions
,
GET /getAddressBalance
,
GET /getAddressState
,
GET /packAddress
,
GET /unpackAddress
,
GET /getTokenData
,
GET /detectAddress
blocksMasterchain, shards, block lookup, block transactions, block header
GET /getMasterchainInfo
,
GET /shards
,
GET /lookupBlock
,
GET /getBlockTransactions
,
GET /getBlockHeader
,
GET /getShardBlockProof
,
GET /getConsensusBlock
transactionsLocate transactions by message
GET /tryLocateTx
,
GET /tryLocateResultTx
,
GET /tryLocateSourceTx
get configConfig param, libraries
GET /getConfigParam
,
GET /getLibraries
run methodRun get-method on contract
POST /runGetMethod
sendSend BOC/query, estimate fee
POST /sendBoc
,
POST /sendBocReturnHash
,
POST /sendQuery
,
POST /estimateFee
json rpcAll methods via JSON-RPC
POST /jsonRPC
标签描述示例接口
accounts地址信息、钱包、余额、状态、交易、打包/解包、代币数据
GET /getAddressInformation
,
GET /getWalletInformation
,
GET /getTransactions
,
GET /getAddressBalance
,
GET /getAddressState
,
GET /packAddress
,
GET /unpackAddress
,
GET /getTokenData
,
GET /detectAddress
blocks主链、分片、区块查询、区块交易、区块头
GET /getMasterchainInfo
,
GET /shards
,
GET /lookupBlock
,
GET /getBlockTransactions
,
GET /getBlockHeader
,
GET /getShardBlockProof
,
GET /getConsensusBlock
transactions通过消息定位交易
GET /tryLocateTx
,
GET /tryLocateResultTx
,
GET /tryLocateSourceTx
get config配置参数、库
GET /getConfigParam
,
GET /getLibraries
run method在合约上运行get-method
POST /runGetMethod
send发送BOC/查询、估算手续费
POST /sendBoc
,
POST /sendBocReturnHash
,
POST /sendQuery
,
POST /estimateFee
json rpc通过JSON-RPC调用所有方法
POST /jsonRPC

From TON Index v3 (toncenter.com)

来自TON Index v3(toncenter.com)

GroupDescriptionExample endpoints
accountsAccount states, address book, metadata, wallet states
/api/v3/accountStates
,
/api/v3/addressBook
,
/api/v3/metadata
,
/api/v3/walletStates
actionsActions and traces
/api/v3/actions
,
/api/v3/traces
,
/api/v3/pendingActions
,
/api/v3/pendingTraces
api/v2Address info, estimate fee, send message, runGetMethod, wallet info
/api/v3/addressInformation
,
POST /api/v3/estimateFee
,
POST /api/v3/message
,
POST /api/v3/runGetMethod
,
/api/v3/walletInformation
blockchainBlocks, transactions, messages, masterchain
/api/v3/blocks
,
/api/v3/transactions
,
/api/v3/messages
,
/api/v3/masterchainInfo
, etc.
utilsDecode
GET/POST /api/v3/decode
dnsTON DNS
GET /api/v3/dns/records
jettonsJetton masters, wallets, transfers, burns
/api/v3/jetton/masters
,
/api/v3/jetton/wallets
,
/api/v3/jetton/transfers
,
/api/v3/jetton/burns
multisigMultisig wallets and orders
/api/v3/multisig/wallets
,
/api/v3/multisig/orders
nftsNFT collections, items, transfers
/api/v3/nft/collections
,
/api/v3/nft/items
,
/api/v3/nft/transfers
statsTop accounts by balance
/api/v3/topAccountsByBalance
vestingVesting contracts
/api/v3/vesting
分组描述示例接口
accounts账户状态、地址簿、元数据、钱包状态
/api/v3/accountStates
,
/api/v3/addressBook
,
/api/v3/metadata
,
/api/v3/walletStates
actions操作与追踪
/api/v3/actions
,
/api/v3/traces
,
/api/v3/pendingActions
,
/api/v3/pendingTraces
api/v2地址信息、手续费估算、发送消息、runGetMethod、钱包信息
/api/v3/addressInformation
,
POST /api/v3/estimateFee
,
POST /api/v3/message
,
POST /api/v3/runGetMethod
,
/api/v3/walletInformation
blockchain区块、交易、消息、主链
/api/v3/blocks
,
/api/v3/transactions
,
/api/v3/messages
,
/api/v3/masterchainInfo
utils解码
GET/POST /api/v3/decode
dnsTON DNS
GET /api/v3/dns/records
jettonsJetton主合约、钱包、转账、销毁
/api/v3/jetton/masters
,
/api/v3/jetton/wallets
,
/api/v3/jetton/transfers
,
/api/v3/jetton/burns
multisig多签钱包与订单
/api/v3/multisig/wallets
,
/api/v3/multisig/orders
nftsNFT集合、物品、转账
/api/v3/nft/collections
,
/api/v3/nft/items
,
/api/v3/nft/transfers
stats余额排名靠前的账户
/api/v3/topAccountsByBalance
vesting锁仓合约
/api/v3/vesting

External links

外部链接