×

Confirm transaction using the TONOS-CLI utility on Linux Ubuntu

Confirm transaction using the TONOS-CLI utility on Linux Ubuntu

Step 1 (once)

Update repository and System Upgrade

need to copy and paste into the command line

$ sudo apt update && sudo apt upgrade -y

Install Cargo

need to copy and paste into the command line

$ sudo apt install cargo pkg-config git libssl-dev rustc -y

Build TONOS-CLI tool from source:

need to copy and paste into the command line

$ git clone https://github.com/tonlabs/tonos-cli.git
$ cd tonos-cli
$ sudo cargo update
$ sudo cargo build --release
$ cd

The tonos-cli executable is built in the tonos-cli/target/release folder.

Step 2 (every time you create a new project)

Create a folder (multisig or other)

need to copy and paste into the command line

$ sudo mkdir multisig

Copy the tonos-cli executable into the new folder you have created

need to copy and paste into the command line

$ sudo cp tonos-cli/target/release/tonos-cli multisig

Go to the folder

need to copy and paste into the command line

$ cd multisig

Download contract files

need to copy and paste into the command line

$ sudo wget https://raw.githubusercontent.com/tonlabs/ton-labs-contracts/master/solidity/setcodemultisig/SetcodeMultisigWallet.abi.json
$ sudo wget https://github.com/tonlabs/ton-labs-contracts/raw/master/solidity/setcodemultisig/SetcodeMultisigWallet.tvc

Configure TONOS-CLI environment

need to copy and paste into the command line

$ export PATH="multisig:$PATH"
$ sudo ./tonos-cli config --url https://main.ton.dev

Generate deployment key pair file

need to copy and paste into the command line and insert your seed phrase!!!!!!!!!!!

$ sudo ./tonos-cli getkeypair deploy.keys.json "<seed_phrase>"
For example:
sudo ./tonos-cli getkeypair deploy.keys.json "dizzy modify exotic daring gloom rival pipe disagree again film neck fuel"
$ cd

Step 3 (every time you start working with a project)

Go to the working folder (multisig or other)

need to copy and paste into the command line

$ cd multisig

To confirm/sign the transaction use the following command:

you need to copy the received link and paste it here click enter

For example:
sudo ./tonos-cli call 0:bf7afb5e8610ae337daad42128d16f828e957c5374e81d32e9732f5f86ea5a3c confirmTransaction '{"transactionId":"0x5f98db74b0dae401"}' --abi SetcodeMultisigWallet.abi.json --sign deploy.keys.json

need to copy and paste into the command line

$ cd

Leave a Reply

Your email address will not be published.