Thanks to visit codestin.com
Credit goes to github.com

Skip to content

howardpen9/examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TON JS Examples

This repository contains a collection of JavaScript examples demonstrating various functionalities of The Open Network (TON) blockchain using the tonweb library.

Prerequisites

  • Node.js (v14 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/ton-examples.git
cd ton-examples
  1. Install dependencies:
npm install

Available Examples

Deposit Examples

  • deposits.js - Basic deposit functionality
  • deposits-multi-wallets.js - Handling deposits with multiple wallets
  • deposits-jettons.js - Working with Jetton deposits
  • deposits-jettons-multi-wallets.js - Managing multiple Jetton deposits

Withdrawal Examples

  • withdrawals.js - Basic withdrawal functionality
  • withdrawals-highload.js - High-load withdrawal operations
  • withdrawals-jettons.js - Jetton withdrawal operations
  • withdrawals-jettons-highload.js - High-load Jetton withdrawals
  • withdrawals-highload-batch.js - Batch processing for high-load withdrawals
  • withdrawals-jettons-highload-batch.js - Batch processing for high-load Jetton withdrawals

Running Examples

To run any example, use Node.js with the ES modules flag:

node withdrawals.js
# or
node deposits-jettons.js

Common Utilities

The common.js file contains shared utilities and helper functions used across different examples.

Dependencies

  • tonweb (v0.0.66) - TON blockchain JavaScript SDK
  • tonweb-mnemonic (v1.0.1) - Mnemonic phrase utilities for TON

License

This project is licensed under the ISC License - see the LICENSE file for details.

Contributing

Feel free to submit issues and enhancement requests!

About

TON JS examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%