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 Freeze for CreateEscrowAccountBuilder
impl RefUnwindSafe for CreateEscrowAccountBuilder
impl Send for CreateEscrowAccountBuilder
impl Sync for CreateEscrowAccountBuilder
impl Unpin for CreateEscrowAccountBuilder
impl UnsafeUnpin 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