Integration overview
此内容尚不支持你的语言。
| You build | Use |
|---|---|
| A wallet, dApp or mini app in TypeScript | the SDK: reads and messages ready for TON Connect |
| An exchange or custodian already on Tonstakers | the Tonstakers-compatible deposit: change the address |
| Anything in another language | the raw messages and contract reference |
| A bot, dashboard or aggregator | the indexer API |
| Something for Telegram chats | Telegram: the bot’s inline mode and chat draws |
What every integration needs to know
Section titled “What every integration needs to know”- takoGRAM is a TEP-74 jetton whose master is the treasury. Balances, transfers and wallet addresses work like any jetton. Share wallets live in their owner’s shard, so derive the address with the treasury’s
get_wallet_addressor the SDK, not from a generic jetton formula. - The rate only grows between losses.
get_pool_statereturnstotalCoins,totalShares,pendingProfitandprofitEnd. Profit vests linearly untilprofitEnd, so the exact value at a moment istotalCoins + pendingProfit × elapsed / remaining. The SDK does this for you. - Fees come from getters. Never hard-code them:
get_feeson the treasury,get_vault_feeson a vault,get_migration_feeon a migrator. They follow TON’s gas prices. - Errors have meanings. A failed transaction’s exit code maps to a readable message; see Error codes.
- Addresses are on Contract addresses, and in the protocol package’s deployment manifest.