Struct mpl_token_metadata::instructions::BurnV1Builder
source · pub struct BurnV1Builder { /* private fields */ }
Expand description
Instruction builder for BurnV1
.
Accounts:
[writable, signer]
authority[writable, optional]
collection_metadata[writable]
metadata[writable, optional]
edition[writable]
mint[writable]
token[writable, optional]
master_edition[optional]
master_edition_mint[optional]
master_edition_token[writable, optional]
edition_marker[writable, optional]
token_record[optional]
system_program (default to11111111111111111111111111111111
)[optional]
sysvar_instructions (default toSysvar1nstructions1111111111111111111111111
)[optional]
spl_token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)
Implementations§
source§impl BurnV1Builder
impl BurnV1Builder
pub fn new() -> Self
Asset owner or Utility delegate
sourcepub fn collection_metadata(
&mut self,
collection_metadata: Option<Pubkey>
) -> &mut Self
pub fn collection_metadata( &mut self, collection_metadata: Option<Pubkey> ) -> &mut Self
[optional account]
Metadata of the Collection
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 edition(&mut self, edition: Option<Pubkey>) -> &mut Self
pub fn edition(&mut self, edition: Option<Pubkey>) -> &mut Self
[optional account]
Edition of the asset
sourcepub fn master_edition(&mut self, master_edition: Option<Pubkey>) -> &mut Self
pub fn master_edition(&mut self, master_edition: Option<Pubkey>) -> &mut Self
[optional account]
Master edition account
sourcepub fn master_edition_mint(
&mut self,
master_edition_mint: Option<Pubkey>
) -> &mut Self
pub fn master_edition_mint( &mut self, master_edition_mint: Option<Pubkey> ) -> &mut Self
[optional account]
Master edition mint of the asset
sourcepub fn master_edition_token(
&mut self,
master_edition_token: Option<Pubkey>
) -> &mut Self
pub fn master_edition_token( &mut self, master_edition_token: Option<Pubkey> ) -> &mut Self
[optional account]
Master edition token account
sourcepub fn edition_marker(&mut self, edition_marker: Option<Pubkey>) -> &mut Self
pub fn edition_marker(&mut self, edition_marker: Option<Pubkey>) -> &mut Self
[optional account]
Edition marker account
sourcepub fn token_record(&mut self, token_record: Option<Pubkey>) -> &mut Self
pub fn token_record(&mut self, token_record: Option<Pubkey>) -> &mut Self
[optional account]
Token record 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
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 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.