Crates.io | shdw |
lib.rs | shdw |
version | 0.8.1 |
source | src |
created_at | 2023-06-23 20:18:21.295253 |
updated_at | 2023-06-23 20:31:20.238029 |
description | The Rust CLI for GenesysGo's Shadow Drive, NFT Standard Program, and Minter Program |
homepage | |
repository | https://github.com/GenesysGo/shadow-drive-rust |
max_upload_size | |
id | 898567 |
size | 264,686 |
This is a CLI for Shadow Drive written using the Shadow Drive Rust crate. It is largely a clap
wrapper around that crate.
Although there is already a CLI for Shadow Drive written in Typescript, I wanted something
with identical interface to the official Solana CLI -k/--keypair
and -u/--url
arguments.
You can pass all the same signer types ("prompt", "stdin", etc), but be aware that Ledger still does not support
general message signing, and you therefore cannot perform most Shadow Network operations
using a hardware wallet yet.
This is an opinionated CLI, choosing V2 storage accounts where applicable.
The CLI also works with authenticated GenesysGo Premium RPC Endpoints. See
the --auth
flag for more details.
Build the binary like a standard Rust crate.
cargo build
The CLI looks for a Solana CLI config file. Configure your signing key there using the usual solana config set -k <SIGNER>
, or pass one in using the -k/--keypair
argument. If no -k/--keypair
argument is used and no config file is found, this CLI defaults to the same keypair path as the Solana CLI's default, located at .config/solana/id.json
.
For further usage details, there is extensive help text built into the binary.
$ target/debug/shadow-drive-cli --help