Enum solana_cli::cli::CliCommand [−][src]
pub enum CliCommand {}Show variants
Catchup { node_pubkey: Option<Pubkey>, node_json_rpc_url: Option<String>, follow: bool, our_localhost_port: Option<u16>, log: bool, }, ClusterDate, ClusterVersion, CreateAddressWithSeed { from_pubkey: Option<Pubkey>, seed: String, program_id: Pubkey, }, Feature(FeatureCliCommand), Inflation(InflationCliCommand), Fees { blockhash: Option<Hash>, }, FirstAvailableBlock, GetBlock { slot: Option<Slot>, }, GetBlockTime { slot: Option<Slot>, }, GetEpoch, GetEpochInfo, GetGenesisHash, GetSlot, GetBlockHeight, GetTransactionCount, LargestAccounts { filter: Option<RpcLargestAccountsFilter>, }, LeaderSchedule { epoch: Option<Epoch>, }, LiveSlots, Logs { filter: RpcTransactionLogsFilter, }, Ping { lamports: u64, interval: Duration, count: Option<u64>, timeout: Duration, blockhash: Option<Hash>, print_timestamp: bool, }, Rent { data_length: usize, use_lamports_unit: bool, }, ShowBlockProduction { epoch: Option<Epoch>, slot_limit: Option<u64>, }, ShowGossip, ShowStakes { use_lamports_unit: bool, vote_account_pubkeys: Option<Vec<Pubkey>>, }, ShowValidators { use_lamports_unit: bool, sort_order: CliValidatorsSortOrder, reverse_sort: bool, number_validators: bool, keep_unstaked_delinquents: bool, delinquent_slot_distance: Option<Slot>, }, Supply { print_accounts: bool, }, TotalSupply, TransactionHistory { address: Pubkey, before: Option<Signature>, until: Option<Signature>, limit: usize, show_transactions: bool, }, WaitForMaxStake { max_stake_percent: f32, }, AuthorizeNonceAccount { nonce_account: Pubkey, nonce_authority: SignerIndex, memo: Option<String>, new_authority: Pubkey, }, CreateNonceAccount { nonce_account: SignerIndex, seed: Option<String>, nonce_authority: Option<Pubkey>, memo: Option<String>, amount: SpendAmount, }, GetNonce(Pubkey), NewNonce { nonce_account: Pubkey, nonce_authority: SignerIndex, memo: Option<String>, }, ShowNonceAccount { nonce_account_pubkey: Pubkey, use_lamports_unit: bool, }, WithdrawFromNonceAccount { nonce_account: Pubkey, nonce_authority: SignerIndex, memo: Option<String>, destination_account_pubkey: Pubkey, lamports: u64, }, Deploy { program_location: String, address: Option<SignerIndex>, use_deprecated_loader: bool, allow_excessive_balance: bool, }, Program(ProgramCliCommand), CreateStakeAccount {}, DeactivateStake { stake_account_pubkey: Pubkey, stake_authority: SignerIndex, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, seed: Option<String>, fee_payer: SignerIndex, }, DelegateStake { stake_account_pubkey: Pubkey, vote_account_pubkey: Pubkey, stake_authority: SignerIndex, force: bool, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, fee_payer: SignerIndex, }, SplitStake { stake_account_pubkey: Pubkey, stake_authority: SignerIndex, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, split_stake_account: SignerIndex, seed: Option<String>, lamports: u64, fee_payer: SignerIndex, }, MergeStake { stake_account_pubkey: Pubkey, source_stake_account_pubkey: Pubkey, stake_authority: SignerIndex, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, fee_payer: SignerIndex, }, ShowStakeHistory { use_lamports_unit: bool, limit_results: usize, }, ShowStakeAccount { pubkey: Pubkey, use_lamports_unit: bool, with_rewards: Option<usize>, }, StakeAuthorize { stake_account_pubkey: Pubkey, new_authorizations: Vec<StakeAuthorizationIndexed>, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, fee_payer: SignerIndex, custodian: Option<SignerIndex>, no_wait: bool, }, StakeSetLockup { stake_account_pubkey: Pubkey, lockup: LockupArgs, custodian: SignerIndex, new_custodian_signer: Option<SignerIndex>, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, fee_payer: SignerIndex, }, WithdrawStake {Show fields
stake_account: SignerIndex, seed: Option<String>, staker: Option<Pubkey>, withdrawer: Option<Pubkey>, withdrawer_signer: Option<SignerIndex>, lockup: Lockup, amount: SpendAmount, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, fee_payer: SignerIndex, from: SignerIndex,}, GetValidatorInfo(Option<Pubkey>), SetValidatorInfo { validator_info: Value, force_keybase: bool, info_pubkey: Option<Pubkey>, }, CreateVoteAccount { vote_account: SignerIndex, seed: Option<String>, identity_account: SignerIndex, authorized_voter: Option<Pubkey>, authorized_withdrawer: Option<Pubkey>, commission: u8, memo: Option<String>, }, ShowVoteAccount { pubkey: Pubkey, use_lamports_unit: bool, with_rewards: Option<usize>, }, WithdrawFromVoteAccount { vote_account_pubkey: Pubkey, destination_account_pubkey: Pubkey, withdraw_authority: SignerIndex, withdraw_amount: SpendAmount, memo: Option<String>, }, VoteAuthorize { vote_account_pubkey: Pubkey, new_authorized_pubkey: Pubkey, vote_authorize: VoteAuthorize, memo: Option<String>, authorized: SignerIndex, new_authorized: Option<SignerIndex>, }, VoteUpdateValidator { vote_account_pubkey: Pubkey, new_identity_account: SignerIndex, withdraw_authority: SignerIndex, memo: Option<String>, }, VoteUpdateCommission { vote_account_pubkey: Pubkey, commission: u8, withdraw_authority: SignerIndex, memo: Option<String>, }, Address, Airdrop { pubkey: Option<Pubkey>, lamports: u64, }, Balance { pubkey: Option<Pubkey>, use_lamports_unit: bool, }, Confirm(Signature), DecodeTransaction(Transaction), ResolveSigner(Option<String>), ShowAccount { pubkey: Pubkey, output_file: Option<String>, use_lamports_unit: bool, }, Transfer {Show fields
stake_account_pubkey: Pubkey, destination_account_pubkey: Pubkey, amount: SpendAmount, withdraw_authority: SignerIndex, custodian: Option<SignerIndex>, sign_only: bool, dump_transaction_message: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, seed: Option<String>, fee_payer: SignerIndex,},Show fields
amount: SpendAmount, to: Pubkey, from: SignerIndex, sign_only: bool, dump_transaction_message: bool, allow_unfunded_recipient: bool, no_wait: bool, blockhash_query: BlockhashQuery, nonce_account: Option<Pubkey>, nonce_authority: SignerIndex, memo: Option<String>, fee_payer: SignerIndex, derived_address_seed: Option<String>, derived_address_program_id: Option<Pubkey>,
Variants
Show fields
Feature(FeatureCliCommand)
Inflation(InflationCliCommand)
Show fields
Fields of Fees
blockhash: Option<Hash>
Show fields
Fields of GetBlock
slot: Option<Slot>
Show fields
Fields of GetBlockTime
slot: Option<Slot>
Show fields
Fields of LargestAccounts
filter: Option<RpcLargestAccountsFilter>
Show fields
Fields of LeaderSchedule
epoch: Option<Epoch>
Show fields
Fields of Logs
filter: RpcTransactionLogsFilter
Show fields
Show fields
Show fields
Fields of Supply
print_accounts: bool
Show fields
Show fields
Fields of WaitForMaxStake
max_stake_percent: f32
Show fields
Fields of CreateNonceAccount
Show fields
Fields of ShowNonceAccount
nonce_account_pubkey: Pubkey
use_lamports_unit: bool
Show fields
Show fields
Fields of Deploy
program_location: String
address: Option<SignerIndex>
use_deprecated_loader: bool
allow_excessive_balance: bool
Program(ProgramCliCommand)
Show fields
Fields of CreateStakeAccount
stake_account: SignerIndex
seed: Option<String>
staker: Option<Pubkey>
withdrawer: Option<Pubkey>
withdrawer_signer: Option<SignerIndex>
lockup: Lockup
amount: SpendAmount
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
fee_payer: SignerIndex
from: SignerIndex
Show fields
Fields of DeactivateStake
stake_account_pubkey: Pubkey
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
seed: Option<String>
fee_payer: SignerIndex
Show fields
Fields of DelegateStake
stake_account_pubkey: Pubkey
vote_account_pubkey: Pubkey
force: bool
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
fee_payer: SignerIndex
Show fields
Fields of SplitStake
stake_account_pubkey: Pubkey
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
split_stake_account: SignerIndex
seed: Option<String>
lamports: u64
fee_payer: SignerIndex
Show fields
Fields of MergeStake
stake_account_pubkey: Pubkey
source_stake_account_pubkey: Pubkey
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
fee_payer: SignerIndex
Show fields
Show fields
Fields of StakeAuthorize
stake_account_pubkey: Pubkey
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
fee_payer: SignerIndex
custodian: Option<SignerIndex>
no_wait: bool
Show fields
Fields of StakeSetLockup
stake_account_pubkey: Pubkey
lockup: LockupArgs
custodian: SignerIndex
new_custodian_signer: Option<SignerIndex>
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
fee_payer: SignerIndex
Show fields
Fields of WithdrawStake
stake_account_pubkey: Pubkey
destination_account_pubkey: Pubkey
amount: SpendAmount
custodian: Option<SignerIndex>
sign_only: bool
dump_transaction_message: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
seed: Option<String>
fee_payer: SignerIndex
GetValidatorInfo(Option<Pubkey>)
Show fields
Show fields
Fields of CreateVoteAccount
vote_account: SignerIndex
seed: Option<String>
identity_account: SignerIndex
commission: u8
memo: Option<String>
Show fields
Show fields
Fields of WithdrawFromVoteAccount
vote_account_pubkey: Pubkey
destination_account_pubkey: Pubkey
withdraw_amount: SpendAmount
memo: Option<String>
Show fields
Fields of VoteUpdateValidator
Show fields
Confirm(Signature)
DecodeTransaction(Transaction)
Show fields
Fields of Transfer
amount: SpendAmount
to: Pubkey
from: SignerIndex
sign_only: bool
dump_transaction_message: bool
allow_unfunded_recipient: bool
no_wait: bool
blockhash_query: BlockhashQuery
nonce_account: Option<Pubkey>
memo: Option<String>
fee_payer: SignerIndex
derived_address_seed: Option<String>
derived_address_program_id: Option<Pubkey>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CliCommand
impl Send for CliCommand
impl Sync for CliCommand
impl Unpin for CliCommand
impl UnwindSafe for CliCommand
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V