pub fn create_master_edition<'a>(
    program_id: &Pubkey,
    edition_account_info: &'a AccountInfo<'a>,
    mint_info: &'a AccountInfo<'a>,
    update_authority_info: &'a AccountInfo<'a>,
    mint_authority_info: &'a AccountInfo<'a>,
    payer_account_info: &'a AccountInfo<'a>,
    metadata_account_info: &'a AccountInfo<'a>,
    token_program_info: &'a AccountInfo<'a>,
    system_account_info: &'a AccountInfo<'a>,
    max_supply: Option<u64>
) -> ProgramResult
Expand description

Creates a new master edition account for the specified edition_account_info and mint_info. Master editions only exist for non-fungible assets, therefore the supply of the mint must thei either 0 or 1; any value higher than that will generate an error.

After a master edition is created, it becomes the mint authority of the mint account.