17 releases (9 stable)

new 21.0.0-rc.1 May 27, 2024
20.3.4 Apr 15, 2024
20.3.1 Feb 23, 2024
20.1.1 Dec 21, 2023
0.0.2 Jul 30, 2022

#769 in Magic Beans

Download history 134/week @ 2024-02-07 85/week @ 2024-02-14 217/week @ 2024-02-21 178/week @ 2024-02-28 90/week @ 2024-03-06 136/week @ 2024-03-13 699/week @ 2024-03-20 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 190/week @ 2024-05-22

891 downloads per month
Used in 3 crates

Apache-2.0

245KB
6K 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 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

~53–74MB
~1.5M SLoC