TonApi has a big update today! We make significant improvements to the NFT API and introduce experimental support for events and actions as high-level abstraction over the TON transactions.
Here is the detailed list of changes:
1. Method /v1/annotation/getByAccount has been removed.
2. The field interfaces has been removed from the method /v1/blockchain/account. The method now returns only the raw blockchain data. For more detailed account info please use the new method /v1/account/getInfo.
3. You can now send transactions via TonApi using the method /v1/send/boc.
4. TonApi now indexes on-chain metadata for NFT and Jettons per TIP-64.
5. We add two new methods for working with NFTs: /v1/nft/searchItems and /v1/nft/getItems.
6. We deprecate /v1/nft/getItemsByOwnerAddress, /v1/nft/getItem, /v1/nft/getItemsByCollectionAddress and /v1/nft/getNftForSale. These methods will be removed in the future; please use the two new methods instead (searchItems, getItems).
7. These two methods return links to the preview images and we add transparent support for IPFS.
8. Two new methods for events: /v1/event/getAccountEvents and /v1/event/getEvent. Currently we support only the basic events such as transfers of TON and tokens. We will add more and improve the API in the upcoming updates. You can find the details in the draft specification: https://github.com/tonkeeper/tonapi#events
You can test all changes on https://dev.tonapi.io/ instead of https://tonapi.io/. At 12:00 today it will be shipped to production.
Here is the detailed list of changes:
1. Method /v1/annotation/getByAccount has been removed.
2. The field interfaces has been removed from the method /v1/blockchain/account. The method now returns only the raw blockchain data. For more detailed account info please use the new method /v1/account/getInfo.
3. You can now send transactions via TonApi using the method /v1/send/boc.
4. TonApi now indexes on-chain metadata for NFT and Jettons per TIP-64.
5. We add two new methods for working with NFTs: /v1/nft/searchItems and /v1/nft/getItems.
6. We deprecate /v1/nft/getItemsByOwnerAddress, /v1/nft/getItem, /v1/nft/getItemsByCollectionAddress and /v1/nft/getNftForSale. These methods will be removed in the future; please use the two new methods instead (searchItems, getItems).
7. These two methods return links to the preview images and we add transparent support for IPFS.
8. Two new methods for events: /v1/event/getAccountEvents and /v1/event/getEvent. Currently we support only the basic events such as transfers of TON and tokens. We will add more and improve the API in the upcoming updates. You can find the details in the draft specification: https://github.com/tonkeeper/tonapi#events
You can test all changes on https://dev.tonapi.io/ instead of https://tonapi.io/. At 12:00 today it will be shipped to production.
GitHub
Token Data Standard · Issue #64 · ton-blockchain/TIPs
⚠️ WARNING: Standards are now published and discussed in the TEPs repository. This page may be out of date. Summary A standard interface for tokens (meta)data (in particular NFT or Jettons). Motiva...
👍3🏆1
Minor update for tonapi.
Improved events and actions (now correct support for jettons transfers).
Few methods are marked as deprecated. Be careful - they will be removed in the future. Please check your code.
New methods for sending transactions and estimating their result and fees. Now estimating supports only basic action "ton transfers" but improvements and simulating full chain of transactions is comming.
https://tonapi.io/swagger/
Known bugs: indexing history (AccountEvents) has to big latency (up to 10 minutes).
Improved events and actions (now correct support for jettons transfers).
Few methods are marked as deprecated. Be careful - they will be removed in the future. Please check your code.
New methods for sending transactions and estimating their result and fees. Now estimating supports only basic action "ton transfers" but improvements and simulating full chain of transactions is comming.
https://tonapi.io/swagger/
Known bugs: indexing history (AccountEvents) has to big latency (up to 10 minutes).
🔥3👍2
Also new SDK for TypeScript is available - https://github.com/startfellows/tonapi-sdk-js.
If you need SDK for over languages please contact @subden
If you need SDK for over languages please contact @subden
GitHub
GitHub - startfellows/tonapi-sdk-js: Autogenerated SDK for tonapi.io
Autogenerated SDK for tonapi.io. Contribute to startfellows/tonapi-sdk-js development by creating an account on GitHub.
We accept pull request with additional information about jettons. It required for displaying social links and over data not from the blockchain in our explorer. Also it will be used for marking jettons as "trusted" in Tonkeeper.
https://github.com/tonkeeper/ton-assets/tree/main/jettons - template and example are in the repo.
https://github.com/tonkeeper/ton-assets/tree/main/jettons - template and example are in the repo.
GitHub
ton-assets/jettons at main · tonkeeper/ton-assets
Contribute to tonkeeper/ton-assets development by creating an account on GitHub.
👍7
New version.
Fixed bug with big latency for indexing history. Added validated info about dns names.
From now on the swagger file (and his diffs can be tracked in public repo). Example for current update:
https://github.com/tonkeeper/tonapi/pull/5
New JS SDK is also available for downloading.
Fixed bug with big latency for indexing history. Added validated info about dns names.
From now on the swagger file (and his diffs can be tracked in public repo). Example for current update:
https://github.com/tonkeeper/tonapi/pull/5
New JS SDK is also available for downloading.
GitHub
add more info to nft items by mr-tron · Pull Request #5 · tonkeeper/tonapi
Documentation for tonapi.io. Contribute to tonkeeper/tonapi development by creating an account on GitHub.
We have some troubles with indexing new NFTs or changing meta for existing. We investigate the problem
👍6
We have had an outage since 9:35 UTC till 10:40 UTC.
At the moment tonapi is mostly recovered but we still do not process requests to
-
At the moment tonapi is mostly recovered but we still do not process requests to
-
/v1/nft/getItems
- /v1/nft/searchItems
we will post an update when functionality will be completely restored.👍5👌2
📣 TonApi updates
Here are some updates to TonApi.io that we roll out in August.
1. Basic methods for TON DNS
You can now resolve the .ton domain name and fetch extended info for it.
2. New method for traces
Trace is a new concept that we introduce in TonApi to represent the entire user's action as a whole. Trace is defined as a tree of all transactions and messages created by smart contracts as a result of processing an external message.
Example: when you send a token, a trace would include a signed message to your wallet, a message to your jetton contract, a message to recipient's jetton contract and a notification message to the recipient's wallet.
3. Early support for Getgems auctions
Getgems auctions are currently detected as plain sale contracts. This is a temporary solution; we will add a dedicated status "auction" later.
4. Strongly typed metadata for jetton tokens
Jetton address, name, symbol and decimal points are explicitly defined attributes.
📄 All changes in OpenAPI format:
https://github.com/tonkeeper/tonapi/pull/8
Here are some updates to TonApi.io that we roll out in August.
1. Basic methods for TON DNS
You can now resolve the .ton domain name and fetch extended info for it.
/v1/dns/getInfo
/v1/dns/resolve2. New method for traces
Trace is a new concept that we introduce in TonApi to represent the entire user's action as a whole. Trace is defined as a tree of all transactions and messages created by smart contracts as a result of processing an external message.
Example: when you send a token, a trace would include a signed message to your wallet, a message to your jetton contract, a message to recipient's jetton contract and a notification message to the recipient's wallet.
/v1/trace/getAnnotatedTrace3. Early support for Getgems auctions
Getgems auctions are currently detected as plain sale contracts. This is a temporary solution; we will add a dedicated status "auction" later.
4. Strongly typed metadata for jetton tokens
Jetton address, name, symbol and decimal points are explicitly defined attributes.
/v1/jetton/getInfo📄 All changes in OpenAPI format:
https://github.com/tonkeeper/tonapi/pull/8
GitHub
bump openapi spec by mr-tron · Pull Request #8 · tonkeeper/tonapi
Documentation for tonapi.io. Contribute to tonkeeper/tonapi development by creating an account on GitHub.
👍4❤🔥2🔥2
Since 17:10 UTC we gradually restored tonapi availability.
Now it works completely nominal.
Now it works completely nominal.
👍4🤡1
You can help us to test subnoscription to new transactions for account:
URL: "wss://tonapi.io/v1/subscribe/ws"
Request:
{"id": 1, "jsonrpc": "2.0", "method": "subscribe_account", params:["EQDaaxtmY6Dk0YzIV0zNnbUpbjZ92TJHBvO72esc0srwv8K2", "-1:3333333333333333333333333333333333333333333333333333333333333333"]}
The method is under development and can be changed any moment.
Limited by 10000 accounts in one connection.
All questions and remarks - @subden
URL: "wss://tonapi.io/v1/subscribe/ws"
Request:
{"id": 1, "jsonrpc": "2.0", "method": "subscribe_account", params:["EQDaaxtmY6Dk0YzIV0zNnbUpbjZ92TJHBvO72esc0srwv8K2", "-1:3333333333333333333333333333333333333333333333333333333333333333"]}
The method is under development and can be changed any moment.
Limited by 10000 accounts in one connection.
All questions and remarks - @subden
🤔2
We are starting planned testnet tonapi maintenance. Expected downtime duration ~2 hours.
👍3
We are starting planned testnet tonapi maintenance. Expected downtime duration ~2 hours.
Again.
Again.
We are starting planned testnet tonapi maintenance. Expected downtime duration ~2 hours.
If you would like to ask us something or propose new method to be developed – please join this chat https://news.1rj.ru/str/tonapitech
Feel free to publish any proposals and thoughts there!
Feel free to publish any proposals and thoughts there!
We had temporary downtime of blockchain indexing around 14:40 – 15:10 UTC.
At the moment indexing is restored and tonapi works nominal.
At the moment indexing is restored and tonapi works nominal.
👍3
method https://tonapi.io/v1/jetton/getHistory had an issue returning {"events": null }. FIXED.