[][src]Struct solana_sdk::system_transaction::SystemTransaction

pub struct SystemTransaction {}

Methods

impl SystemTransaction[src]

pub fn new_program_account(
    from_keypair: &Keypair,
    to: &Pubkey,
    recent_blockhash: Hash,
    lamports: u64,
    space: u64,
    program_id: &Pubkey,
    fee: u64
) -> Transaction
[src]

Create and sign new SystemInstruction::CreateAccount transaction

pub fn new_account(
    from_keypair: &Keypair,
    to: &Pubkey,
    lamports: u64,
    recent_blockhash: Hash,
    fee: u64
) -> Transaction
[src]

Create and sign a transaction to create a system account

pub fn new_assign(
    from_keypair: &Keypair,
    recent_blockhash: Hash,
    program_id: &Pubkey,
    fee: u64
) -> Transaction
[src]

Create and sign new SystemInstruction::Assign transaction

pub fn new_move(
    from_keypair: &Keypair,
    to: &Pubkey,
    lamports: u64,
    recent_blockhash: Hash,
    fee: u64
) -> Transaction
[src]

Create and sign new SystemInstruction::Move transaction

pub fn new_move_many(
    from: &Keypair,
    moves: &[(Pubkey, u64)],
    recent_blockhash: Hash,
    fee: u64
) -> Transaction
[src]

Create and sign new SystemInstruction::Move transaction to many destinations

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self