pub struct BurnEditionNftBuilder { /* private fields */ }
Expand description
Instruction builder for BurnEditionNft
.
Accounts:
[writable]
metadata[writable, signer]
owner[writable]
print_edition_mint[]
master_edition_mint[writable]
print_edition_token_account[]
master_edition_token_account[writable]
master_edition_account[writable]
print_edition_account[writable]
edition_marker_account[optional]
spl_token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)
Implementations§
source§impl BurnEditionNftBuilder
impl BurnEditionNftBuilder
pub fn new() -> Self
sourcepub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
Metadata (pda of [‘metadata’, program id, mint id])
sourcepub fn print_edition_mint(&mut self, print_edition_mint: Pubkey) -> &mut Self
pub fn print_edition_mint(&mut self, print_edition_mint: Pubkey) -> &mut Self
Mint of the print edition NFT
sourcepub fn master_edition_mint(&mut self, master_edition_mint: Pubkey) -> &mut Self
pub fn master_edition_mint(&mut self, master_edition_mint: Pubkey) -> &mut Self
Mint of the original/master NFT
sourcepub fn print_edition_token_account(
&mut self,
print_edition_token_account: Pubkey
) -> &mut Self
pub fn print_edition_token_account( &mut self, print_edition_token_account: Pubkey ) -> &mut Self
Token account the print edition NFT is in
sourcepub fn master_edition_token_account(
&mut self,
master_edition_token_account: Pubkey
) -> &mut Self
pub fn master_edition_token_account( &mut self, master_edition_token_account: Pubkey ) -> &mut Self
Token account the Master Edition NFT is in
sourcepub fn master_edition_account(
&mut self,
master_edition_account: Pubkey
) -> &mut Self
pub fn master_edition_account( &mut self, master_edition_account: Pubkey ) -> &mut Self
MasterEdition2 of the original NFT
sourcepub fn print_edition_account(
&mut self,
print_edition_account: Pubkey
) -> &mut Self
pub fn print_edition_account( &mut self, print_edition_account: Pubkey ) -> &mut Self
Print Edition account of the NFT
sourcepub fn edition_marker_account(
&mut self,
edition_marker_account: Pubkey
) -> &mut Self
pub fn edition_marker_account( &mut self, edition_marker_account: Pubkey ) -> &mut Self
Edition Marker PDA of the NFT
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']
SPL Token Program
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.
pub fn instruction(&self) -> Instruction
Trait Implementations§
source§impl Default for BurnEditionNftBuilder
impl Default for BurnEditionNftBuilder
source§fn default() -> BurnEditionNftBuilder
fn default() -> BurnEditionNftBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BurnEditionNftBuilder
impl Send for BurnEditionNftBuilder
impl Sync for BurnEditionNftBuilder
impl Unpin for BurnEditionNftBuilder
impl UnwindSafe for BurnEditionNftBuilder
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