A fork of Foundry, customized as a toolkit for the Destra L2 Chain.
DestraCLI is a command-line tool for performing Destra L2 RPC calls. You can make smart contract calls, send transactions, or retrieve any type of chain data - all from your command-line!
- Rust installed on your system. You can install Rust via Rustup by following the instructions at rustup.rs.
-
Install Rust and Cargo via Rustup by running the following command in your terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Follow the prompts to complete the installation process.
-
Clone this repository to your local machine:
git clone https://github.com/DestraNetwork/destra-matrix.git
-
Navigate to the DestraCLI directory:
cd destra-matrix/crates/destracli -
Build the project using Cargo:
cargo build --release
This command will compile the destracli in release mode, optimizing it for performance.
-
Once the build process is complete, navigate to the target directory:
cd ../../target/release -
Move the executable file to the
bindirectory in your home folder:sudo mv destracli /usr/local/bin
This command moves the destracli to the bin directory in your home folder, making it accessible from anywhere in the terminal.
After moving the executable to the bin directory, you can run it from anywhere in the terminal by simply typing its name:
destracli --version