Struct mpl_token_metadata::instructions::TransferV1Cpi
source · pub struct TransferV1Cpi<'a, 'b> {Show 19 fields
pub __program: &'b AccountInfo<'a>,
pub token: &'b AccountInfo<'a>,
pub token_owner: &'b AccountInfo<'a>,
pub destination_token: &'b AccountInfo<'a>,
pub destination_owner: &'b AccountInfo<'a>,
pub mint: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub edition: Option<&'b AccountInfo<'a>>,
pub token_record: Option<&'b AccountInfo<'a>>,
pub destination_token_record: Option<&'b AccountInfo<'a>>,
pub authority: &'b AccountInfo<'a>,
pub payer: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub sysvar_instructions: &'b AccountInfo<'a>,
pub spl_token_program: &'b AccountInfo<'a>,
pub spl_ata_program: &'b AccountInfo<'a>,
pub authorization_rules_program: Option<&'b AccountInfo<'a>>,
pub authorization_rules: Option<&'b AccountInfo<'a>>,
pub __args: TransferV1InstructionArgs,
}
Expand description
transfer_v1
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
token: &'b AccountInfo<'a>
Token account
token_owner: &'b AccountInfo<'a>
Token account owner
destination_token: &'b AccountInfo<'a>
Destination token account
destination_owner: &'b AccountInfo<'a>
Destination token account owner
mint: &'b AccountInfo<'a>
Mint of token asset
metadata: &'b AccountInfo<'a>
Metadata (pda of [‘metadata’, program id, mint id])
edition: Option<&'b AccountInfo<'a>>
Edition of token asset
token_record: Option<&'b AccountInfo<'a>>
Owner token record account
destination_token_record: Option<&'b AccountInfo<'a>>
Destination token record account
Transfer authority (token owner or delegate)
payer: &'b AccountInfo<'a>
Payer
system_program: &'b AccountInfo<'a>
System Program
sysvar_instructions: &'b AccountInfo<'a>
Instructions sysvar account
spl_token_program: &'b AccountInfo<'a>
SPL Token Program
spl_ata_program: &'b AccountInfo<'a>
SPL Associated Token Account program
Token Authorization Rules Program
Token Authorization Rules account
__args: TransferV1InstructionArgs
The arguments for the instruction.
Implementations§
source§impl<'a, 'b> TransferV1Cpi<'a, 'b>
impl<'a, 'b> TransferV1Cpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: TransferV1CpiAccounts<'a, 'b>, args: TransferV1InstructionArgs ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for TransferV1Cpi<'a, 'b>
impl<'a, 'b> !Send for TransferV1Cpi<'a, 'b>
impl<'a, 'b> !Sync for TransferV1Cpi<'a, 'b>
impl<'a, 'b> Unpin for TransferV1Cpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for TransferV1Cpi<'a, 'b>
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