Skip to main content

MintNewEditionFromMasterEditionViaTokenBuilder

Struct MintNewEditionFromMasterEditionViaTokenBuilder 

Source
pub struct MintNewEditionFromMasterEditionViaTokenBuilder { /* private fields */ }
Expand description

Instruction builder for MintNewEditionFromMasterEditionViaToken.

§Accounts:

  1. [writable] new_metadata
  2. [writable] new_edition
  3. [writable] master_edition
  4. [writable] new_mint
  5. [writable] edition_mark_pda
  6. [signer] new_mint_authority
  7. [writable, signer] payer
  8. [signer] token_account_owner
  9. [] token_account
  10. [] new_metadata_update_authority
  11. [] metadata
  12. [optional] token_program (default to TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)
  13. [optional] system_program (default to 11111111111111111111111111111111)
  14. [optional] rent

Implementations§

Source§

impl MintNewEditionFromMasterEditionViaTokenBuilder

Source

pub fn new() -> Self

Source

pub fn new_metadata(&mut self, new_metadata: Pubkey) -> &mut Self

New Metadata key (pda of [‘metadata’, program id, mint id])

Source

pub fn new_edition(&mut self, new_edition: Pubkey) -> &mut Self

New Edition (pda of [‘metadata’, program id, mint id, ‘edition’])

Source

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’])

Source

pub fn new_mint(&mut self, new_mint: Pubkey) -> &mut Self

Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

Source

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).

Source

pub fn new_mint_authority(&mut self, new_mint_authority: Pubkey) -> &mut Self

Mint authority of new mint

Source

pub fn payer(&mut self, payer: Pubkey) -> &mut Self

payer

Source

pub fn token_account_owner(&mut self, token_account_owner: Pubkey) -> &mut Self

owner of token account containing master token (#8)

Source

pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self

token account containing token from master metadata mint

Source

pub fn new_metadata_update_authority( &mut self, new_metadata_update_authority: Pubkey, ) -> &mut Self

Update authority info for new metadata

Source

pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self

Master record metadata account

Source

pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self

[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'] Token program

Source

pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self

[optional account, default to '11111111111111111111111111111111'] System program

Source

pub fn rent(&mut self, rent: Option<Pubkey>) -> &mut Self

[optional account] Rent info

Source

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

Source

pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self

Add an aditional account to the instruction.

Source

pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self

Add additional accounts to the instruction.

Source

pub fn instruction(&self) -> Instruction

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V