22 releases (13 stable)

new 21.2.0 Jul 16, 2024
21.0.0 Jun 18, 2024
20.3.4 Apr 15, 2024
20.3.1 Feb 23, 2024
0.0.2 Jul 30, 2022

#737 in Magic Beans

Download history 119/week @ 2024-03-27 88/week @ 2024-04-03 165/week @ 2024-04-10 143/week @ 2024-04-17 258/week @ 2024-04-24 207/week @ 2024-05-01 195/week @ 2024-05-08 204/week @ 2024-05-15 237/week @ 2024-05-22 259/week @ 2024-05-29 156/week @ 2024-06-05 413/week @ 2024-06-12 365/week @ 2024-06-19 195/week @ 2024-06-26 343/week @ 2024-07-03 355/week @ 2024-07-10

1,486 downloads per month
Used in 4 crates

Apache-2.0

275KB
7K SLoC

soroban-cli

CLI for interacting with the Stellar network and Soroban contracts locally in a test VM. Executes WASM files built using the rs-soroban-sdk.

Docs: https://developers.stellar.org

Install

cargo install --locked stellar-cli

To install with the opt feature, which includes a WASM optimization feature and wasm-opt built in:

cargo install --locked stellar-cli --features opt

Usage

Can invoke a contract method as a subcommand with different arguments. Anything after the slop (--) is passed to the contract's CLI. You can use --help to learn about which methods are available and what their arguments are including an example of the type of the input.

Example

stellar invoke --id <CONTRACT_ID> --wasm <WASMFILE> -- --help
stellar invoke --id <CONTRACT_ID> --network futurenet -- --help

Dependencies

~52–74MB
~1.5M SLoC