Struct mpl_token_metadata::instructions::PrintBuilder
source · pub struct PrintBuilder { /* private fields */ }
Expand description
Instruction builder for Print
.
§Accounts:
[writable]
edition_metadata[writable]
edition[writable]
edition_mint[]
edition_token_account_owner[writable]
edition_token_account[signer]
edition_mint_authority[writable, optional]
edition_token_record[writable]
master_edition[writable]
edition_marker_pda[writable, signer]
payer[signer]
master_token_account_owner[]
master_token_account[]
master_metadata[]
update_authority[optional]
spl_token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
spl_ata_program (default toATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL
)[optional]
sysvar_instructions (default toSysvar1nstructions1111111111111111111111111
)[optional]
system_program (default to11111111111111111111111111111111
)
Implementations§
source§impl PrintBuilder
impl PrintBuilder
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) -> &mut Self
pub fn edition_mint(&mut self, edition_mint: Pubkey) -> &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
pub fn print_args(&mut self, print_args: PrintArgs) -> &mut Self
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.