Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Latest commit

 

History

History
75 lines (51 loc) · 1.66 KB

README.md

File metadata and controls

75 lines (51 loc) · 1.66 KB

slingshot

slingshot has been archived. Please use snarkOS and the associated Developer CLI to run a beacon node for local developement.

Archive

Slingshot is a lightweight CLI for deploying programs and executing transactions on Aleo.

Table of Contents

1. Overview

For more information on Aleo, visit Welcome to Aleo to get started.

2. Build Guide

2.1 Install Rust

We recommend installing Rust using rustup. You can install rustup as follows:

2.2 Build from Source Code

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

3. Usage Guide

3.1 Starting a development node

slingshot node start --key <PRIVATE_KEY>

3.2 Pour from faucet

slingshot pour <ADDRESS> <AMOUNT>

3.2 Deploying a program

slingshot deploy --path <PATH_TO_DIR> 

3.3 Executing a program

slingshot execute <PROGRAM_NAME> <FUNCTION_NAME> <INPUTS>