14 releases (stable)
new 22.0.0-rc.1 | Nov 8, 2024 |
---|---|
21.5.3 | Oct 15, 2024 |
21.5.0 | Sep 11, 2024 |
21.4.1 | Aug 26, 2024 |
0.0.1 |
|
#3 in #stellar
930 downloads per month
385KB
9K
SLoC
stellar-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
~61–82MB
~1.5M SLoC