pub struct MintNewEditionFromMasterEditionViaTokenBuilder { /* private fields */ }Expand description
Instruction builder for MintNewEditionFromMasterEditionViaToken.
§Accounts:
[writable]new_metadata[writable]new_edition[writable]master_edition[writable]new_mint[writable]edition_mark_pda[signer]new_mint_authority[writable, signer]payer[signer]token_account_owner[]token_account[]new_metadata_update_authority[]metadata[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[optional]system_program (default to11111111111111111111111111111111)[optional]rent
Implementations§
Source§impl MintNewEditionFromMasterEditionViaTokenBuilder
impl MintNewEditionFromMasterEditionViaTokenBuilder
pub fn new() -> Self
Sourcepub fn new_metadata(&mut self, new_metadata: Pubkey) -> &mut Self
pub fn new_metadata(&mut self, new_metadata: Pubkey) -> &mut Self
New Metadata key (pda of [‘metadata’, program id, mint id])
Sourcepub fn new_edition(&mut self, new_edition: Pubkey) -> &mut Self
pub fn new_edition(&mut self, new_edition: Pubkey) -> &mut Self
New Edition (pda of [‘metadata’, program id, mint id, ‘edition’])
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 new_mint(&mut self, new_mint: Pubkey) -> &mut Self
pub fn new_mint(&mut self, new_mint: Pubkey) -> &mut Self
Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
Sourcepub fn edition_mark_pda(&mut self, edition_mark_pda: Pubkey) -> &mut Self
pub fn edition_mark_pda(&mut self, edition_mark_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).
Mint authority of new mint
Sourcepub fn token_account_owner(&mut self, token_account_owner: Pubkey) -> &mut Self
pub fn token_account_owner(&mut self, token_account_owner: Pubkey) -> &mut Self
owner of token account containing master token (#8)
Sourcepub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
token account containing token from master metadata mint
Update authority info for new metadata
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 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 mint_new_edition_from_master_edition_via_token_args( &mut self, mint_new_edition_from_master_edition_via_token_args: MintNewEditionFromMasterEditionViaTokenArgs, ) -> &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.