Skip to content

hstarorg/tonkit

Repository files navigation

tonkit

A toolkit for ton blockchain

Install

npm install tonkit
# or
pnpm add tonkit

Functions

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

About

A toolkit for ton blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors