pub struct CreateEscrowAccountBuilder { /* private fields */ }
Expand description
Instruction builder for CreateEscrowAccount
.
Accounts:
[writable]
escrow[writable]
metadata[]
mint[]
token_account[]
edition[writable, signer]
payer[optional]
system_program (default to11111111111111111111111111111111
)[optional]
sysvar_instructions (default toSysvar1nstructions1111111111111111111111111
)[signer, optional]
authority
Implementations§
source§impl CreateEscrowAccountBuilder
impl CreateEscrowAccountBuilder
pub fn new() -> Self
sourcepub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
Token account of the token
sourcepub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
Wallet paying for the transaction and new account
sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
System program
sourcepub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
Instructions sysvar account
[optional account]
Authority/creator of the escrow account
sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
source§impl Default for CreateEscrowAccountBuilder
impl Default for CreateEscrowAccountBuilder
source§fn default() -> CreateEscrowAccountBuilder
fn default() -> CreateEscrowAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CreateEscrowAccountBuilder
impl Send for CreateEscrowAccountBuilder
impl Sync for CreateEscrowAccountBuilder
impl Unpin for CreateEscrowAccountBuilder
impl UnwindSafe for CreateEscrowAccountBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more