pub struct TransferOutOfEscrowBuilder { /* private fields */ }
Expand description
Instruction builder for TransferOutOfEscrow
.
Accounts:
[]
escrow[writable]
metadata[writable, signer]
payer[]
attribute_mint[writable]
attribute_src[writable]
attribute_dst[]
escrow_mint[]
escrow_account[optional]
system_program (default to11111111111111111111111111111111
)[optional]
ata_program (default toATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL
)[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
sysvar_instructions (default toSysvar1nstructions1111111111111111111111111
)[signer, optional]
authority
Implementations§
source§impl TransferOutOfEscrowBuilder
impl TransferOutOfEscrowBuilder
pub fn new() -> Self
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 attribute_mint(&mut self, attribute_mint: Pubkey) -> &mut Self
pub fn attribute_mint(&mut self, attribute_mint: Pubkey) -> &mut Self
Mint account for the new attribute
sourcepub fn attribute_src(&mut self, attribute_src: Pubkey) -> &mut Self
pub fn attribute_src(&mut self, attribute_src: Pubkey) -> &mut Self
Token account source for the new attribute
sourcepub fn attribute_dst(&mut self, attribute_dst: Pubkey) -> &mut Self
pub fn attribute_dst(&mut self, attribute_dst: Pubkey) -> &mut Self
Token account, owned by TM, destination for the new attribute
sourcepub fn escrow_mint(&mut self, escrow_mint: Pubkey) -> &mut Self
pub fn escrow_mint(&mut self, escrow_mint: Pubkey) -> &mut Self
Mint account that the escrow is attached
sourcepub fn escrow_account(&mut self, escrow_account: Pubkey) -> &mut Self
pub fn escrow_account(&mut self, escrow_account: Pubkey) -> &mut Self
Token account that holds the token the escrow is attached to
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 ata_program(&mut self, ata_program: Pubkey) -> &mut Self
pub fn ata_program(&mut self, ata_program: Pubkey) -> &mut Self
[optional account, default to 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL']
Associated Token program
sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
Token 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.