Enum solana_program::system_instruction::SystemInstruction [−][src]
Variants
Fields of CreateAccount
Fields of Assign
owner: Pubkey
Owner program account
Fields of Transfer
lamports: u64
Create a new account at an address derived from a base pubkey and a seed
Account references
- [WRITE, SIGNER] Funding account
- [WRITE] Created account
- [SIGNER] (optional) Base account; the account matching the base Pubkey below must be provided as a signer, but may be the same as the funding account and provided as account 0
Fields of CreateAccountWithSeed
Consumes a stored nonce, replacing it with a successor
Account references
- [WRITE] Nonce account
- [] RecentBlockhashes sysvar
- [SIGNER] Nonce authority
WithdrawNonceAccount(u64)
Withdraw funds from a nonce account
Account references
- [WRITE] Nonce account
- [WRITE] Recipient account
- [] RecentBlockhashes sysvar
- [] Rent sysvar
- [SIGNER] Nonce authority
The u64
parameter is the lamports to withdraw, which must leave the
account balance above the rent exempt reserve or at zero.
InitializeNonceAccount(Pubkey)
Drive state of Uninitalized nonce account to Initialized, setting the nonce value
Account references
- [WRITE] Nonce account
- [] RecentBlockhashes sysvar
- [] 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
AuthorizeNonceAccount(Pubkey)
Change the entity authorized to execute nonce instructions on the account
Account references
- [WRITE] Nonce account
- [SIGNER] Nonce authority
The Pubkey
parameter identifies the entity to authorize
Allocate space in a (possibly new) account without funding
Account references
- [WRITE, SIGNER] New account
Fields of Allocate
space: u64
Number of bytes of memory to allocate
Allocate space for and assign an account at an address derived from a base public key and a seed
Account references
- [WRITE] Allocated account
- [SIGNER] Base account
Fields of AllocateWithSeed
Assign account to a program based on a seed
Account references
- [WRITE] Assigned account
- [SIGNER] Base account
Fields of AssignWithSeed
Transfer lamports from a derived address
Account references
- [WRITE] Funding account
- [SIGNER] Base for funding account
- [WRITE] Recipient account
Fields of TransferWithSeed
Trait Implementations
impl Clone for SystemInstruction
[src]
fn clone(&self) -> SystemInstruction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SystemInstruction
[src]
impl<'de> Deserialize<'de> for SystemInstruction
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<SystemInstruction> for SystemInstruction
[src]
fn eq(&self, other: &SystemInstruction) -> bool
[src]
fn ne(&self, other: &SystemInstruction) -> bool
[src]
impl Serialize for SystemInstruction
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for SystemInstruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for SystemInstruction
impl Send for SystemInstruction
impl Sync for SystemInstruction
impl Unpin for SystemInstruction
impl UnwindSafe for SystemInstruction
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> 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
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,