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, }, 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 {
Show fields stake_account: SignerIndex, seed: Option<String>, staker: Option<Pubkey>, withdrawer: Option<Pubkey>, 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,
}, 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<(StakeAuthorize, Pubkey, SignerIndex)>, 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>, }, StakeSetLockup { stake_account_pubkey: Pubkey, lockup: LockupArgs, custodian: 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_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,
}, 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>, }, 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 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

Catchup
Show fields

Fields of Catchup

node_pubkey: Option<Pubkey>node_json_rpc_url: Option<String>follow: boolour_localhost_port: Option<u16>log: bool
ClusterDate
ClusterVersion
CreateAddressWithSeed
Show fields

Fields of CreateAddressWithSeed

from_pubkey: Option<Pubkey>seed: Stringprogram_id: Pubkey
Fees
Show fields

Fields of Fees

blockhash: Option<Hash>
FirstAvailableBlock
GetBlock
Show fields

Fields of GetBlock

slot: Option<Slot>
GetBlockTime
Show fields

Fields of GetBlockTime

slot: Option<Slot>
GetEpoch
GetEpochInfo
GetGenesisHash
GetSlot
GetBlockHeight
GetTransactionCount
LargestAccounts
Show fields

Fields of LargestAccounts

filter: Option<RpcLargestAccountsFilter>
LeaderSchedule
Show fields

Fields of LeaderSchedule

epoch: Option<Epoch>
LiveSlots
Logs
Show fields

Fields of Logs

filter: RpcTransactionLogsFilter
Ping
Show fields

Fields of Ping

lamports: u64interval: Durationcount: Option<u64>timeout: Durationblockhash: Option<Hash>print_timestamp: bool
Rent
Show fields

Fields of Rent

data_length: usizeuse_lamports_unit: bool
ShowBlockProduction
Show fields

Fields of ShowBlockProduction

epoch: Option<Epoch>slot_limit: Option<u64>
ShowGossip
ShowStakes
Show fields

Fields of ShowStakes

use_lamports_unit: boolvote_account_pubkeys: Option<Vec<Pubkey>>
ShowValidators
Show fields

Fields of ShowValidators

use_lamports_unit: boolsort_order: CliValidatorsSortOrderreverse_sort: boolnumber_validators: bool
Supply
Show fields

Fields of Supply

print_accounts: bool
TotalSupply
TransactionHistory
Show fields

Fields of TransactionHistory

address: Pubkeybefore: Option<Signature>until: Option<Signature>limit: usizeshow_transactions: bool
WaitForMaxStake
Show fields

Fields of WaitForMaxStake

max_stake_percent: f32
AuthorizeNonceAccount
Show fields

Fields of AuthorizeNonceAccount

nonce_account: Pubkeynonce_authority: SignerIndexmemo: Option<String>new_authority: Pubkey
CreateNonceAccount
Show fields

Fields of CreateNonceAccount

nonce_account: SignerIndexseed: Option<String>nonce_authority: Option<Pubkey>memo: Option<String>amount: SpendAmount
GetNonce(Pubkey)
NewNonce
Show fields

Fields of NewNonce

nonce_account: Pubkeynonce_authority: SignerIndexmemo: Option<String>
ShowNonceAccount
Show fields

Fields of ShowNonceAccount

nonce_account_pubkey: Pubkeyuse_lamports_unit: bool
WithdrawFromNonceAccount
Show fields

Fields of WithdrawFromNonceAccount

nonce_account: Pubkeynonce_authority: SignerIndexmemo: Option<String>destination_account_pubkey: Pubkeylamports: u64
Deploy
Show fields

Fields of Deploy

program_location: Stringaddress: Option<SignerIndex>use_deprecated_loader: boolallow_excessive_balance: bool
CreateStakeAccount
Show fields

Fields of CreateStakeAccount

stake_account: SignerIndexseed: Option<String>staker: Option<Pubkey>withdrawer: Option<Pubkey>lockup: Lockupamount: SpendAmountsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>fee_payer: SignerIndexfrom: SignerIndex
DeactivateStake
Show fields

Fields of DeactivateStake

stake_account_pubkey: Pubkeystake_authority: SignerIndexsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>seed: Option<String>fee_payer: SignerIndex
DelegateStake
Show fields

Fields of DelegateStake

stake_account_pubkey: Pubkeyvote_account_pubkey: Pubkeystake_authority: SignerIndexforce: boolsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>fee_payer: SignerIndex
SplitStake
Show fields

Fields of SplitStake

stake_account_pubkey: Pubkeystake_authority: SignerIndexsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>split_stake_account: SignerIndexseed: Option<String>lamports: u64fee_payer: SignerIndex
MergeStake
Show fields

Fields of MergeStake

stake_account_pubkey: Pubkeysource_stake_account_pubkey: Pubkeystake_authority: SignerIndexsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>fee_payer: SignerIndex
ShowStakeHistory
Show fields

Fields of ShowStakeHistory

use_lamports_unit: boollimit_results: usize
ShowStakeAccount
Show fields

Fields of ShowStakeAccount

pubkey: Pubkeyuse_lamports_unit: boolwith_rewards: Option<usize>
StakeAuthorize
Show fields

Fields of StakeAuthorize

stake_account_pubkey: Pubkeynew_authorizations: Vec<(StakeAuthorize, Pubkey, SignerIndex)>sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>fee_payer: SignerIndexcustodian: Option<SignerIndex>
StakeSetLockup
Show fields

Fields of StakeSetLockup

stake_account_pubkey: Pubkeylockup: LockupArgscustodian: SignerIndexsign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>fee_payer: SignerIndex
WithdrawStake
Show fields

Fields of WithdrawStake

stake_account_pubkey: Pubkeydestination_account_pubkey: Pubkeyamount: SpendAmountwithdraw_authority: SignerIndexcustodian: Option<SignerIndex>sign_only: booldump_transaction_message: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>seed: Option<String>fee_payer: SignerIndex
GetValidatorInfo(Option<Pubkey>)
SetValidatorInfo
Show fields

Fields of SetValidatorInfo

validator_info: Valueforce_keybase: boolinfo_pubkey: Option<Pubkey>
CreateVoteAccount
Show fields

Fields of CreateVoteAccount

vote_account: SignerIndexseed: Option<String>identity_account: SignerIndexauthorized_voter: Option<Pubkey>authorized_withdrawer: Option<Pubkey>commission: u8memo: Option<String>
ShowVoteAccount
Show fields

Fields of ShowVoteAccount

pubkey: Pubkeyuse_lamports_unit: boolwith_rewards: Option<usize>
WithdrawFromVoteAccount
Show fields

Fields of WithdrawFromVoteAccount

vote_account_pubkey: Pubkeydestination_account_pubkey: Pubkeywithdraw_authority: SignerIndexwithdraw_amount: SpendAmountmemo: Option<String>
VoteAuthorize
Show fields

Fields of VoteAuthorize

vote_account_pubkey: Pubkeynew_authorized_pubkey: Pubkeyvote_authorize: VoteAuthorizememo: Option<String>
VoteUpdateValidator
Show fields

Fields of VoteUpdateValidator

vote_account_pubkey: Pubkeynew_identity_account: SignerIndexwithdraw_authority: SignerIndexmemo: Option<String>
VoteUpdateCommission
Show fields

Fields of VoteUpdateCommission

vote_account_pubkey: Pubkeycommission: u8withdraw_authority: SignerIndexmemo: Option<String>
Address
Airdrop
Show fields

Fields of Airdrop

pubkey: Option<Pubkey>lamports: u64
Balance
Show fields

Fields of Balance

pubkey: Option<Pubkey>use_lamports_unit: bool
Confirm(Signature)
DecodeTransaction(Transaction)
ResolveSigner(Option<String>)
ShowAccount
Show fields

Fields of ShowAccount

pubkey: Pubkeyoutput_file: Option<String>use_lamports_unit: bool
Transfer
Show fields

Fields of Transfer

amount: SpendAmountto: Pubkeyfrom: SignerIndexsign_only: booldump_transaction_message: boolallow_unfunded_recipient: boolno_wait: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexmemo: Option<String>fee_payer: SignerIndexderived_address_seed: Option<String>derived_address_program_id: Option<Pubkey>

Trait Implementations

impl Debug for CliCommand[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<CliCommand> for CliCommand[src]

fn eq(&self, other: &CliCommand) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &CliCommand) -> bool[src]

This method tests for !=.

impl StructuralPartialEq for CliCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

pub default fn example() -> T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V