[−][src]Enum solana_sdk::nonce_instruction::NonceInstruction
Variants
Nonce
consumes a stored nonce, replacing it with a successor
Expects 2 Accounts: 0 - A NonceAccount 1 - RecentBlockhashes sysvar
The current authority must sign a transaction executing this instrucion
Withdraw(u64)
Withdraw
transfers funds out of the nonce account
Expects 4 Accounts: 0 - A NonceAccount 1 - A system account to which the lamports will be transferred 2 - RecentBlockhashes sysvar 3 - Rent sysvar
The u64
parameter is the lamports to withdraw, which must leave the
account balance above the rent exempt reserve or at zero.
The current authority must sign a transaction executing this instruction
Initialize(Pubkey)
Initialize
drives state of Uninitalized NonceAccount to Initialized,
setting the nonce value.
Expects 3 Accounts: 0 - A NonceAccount in the Uninitialized state 1 - RecentBlockHashes sysvar 2 - Rent sysvar
The Pubkey
parameter specifies the entity authorized to execute nonce
instruction on the account
No signatures are required to execute this instruction, enabling derived nonce account addresses
Authorize(Pubkey)
Authorize
changes the entity authorized to execute nonce instructions
on the account
Expects 1 Account: 0 - A NonceAccount
The Pubkey
parameter identifies the entity to authorize
The current authority must sign a transaction executing this instruction
Trait Implementations
impl Clone for NonceInstruction
[src]
fn clone(&self) -> NonceInstruction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NonceInstruction
[src]
impl<'de> Deserialize<'de> for NonceInstruction
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<NonceInstruction> for NonceInstruction
[src]
fn eq(&self, other: &NonceInstruction) -> bool
[src]
fn ne(&self, other: &NonceInstruction) -> bool
[src]
impl Serialize for NonceInstruction
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for NonceInstruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for NonceInstruction
impl Send for NonceInstruction
impl Sync for NonceInstruction
impl Unpin for NonceInstruction
impl UnwindSafe for NonceInstruction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,