0.5.0 • Published 1 year ago
tonkit v0.5.0
tonkit
A toolkit for ton blockchain
Install
npm install tonkit
# or
pnpm add tonkitFunctions
TonChainSDK
Read
- Check the TON balance at wallet address -
tonchainSDK.getAccountBalance - Get the JETTON wallet address -
tonchainSDK.getAccountJettonWallet - Get the JETTON balance at wallet address -
tonchainSDK.getAccountJettonBalance - Reading data from a contract -
tonchainSDK.readContractData - Fetching transactions from a single wallet in batches
- Filtering TON tranfer transactions in transaction list
- Filtering JETTON tranfer transactions in transaction list
Write
- Batch send message with highload wallet v3 -
tonchainSDK.batchSendByHighloadWalletV3 - Transfer TON -
tonchainSDK.transferTON - Tranfer JETTON -
tonchainSDK.transferJETTON
Utils
- Create a separate wallet for each sharding, you can also specify a sharding to create(Each wallet is a separate mnemonic):
generateShardingWallets - Generate a wallet with a specific sharding ID:
generateWalletWithShardingID - Create a sub-wallet for each sharding by
walletId, you can also specify a sharding to create(Each wallet share a same mnemonic):generateShardingSubWallets - Get the sharding ID of the TON address:
getTONAddressShardingID - Judge whether the address is a valid TON address:
isValidTONAddress - Get a valid TON address, return null if the address is invalid:
getValidTONAddress - Get the TON address with specific format:
getTONAddressWithFormat
How to develop & publish
pnpm cs