This repository contains a collection of JavaScript examples demonstrating various functionalities of The Open Network (TON) blockchain using the tonweb library.
- Node.js (v14 or higher)
- npm (Node Package Manager)
- Clone this repository:
git clone https://github.com/yourusername/ton-examples.git
cd ton-examples- Install dependencies:
npm installdeposits.js- Basic deposit functionalitydeposits-multi-wallets.js- Handling deposits with multiple walletsdeposits-jettons.js- Working with Jetton depositsdeposits-jettons-multi-wallets.js- Managing multiple Jetton deposits
withdrawals.js- Basic withdrawal functionalitywithdrawals-highload.js- High-load withdrawal operationswithdrawals-jettons.js- Jetton withdrawal operationswithdrawals-jettons-highload.js- High-load Jetton withdrawalswithdrawals-highload-batch.js- Batch processing for high-load withdrawalswithdrawals-jettons-highload-batch.js- Batch processing for high-load Jetton withdrawals
To run any example, use Node.js with the ES modules flag:
node withdrawals.js
# or
node deposits-jettons.jsThe common.js file contains shared utilities and helper functions used across different examples.
tonweb(v0.0.66) - TON blockchain JavaScript SDKtonweb-mnemonic(v1.0.1) - Mnemonic phrase utilities for TON
This project is licensed under the ISC License - see the LICENSE file for details.
Feel free to submit issues and enhancement requests!