pub enum Commands {
Gen {
mnemonic: Option<String>,
passphrase: Option<String>,
unsafe_show_secret: bool,
output: Option<String>,
force: bool,
},
Sign {
message: Option<String>,
from_file: Option<String>,
keypair: Option<String>,
output: Option<String>,
force: bool,
},
Verify {
message: Option<String>,
from_file: Option<String>,
signature: Option<String>,
signature_file: Option<String>,
pubkey: Option<String>,
pubkey_file: Option<String>,
output: Option<String>,
force: bool,
},
Base58 {
action: Base58Action,
},
SignTx {
input: String,
lookup_tables: Option<String>,
keypair: Option<String>,
output: Option<String>,
output_format: Option<OutFmt>,
force: bool,
assume_yes: bool,
max_fee: Option<u64>,
summary_json: bool,
},
}Variants§
Gen
Generate a new mnemonic and keypair, or derive from existing mnemonic
Fields
Sign
Sign a message
Fields
Verify
Verify a signature
Fields
Base58
Base58 encode/decode
Fields
§
action: Base58ActionSignTx
Sign a transaction file (JSON/Base64/Base58)
Fields
§
lookup_tables: Option<String>Optional lookup table file (JSON map: table address -> array of addresses)
§
keypair: Option<String>Path to keypair file (stdin disabled for secrets) [env: SOLANA_SIGNER_KEYPAIR]
§
output_format: Option<OutFmt>Force output format (json|base64|base58). If not specified, we mirror the input format. [env: SOLANA_TOOLS_LITE_OUTPUT_FORMAT]
§
assume_yes: boolAuto-approve without interactive prompt (useful for CI/pipelines) [env: SOLANA_TOOLS_LITE_YES]
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more