Struct mpl_token_metadata::instructions::MintV1Builder
source · pub struct MintV1Builder { /* private fields */ }
Expand description
Instruction builder for MintV1
.
Accounts:
[writable]
token[optional]
token_owner[]
metadata[writable, optional]
master_edition[writable, optional]
token_record[writable]
mint[signer]
authority[optional]
delegate_record[writable, signer]
payer[optional]
system_program (default to11111111111111111111111111111111
)[optional]
sysvar_instructions (default toSysvar1nstructions1111111111111111111111111
)[optional]
spl_token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
spl_ata_program (default toATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL
)[optional]
authorization_rules_program[optional]
authorization_rules
Implementations§
source§impl MintV1Builder
impl MintV1Builder
pub fn new() -> Self
sourcepub fn token_owner(&mut self, token_owner: Option<Pubkey>) -> &mut Self
pub fn token_owner(&mut self, token_owner: Option<Pubkey>) -> &mut Self
[optional account]
Owner of the token account
sourcepub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
Metadata account (pda of [‘metadata’, program id, mint id])
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 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
(Mint or Update) authority
sourcepub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
pub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
[optional account]
Metadata delegate record
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 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
[optional account]
Token Authorization Rules program
[optional account]
Token Authorization Rules account
[optional argument]
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.