TLDR:
To be able to use your account on TON, you need to have an initialized wallet. Wallet initialization means deploying a TON wallet contract for your account.
While this is a great feature of the TON blockchain, you might find it cumbersome dealing with wallet deployments during your development stage.
So here’s a couple of scripts in JavaScript using tonweb that can help you:
Make sure tonweb is installed.
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
This script does the following:
wallet_keys.json
v4R2
wallet contractMake sure you put your Chainstack TON node endpoint with a /jsonRPC
at the end instead of CHAINSTACK_NODE_WITH_jsonRPC
.
This script does the following:
Make sure you put your Chainstack TON node endpoint with a /jsonRPC
at the end instead of CHAINSTACK_NODE_WITH_jsonRPC
; and put your private key inPRIVATE_KEY
.
TLDR:
To be able to use your account on TON, you need to have an initialized wallet. Wallet initialization means deploying a TON wallet contract for your account.
While this is a great feature of the TON blockchain, you might find it cumbersome dealing with wallet deployments during your development stage.
So here’s a couple of scripts in JavaScript using tonweb that can help you:
Make sure tonweb is installed.
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
This script does the following:
wallet_keys.json
v4R2
wallet contractMake sure you put your Chainstack TON node endpoint with a /jsonRPC
at the end instead of CHAINSTACK_NODE_WITH_jsonRPC
.
This script does the following:
Make sure you put your Chainstack TON node endpoint with a /jsonRPC
at the end instead of CHAINSTACK_NODE_WITH_jsonRPC
; and put your private key inPRIVATE_KEY
.