1 stable release

20.1.1 Feb 19, 2024

#29 in #stellar

Download history 96/week @ 2024-02-13 53/week @ 2024-02-20 17/week @ 2024-02-27 1/week @ 2024-03-12 86/week @ 2024-03-19 1/week @ 2024-03-26 11/week @ 2024-04-02

99 downloads per month

Apache-2.0

240KB
6K SLoC

soroban-cli

CLI for running Soroban contracts locally in a test VM. Executes WASM files built using the rs-soroban-sdk.

Soroban: https://soroban.stellar.org

Install

cargo install --locked soroban-cli

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

cargo install --locked soroban-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

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

Dependencies

~40–61MB
~1M SLoC