33 releases (stable)

22.1.0 Dec 18, 2024
22.0.0 Nov 19, 2024
21.5.3 Oct 15, 2024
21.2.0 Jul 16, 2024
0.0.2 Jul 30, 2022

#192 in Magic Beans

Download history 219/week @ 2024-09-06 294/week @ 2024-09-13 318/week @ 2024-09-20 232/week @ 2024-09-27 144/week @ 2024-10-04 704/week @ 2024-10-11 232/week @ 2024-10-18 113/week @ 2024-10-25 159/week @ 2024-11-01 353/week @ 2024-11-08 345/week @ 2024-11-15 145/week @ 2024-11-22 335/week @ 2024-11-29 258/week @ 2024-12-06 252/week @ 2024-12-13 59/week @ 2024-12-20

919 downloads per month
Used in 4 crates

Apache-2.0

430KB
11K 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

~48–67MB
~1M SLoC