0.5.0 • Published 8 months ago

tonkit v0.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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
0.5.0

8 months ago

0.4.0

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.0.2

10 months ago

0.0.1

10 months ago