Public API: api.tonano.io
- Index all messages from TON from all shards over
tonpy.blockscanner.blockscanner.BlockScanner
over liteservers - Save all ton-20 transactions to DB
- All ton-20 logic related is in
ton20logic.py
- State serialization/deserialization
ton20state.py
- All ton-20 logic related is in
- Load all transactions from latest state (
ton20state.tlb
) and index them- Wallets & ticks & transactions saved to DB separately from state
- State commited to DB each
COMMIT_STATE_EACH
txs
Warning: if your reboot index it will roll-back to latest state in DB including wallets&ticks and index all TXs from latest state again
- LiteDump: latest actual state
- This is just BOC of latest state if costs several mb and it's fast to download
- To do this just run
manage.py get_latest_state https://api.tonano.io/api/v1/latest-state-boc/
- PostgresDump: full transactions history dump
- It's costs several gb (~160) and it's slow to download, but you will have full history of transactions
- Download postgres dump from
TBD
- [OPTIONAL] You can reindex all ton20 index based on RAW data from liteserver:
- Delete all serialized states and transactions status (indexes also if you want faster insert)
- Run
manage.py start_ton20
it'll load all transactions and index data from start, it'll take ~8h depends on your server
- 16 cores CPU
- 128 GB RAM
- 1TB NVME
- 1 Gbit/s network connectivity
- 64gb RAM
- 16 CPU
- 500gb NVME
Liteserver stability must be excellent, consider host own node or use @liteserver_bot instances
Add your liteserver config to .env
(check out .env_example
)
Since there's a lot of TXs to load (~90m) it needed to be setup correctly
- Remove all indexes on tables for faster push
- Change
chunk_size
instart_index.py
. >chunk = faster process, higher RAM usage.