Struct mpl_token_metadata::instructions::PrintV1Builder
source · pub struct PrintV1Builder { /* private fields */ }
Expand description
Instruction builder.
Implementations§
source§impl PrintV1Builder
impl PrintV1Builder
pub fn new() -> Self
sourcepub fn edition_metadata(&mut self, edition_metadata: Pubkey) -> &mut Self
pub fn edition_metadata(&mut self, edition_metadata: Pubkey) -> &mut Self
New Metadata key (pda of [‘metadata’, program id, mint id])
sourcepub fn edition(&mut self, edition: Pubkey) -> &mut Self
pub fn edition(&mut self, edition: Pubkey) -> &mut Self
New Edition (pda of [‘metadata’, program id, mint id, ‘edition’])
sourcepub fn edition_mint(
&mut self,
edition_mint: Pubkey,
as_signer: bool
) -> &mut Self
pub fn edition_mint( &mut self, edition_mint: Pubkey, as_signer: bool ) -> &mut Self
Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
sourcepub fn edition_token_account_owner(
&mut self,
edition_token_account_owner: Pubkey
) -> &mut Self
pub fn edition_token_account_owner( &mut self, edition_token_account_owner: Pubkey ) -> &mut Self
Owner of the token account of new token
sourcepub fn edition_token_account(
&mut self,
edition_token_account: Pubkey
) -> &mut Self
pub fn edition_token_account( &mut self, edition_token_account: Pubkey ) -> &mut Self
Token account of new token
Mint authority of new mint
sourcepub fn edition_token_record(
&mut self,
edition_token_record: Option<Pubkey>
) -> &mut Self
pub fn edition_token_record( &mut self, edition_token_record: Option<Pubkey> ) -> &mut Self
[optional account]
Token record account
sourcepub fn master_edition(&mut self, master_edition: Pubkey) -> &mut Self
pub fn master_edition(&mut self, master_edition: Pubkey) -> &mut Self
Master Record Edition V2 (pda of [‘metadata’, program id, master metadata mint id, ‘edition’])
sourcepub fn edition_marker_pda(&mut self, edition_marker_pda: Pubkey) -> &mut Self
pub fn edition_marker_pda(&mut self, edition_marker_pda: Pubkey) -> &mut Self
Edition pda to mark creation - will be checked for pre-existence. (pda of [‘metadata’, program id, master metadata mint id, ‘edition’, edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
sourcepub fn master_token_account_owner(
&mut self,
master_token_account_owner: Pubkey
) -> &mut Self
pub fn master_token_account_owner( &mut self, master_token_account_owner: Pubkey ) -> &mut Self
owner of token account containing master token
sourcepub fn master_token_account(
&mut self,
master_token_account: Pubkey
) -> &mut Self
pub fn master_token_account( &mut self, master_token_account: Pubkey ) -> &mut Self
token account containing token from master metadata mint
sourcepub fn master_metadata(&mut self, master_metadata: Pubkey) -> &mut Self
pub fn master_metadata(&mut self, master_metadata: Pubkey) -> &mut Self
Master record metadata account
The update authority of the master edition.
sourcepub fn spl_token_program(&mut self, spl_token_program: Pubkey) -> &mut Self
pub fn spl_token_program(&mut self, spl_token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
Token program
sourcepub fn spl_ata_program(&mut self, spl_ata_program: Pubkey) -> &mut Self
pub fn spl_ata_program(&mut self, spl_ata_program: Pubkey) -> &mut Self
[optional account, default to 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL']
SPL Associated Token Account 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
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