[][src]Enum solana_cli::cli::CliCommand

pub enum CliCommand {
    Catchup {
        node_pubkey: Pubkey,
        node_json_rpc_url: Option<String>,
    },
    ClusterVersion,
    CreateAddressWithSeed {
        from_pubkey: Option<Pubkey>,
        seed: String,
        program_id: Pubkey,
    },
    Fees,
    GetBlockTime {
        slot: Slot,
    },
    GetEpochInfo {
        commitment_config: CommitmentConfig,
    },
    GetGenesisHash,
    GetSlot {
        commitment_config: CommitmentConfig,
    },
    GetTransactionCount {
        commitment_config: CommitmentConfig,
    },
    LeaderSchedule,
    LiveSlots,
    Ping {
        lamports: u64,
        interval: Duration,
        count: Option<u64>,
        timeout: Duration,
        commitment_config: CommitmentConfig,
    },
    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,
        commitment_config: CommitmentConfig,
    },
    AuthorizeNonceAccount {
        nonce_account: Pubkey,
        nonce_authority: SignerIndex,
        new_authority: Pubkey,
    },
    CreateNonceAccount {
        nonce_account: SignerIndex,
        seed: Option<String>,
        nonce_authority: Option<Pubkey>,
        lamports: u64,
    },
    GetNonce(Pubkey),
    NewNonce {
        nonce_account: Pubkey,
        nonce_authority: SignerIndex,
    },
    ShowNonceAccount {
        nonce_account_pubkey: Pubkey,
        use_lamports_unit: bool,
    },
    WithdrawFromNonceAccount {
        nonce_account: Pubkey,
        nonce_authority: SignerIndex,
        destination_account_pubkey: Pubkey,
        lamports: u64,
    },
    Deploy(String),
    CreateStakeAccount {
        stake_account: SignerIndex,
        seed: Option<String>,
        staker: Option<Pubkey>,
        withdrawer: Option<Pubkey>,
        lockup: Lockup,
        lamports: u64,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        fee_payer: SignerIndex,
        from: SignerIndex,
    },
    DeactivateStake {
        stake_account_pubkey: Pubkey,
        stake_authority: SignerIndex,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        fee_payer: SignerIndex,
    },
    DelegateStake {
        stake_account_pubkey: Pubkey,
        vote_account_pubkey: Pubkey,
        stake_authority: SignerIndex,
        force: bool,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        fee_payer: SignerIndex,
    },
    SplitStake {
        stake_account_pubkey: Pubkey,
        stake_authority: SignerIndex,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        split_stake_account: SignerIndex,
        seed: Option<String>,
        lamports: u64,
        fee_payer: SignerIndex,
    },
    ShowStakeHistory {
        use_lamports_unit: bool,
    },
    ShowStakeAccount {
        pubkey: Pubkey,
        use_lamports_unit: bool,
    },
    StakeAuthorize {
        stake_account_pubkey: Pubkey,
        new_authorizations: Vec<(StakeAuthorize, Pubkey, SignerIndex)>,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        fee_payer: SignerIndex,
    },
    StakeSetLockup {
        stake_account_pubkey: Pubkey,
        lockup: LockupArgs,
        custodian: SignerIndex,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        fee_payer: SignerIndex,
    },
    WithdrawStake {
        stake_account_pubkey: Pubkey,
        destination_account_pubkey: Pubkey,
        lamports: u64,
        withdraw_authority: SignerIndex,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        fee_payer: SignerIndex,
    },
    CreateStorageAccount {
        account_owner: Pubkey,
        storage_account: SignerIndex,
        account_type: StorageAccountType,
    },
    ClaimStorageReward {
        node_account_pubkey: Pubkey,
        storage_account_pubkey: Pubkey,
    },
    ShowStorageAccount(Pubkey),
    GetValidatorInfo(Option<Pubkey>),
    SetValidatorInfo {
        validator_info: Value,
        force_keybase: bool,
        info_pubkey: Option<Pubkey>,
    },
    CreateVoteAccount {
        seed: Option<String>,
        identity_account: SignerIndex,
        authorized_voter: Option<Pubkey>,
        authorized_withdrawer: Option<Pubkey>,
        commission: u8,
    },
    ShowVoteAccount {
        pubkey: Pubkey,
        use_lamports_unit: bool,
        commitment_config: CommitmentConfig,
    },
    WithdrawFromVoteAccount {
        vote_account_pubkey: Pubkey,
        destination_account_pubkey: Pubkey,
        withdraw_authority: SignerIndex,
        lamports: u64,
    },
    VoteAuthorize {
        vote_account_pubkey: Pubkey,
        new_authorized_pubkey: Pubkey,
        vote_authorize: VoteAuthorize,
    },
    VoteUpdateValidator {
        vote_account_pubkey: Pubkey,
        new_identity_account: SignerIndex,
    },
    Address,
    Airdrop {
        faucet_host: Option<IpAddr>,
        faucet_port: u16,
        pubkey: Option<Pubkey>,
        lamports: u64,
    },
    Balance {
        pubkey: Option<Pubkey>,
        use_lamports_unit: bool,
    },
    Cancel(Pubkey),
    Confirm(Signature),
    Pay(PayCommand),
    ResolveSigner(Option<String>),
    ShowAccount {
        pubkey: Pubkey,
        output_file: Option<String>,
        use_lamports_unit: bool,
    },
    TimeElapsed(PubkeyPubkeyDateTime<Utc>),
    Transfer {
        lamports: u64,
        to: Pubkey,
        from: SignerIndex,
        sign_only: bool,
        blockhash_query: BlockhashQuery,
        nonce_account: Option<Pubkey>,
        nonce_authority: SignerIndex,
        fee_payer: SignerIndex,
    },
    Witness(PubkeyPubkey),
}

Variants

Catchup

Fields of Catchup

node_pubkey: Pubkeynode_json_rpc_url: Option<String>
ClusterVersion
CreateAddressWithSeed

Fields of CreateAddressWithSeed

from_pubkey: Option<Pubkey>seed: Stringprogram_id: Pubkey
Fees
GetBlockTime

Fields of GetBlockTime

slot: Slot
GetEpochInfo

Fields of GetEpochInfo

commitment_config: CommitmentConfig
GetGenesisHash
GetSlot

Fields of GetSlot

commitment_config: CommitmentConfig
GetTransactionCount

Fields of GetTransactionCount

commitment_config: CommitmentConfig
LeaderSchedule
LiveSlots
Ping

Fields of Ping

lamports: u64interval: Durationcount: Option<u64>timeout: Durationcommitment_config: CommitmentConfig
ShowBlockProduction

Fields of ShowBlockProduction

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

Fields of ShowStakes

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

Fields of ShowValidators

use_lamports_unit: boolcommitment_config: CommitmentConfig
AuthorizeNonceAccount

Fields of AuthorizeNonceAccount

nonce_account: Pubkeynonce_authority: SignerIndexnew_authority: Pubkey
CreateNonceAccount

Fields of CreateNonceAccount

nonce_account: SignerIndexseed: Option<String>nonce_authority: Option<Pubkey>lamports: u64
GetNonce(Pubkey)
NewNonce

Fields of NewNonce

nonce_account: Pubkeynonce_authority: SignerIndex
ShowNonceAccount

Fields of ShowNonceAccount

nonce_account_pubkey: Pubkeyuse_lamports_unit: bool
WithdrawFromNonceAccount

Fields of WithdrawFromNonceAccount

nonce_account: Pubkeynonce_authority: SignerIndexdestination_account_pubkey: Pubkeylamports: u64
Deploy(String)
CreateStakeAccount

Fields of CreateStakeAccount

stake_account: SignerIndexseed: Option<String>staker: Option<Pubkey>withdrawer: Option<Pubkey>lockup: Lockuplamports: u64sign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexfee_payer: SignerIndexfrom: SignerIndex
DeactivateStake

Fields of DeactivateStake

stake_account_pubkey: Pubkeystake_authority: SignerIndexsign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexfee_payer: SignerIndex
DelegateStake

Fields of DelegateStake

stake_account_pubkey: Pubkeyvote_account_pubkey: Pubkeystake_authority: SignerIndexforce: boolsign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexfee_payer: SignerIndex
SplitStake

Fields of SplitStake

stake_account_pubkey: Pubkeystake_authority: SignerIndexsign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexsplit_stake_account: SignerIndexseed: Option<String>lamports: u64fee_payer: SignerIndex
ShowStakeHistory

Fields of ShowStakeHistory

use_lamports_unit: bool
ShowStakeAccount

Fields of ShowStakeAccount

pubkey: Pubkeyuse_lamports_unit: bool
StakeAuthorize

Fields of StakeAuthorize

stake_account_pubkey: Pubkeynew_authorizations: Vec<(StakeAuthorize, Pubkey, SignerIndex)>sign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexfee_payer: SignerIndex
StakeSetLockup

Fields of StakeSetLockup

stake_account_pubkey: Pubkeylockup: LockupArgscustodian: SignerIndexsign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexfee_payer: SignerIndex
WithdrawStake

Fields of WithdrawStake

stake_account_pubkey: Pubkeydestination_account_pubkey: Pubkeylamports: u64withdraw_authority: SignerIndexsign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexfee_payer: SignerIndex
CreateStorageAccount

Fields of CreateStorageAccount

account_owner: Pubkeystorage_account: SignerIndexaccount_type: StorageAccountType
ClaimStorageReward

Fields of ClaimStorageReward

node_account_pubkey: Pubkeystorage_account_pubkey: Pubkey
ShowStorageAccount(Pubkey)
GetValidatorInfo(Option<Pubkey>)
SetValidatorInfo

Fields of SetValidatorInfo

validator_info: Valueforce_keybase: boolinfo_pubkey: Option<Pubkey>
CreateVoteAccount

Fields of CreateVoteAccount

seed: Option<String>identity_account: SignerIndexauthorized_voter: Option<Pubkey>authorized_withdrawer: Option<Pubkey>commission: u8
ShowVoteAccount

Fields of ShowVoteAccount

pubkey: Pubkeyuse_lamports_unit: boolcommitment_config: CommitmentConfig
WithdrawFromVoteAccount

Fields of WithdrawFromVoteAccount

vote_account_pubkey: Pubkeydestination_account_pubkey: Pubkeywithdraw_authority: SignerIndexlamports: u64
VoteAuthorize

Fields of VoteAuthorize

vote_account_pubkey: Pubkeynew_authorized_pubkey: Pubkeyvote_authorize: VoteAuthorize
VoteUpdateValidator

Fields of VoteUpdateValidator

vote_account_pubkey: Pubkeynew_identity_account: SignerIndex
Address
Airdrop

Fields of Airdrop

faucet_host: Option<IpAddr>faucet_port: u16pubkey: Option<Pubkey>lamports: u64
Balance

Fields of Balance

pubkey: Option<Pubkey>use_lamports_unit: bool
Cancel(Pubkey)
Confirm(Signature)
ResolveSigner(Option<String>)
ShowAccount

Fields of ShowAccount

pubkey: Pubkeyoutput_file: Option<String>use_lamports_unit: bool
TimeElapsed(PubkeyPubkeyDateTime<Utc>)
Transfer

Fields of Transfer

lamports: u64to: Pubkeyfrom: SignerIndexsign_only: boolblockhash_query: BlockhashQuerynonce_account: Option<Pubkey>nonce_authority: SignerIndexfee_payer: SignerIndex
Witness(PubkeyPubkey)

Trait Implementations

impl Debug for CliCommand[src]

impl PartialEq<CliCommand> for CliCommand[src]

impl StructuralPartialEq for CliCommand[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.

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.

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