Struct mpl_token_metadata::instruction::builders::Mint
source · pub struct Mint {Show 16 fields
pub token: Pubkey,
pub token_owner: Option<Pubkey>,
pub metadata: Pubkey,
pub master_edition: Option<Pubkey>,
pub token_record: Option<Pubkey>,
pub mint: Pubkey,
pub authority: Pubkey,
pub delegate_record: Option<Pubkey>,
pub payer: Pubkey,
pub system_program: Pubkey,
pub sysvar_instructions: Pubkey,
pub spl_token_program: Pubkey,
pub spl_ata_program: Pubkey,
pub authorization_rules_program: Option<Pubkey>,
pub authorization_rules: Option<Pubkey>,
pub args: MintArgs,
}
Fields§
§token: Pubkey
§token_owner: Option<Pubkey>
§metadata: Pubkey
§master_edition: Option<Pubkey>
§token_record: Option<Pubkey>
§mint: Pubkey
§delegate_record: Option<Pubkey>
§payer: Pubkey
§system_program: Pubkey
§sysvar_instructions: Pubkey
§spl_token_program: Pubkey
§spl_ata_program: Pubkey
§args: MintArgs
Trait Implementations§
source§impl InstructionBuilder for Mint
impl InstructionBuilder for Mint
Builds the instruction to mint a token.
Accounts:
[writable]
Token account key[optional]
Owner of the token account[]
Metadata account key (pda of [‘metadata’, program id, mint id])“)][optional]
Master Edition account[optional]
Token record account[writable]
Mint of token asset[signer]
Authority (mint authority or metadata’s update authority for NonFungible asests)[optional]
Metadata delegate record[signer, writable]
Payer[]
System program[]
Instructions sysvar account[]
SPL Token program[]
SPL Associated Token Account program[optional]
Token Authorization Rules program[optional]
Token Authorization Rules account