cenyG / ton_sender

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install all dependencies:

npm i

** Please update .env file and specify MAIN_NET param
*** Seed phrase should be just words separated by spaces without commas

Generate KeyPair from seed:

npm run seed-to-key -- -s SEED_PHRASE

Send TON using seed:

npm run withdraw -- -s SEED_PHRASE --amount 0.1 --to EQAfi_IcjRyIwFG6fbg89_t8PhnaGSM0sO1pg1LRJaIONBza -p comment

Send TON using Secret Key:

npm run withdraw -- --sk SECRET_KEY --amount 0.1 --to EQAfi_IcjRyIwFG6fbg89_t8PhnaGSM0sO1pg1LRJaIONBza -p comment

Also, could be used without npm scripts just like that:

node seedToKeyPair.js -s your seed
node sendTon.js -s SEED_PHRASE --amount 0.1 --to EQAfi_IcjRyIwFG6fbg89_t8PhnaGSM0sO1pg1LRJaIONBza -p comment
node sendTon.js --sk SECRET_KEY --amount 0.1 --to EQAfi_IcjRyIwFG6fbg89_t8PhnaGSM0sO1pg1LRJaIONBza -p comment

About


Languages

Language:JavaScript 99.7%Language:Shell 0.3%