TON Hello World part 1: Step by step guide for working with your first TON wallet
Step 6: Set up your local machine f
The libraries we're going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v
in terminal.
For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code - it's free and open source.
Let's create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:
-npm install ts-node
+npm install typescript ts-node
+
+Next, we're going to initialize Typescript project:
+npx tsc --init
-Next, we're going to install a JavaScript package named ton that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:
+Next, we're going to install a JavaScript package named @ton/ton that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:
npm install @ton/ton @ton/crypto @ton/core
Step 7: Get the wallet address programmatically
@@ -306,7 +309,7 @@ Conclusion
If you found a mistake in this tutorial, please submit a PR and help us fix it. This tutorial platform is fully open source and available on https://github.com/ton-community/tutorials.
Happy coding!
TON Hello World part 1: Step by step guide for working with your first TON wallet
Step 6: Set up your local machine f
The libraries we're going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v
in terminal.
For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code - it's free and open source.
Let's create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:
-npm install ts-node
+npm install typescript ts-node
+
+Next, we're going to initialize Typescript project:
+npx tsc --init
Next, we're going to install a JavaScript package named TonWeb that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:
npm install tonweb tonweb-mnemonic
@@ -499,7 +505,7 @@ Conclusion
If you found a mistake in this tutorial, please submit a PR and help us fix it. This tutorial platform is fully open source and available on https://github.com/ton-community/tutorials.
Happy coding!
TON Hello World part 1: Step by step guide for working with your first TON wallet
Step 6: Set up your local machine f
The libraries we're going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v
in terminal.
For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code - it's free and open source.
Let's create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:
-npm install ts-node
+npm install typescript ts-node
-Next, we're going to install a JavaScript package named ton that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:
+Next, we're going to initialize Typescript project:
+npx tsc --init
+
+Next, we're going to install a JavaScript package named @ton/ton that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:
npm install @ton/ton @ton/crypto @ton/core
Step 7: Get the wallet address programmatically
@@ -696,7 +705,7 @@ Conclusion
If you found a mistake in this tutorial, please submit a PR and help us fix it. This tutorial platform is fully open source and available on https://github.com/ton-community/tutorials.
Happy coding!
TON Hello World part 1: Step by step guide for working with your first TON wallet
Step 6: Set up your local machine f
The libraries we're going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v
in terminal.
For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code - it's free and open source.
Let's create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:
-npm install ts-node
+npm install typescript ts-node
+
+Next, we're going to initialize Typescript project:
+npx tsc --init
Next, we're going to install a JavaScript package named TonWeb that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:
npm install tonweb tonweb-mnemonic
@@ -891,7 +903,7 @@ Conclusion
If you found a mistake in this tutorial, please submit a PR and help us fix it. This tutorial platform is fully open source and available on https://github.com/ton-community/tutorials.
Happy coding!