slingshot
has been archived. Please use snarkOS and the associated Developer CLI to run a beacon node for local developement.
Slingshot is a lightweight CLI for deploying programs and executing transactions on Aleo.
For more information on Aleo, visit Welcome to Aleo to get started.
We recommend installing Rust using rustup. You can install rustup
as follows:
-
macOS or Linux:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Windows (64-bit):
Download the Windows 64-bit executable or Windows 32-bit executable and follow the on-screen instructions.
We recommend installing slingshot
this way. In your terminal, run:
# Download the source code
git clone https://github.com/d0cd/slingshot.git
# Enter the 'slingshot' directory
cd slingshot
# Install 'slingshot'
cargo install --path .
Now to use slingshot
, in your terminal, run:
slingshot
slingshot node start --key <PRIVATE_KEY>
slingshot pour <ADDRESS> <AMOUNT>
slingshot deploy --path <PATH_TO_DIR>
slingshot execute <PROGRAM_NAME> <FUNCTION_NAME> <INPUTS>