Enum solana_cli::cli::CliCommand
source · [−]pub enum CliCommand {
Show 67 variants
Catchup {
node_pubkey: Option<Pubkey>,
node_json_rpc_url: Option<String>,
follow: bool,
our_localhost_port: Option<u16>,
log: bool,
},
ClusterDate,
ClusterVersion,
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 {
interval: Duration,
count: Option<u64>,
timeout: Duration,
blockhash: Option<Hash>,
print_timestamp: bool,
compute_unit_price: Option<u64>,
},
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>>,
withdraw_authority: Option<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,
compute_unit_price: Option<u64>,
},
CreateNonceAccount {
nonce_account: SignerIndex,
seed: Option<String>,
nonce_authority: Option<Pubkey>,
memo: Option<String>,
amount: SpendAmount,
compute_unit_price: Option<u64>,
},
GetNonce(Pubkey),
NewNonce {
nonce_account: Pubkey,
nonce_authority: SignerIndex,
memo: Option<String>,
compute_unit_price: Option<u64>,
},
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,
compute_unit_price: Option<u64>,
},
UpgradeNonceAccount {
nonce_account: Pubkey,
memo: Option<String>,
compute_unit_price: Option<u64>,
},
Deploy {
program_location: String,
address: Option<SignerIndex>,
use_deprecated_loader: bool,
allow_excessive_balance: bool,
skip_fee_check: bool,
},
Program(ProgramCliCommand),
CreateStakeAccount {Show 16 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,
compute_unit_price: Option<u64>,
},
DeactivateStake {
stake_account_pubkey: Pubkey,
stake_authority: SignerIndex,
sign_only: bool,
deactivate_delinquent: bool,
dump_transaction_message: bool,
blockhash_query: BlockhashQuery,
nonce_account: Option<Pubkey>,
nonce_authority: SignerIndex,
memo: Option<String>,
seed: Option<String>,
fee_payer: SignerIndex,
compute_unit_price: Option<u64>,
},
DelegateStake {Show 13 fields
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,
redelegation_stake_account_pubkey: Option<Pubkey>,
compute_unit_price: Option<u64>,
},
SplitStake {Show 13 fields
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,
compute_unit_price: Option<u64>,
},
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,
compute_unit_price: Option<u64>,
},
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,
compute_unit_price: Option<u64>,
},
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,
compute_unit_price: Option<u64>,
},
WithdrawStake {Show 14 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,
compute_unit_price: Option<u64>,
},
GetValidatorInfo(Option<Pubkey>),
SetValidatorInfo {
validator_info: Value,
force_keybase: bool,
info_pubkey: Option<Pubkey>,
},
CreateVoteAccount {Show 14 fields
vote_account: SignerIndex,
seed: Option<String>,
identity_account: SignerIndex,
authorized_voter: Option<Pubkey>,
authorized_withdrawer: Pubkey,
commission: u8,
sign_only: bool,
dump_transaction_message: bool,
blockhash_query: BlockhashQuery,
nonce_account: Option<Pubkey>,
nonce_authority: SignerIndex,
memo: Option<String>,
fee_payer: SignerIndex,
compute_unit_price: Option<u64>,
},
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,
sign_only: bool,
dump_transaction_message: bool,
blockhash_query: BlockhashQuery,
nonce_account: Option<Pubkey>,
nonce_authority: SignerIndex,
memo: Option<String>,
fee_payer: SignerIndex,
compute_unit_price: Option<u64>,
},
CloseVoteAccount {
vote_account_pubkey: Pubkey,
destination_account_pubkey: Pubkey,
withdraw_authority: SignerIndex,
memo: Option<String>,
fee_payer: SignerIndex,
compute_unit_price: Option<u64>,
},
VoteAuthorize {Show 13 fields
vote_account_pubkey: Pubkey,
new_authorized_pubkey: Pubkey,
vote_authorize: VoteAuthorize,
sign_only: bool,
dump_transaction_message: bool,
blockhash_query: BlockhashQuery,
nonce_account: Option<Pubkey>,
nonce_authority: SignerIndex,
memo: Option<String>,
fee_payer: SignerIndex,
authorized: SignerIndex,
new_authorized: Option<SignerIndex>,
compute_unit_price: Option<u64>,
},
VoteUpdateValidator {
vote_account_pubkey: Pubkey,
new_identity_account: SignerIndex,
withdraw_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,
compute_unit_price: Option<u64>,
},
VoteUpdateCommission {
vote_account_pubkey: Pubkey,
commission: u8,
withdraw_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,
compute_unit_price: Option<u64>,
},
Address,
Airdrop {
pubkey: Option<Pubkey>,
lamports: u64,
},
Balance {
pubkey: Option<Pubkey>,
use_lamports_unit: bool,
},
Confirm(Signature),
CreateAddressWithSeed {
from_pubkey: Option<Pubkey>,
seed: String,
program_id: Pubkey,
},
DecodeTransaction(VersionedTransaction),
ResolveSigner(Option<String>),
ShowAccount {
pubkey: Pubkey,
output_file: Option<String>,
use_lamports_unit: bool,
},
Transfer {Show 15 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>,
compute_unit_price: Option<u64>,
},
StakeMinimumDelegation {
use_lamports_unit: bool,
},
}Variants
Catchup
ClusterDate
ClusterVersion
Feature(FeatureCliCommand)
Inflation(InflationCliCommand)
Fees
Fields
blockhash: Option<Hash>FirstAvailableBlock
GetBlock
Fields
slot: Option<Slot>GetBlockTime
Fields
slot: Option<Slot>GetEpoch
GetEpochInfo
GetGenesisHash
GetSlot
GetBlockHeight
GetTransactionCount
LargestAccounts
Fields
filter: Option<RpcLargestAccountsFilter>LeaderSchedule
Fields
epoch: Option<Epoch>LiveSlots
Logs
Fields
filter: RpcTransactionLogsFilterPing
Rent
ShowBlockProduction
ShowGossip
ShowStakes
ShowValidators
Fields
use_lamports_unit: boolsort_order: CliValidatorsSortOrderreverse_sort: boolnumber_validators: boolkeep_unstaked_delinquents: booldelinquent_slot_distance: Option<Slot>Supply
Fields
print_accounts: boolTotalSupply
TransactionHistory
WaitForMaxStake
Fields
max_stake_percent: f32AuthorizeNonceAccount
CreateNonceAccount
GetNonce(Pubkey)
NewNonce
ShowNonceAccount
WithdrawFromNonceAccount
UpgradeNonceAccount
Deploy
Fields
program_location: Stringaddress: Option<SignerIndex>use_deprecated_loader: boolallow_excessive_balance: boolskip_fee_check: boolProgram(ProgramCliCommand)
CreateStakeAccount
Fields
stake_account: SignerIndexstaker: Option<Pubkey>withdrawer: Option<Pubkey>withdrawer_signer: Option<SignerIndex>amount: SpendAmountsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexfrom: SignerIndexDeactivateStake
Fields
sign_only: booldeactivate_delinquent: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexDelegateStake
Fields
force: boolsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexredelegation_stake_account_pubkey: Option<Pubkey>SplitStake
Fields
sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>split_stake_account: SignerIndexlamports: u64fee_payer: SignerIndexMergeStake
Fields
sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexShowStakeHistory
ShowStakeAccount
StakeAuthorize
Fields
sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexcustodian: Option<SignerIndex>no_wait: boolStakeSetLockup
Fields
custodian: SignerIndexnew_custodian_signer: Option<SignerIndex>sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexWithdrawStake
Fields
amount: SpendAmountcustodian: Option<SignerIndex>sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexGetValidatorInfo(Option<Pubkey>)
SetValidatorInfo
CreateVoteAccount
Fields
vote_account: SignerIndexidentity_account: SignerIndexcommission: u8sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexShowVoteAccount
WithdrawFromVoteAccount
Fields
withdraw_amount: SpendAmountsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexCloseVoteAccount
VoteAuthorize
Fields
sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexVoteUpdateValidator
Fields
new_identity_account: SignerIndexsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexVoteUpdateCommission
Fields
commission: u8sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexAddress
Airdrop
Balance
Confirm(Signature)
CreateAddressWithSeed
DecodeTransaction(VersionedTransaction)
ResolveSigner(Option<String>)
ShowAccount
Transfer
Fields
amount: SpendAmountfrom: SignerIndexsign_only: booldump_transaction_message: boolallow_unfunded_recipient: boolno_wait: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>fee_payer: SignerIndexderived_address_program_id: Option<Pubkey>StakeMinimumDelegation
Fields
use_lamports_unit: boolTrait Implementations
sourceimpl Debug for CliCommand
impl Debug for CliCommand
sourceimpl PartialEq<CliCommand> for CliCommand
impl PartialEq<CliCommand> for CliCommand
sourcefn eq(&self, other: &CliCommand) -> bool
fn eq(&self, other: &CliCommand) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for CliCommand
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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more