create_mints

Function create_mints 

Source
pub fn create_mints<'a, 'info>(
    payer: &AccountInfo<'info>,
    accounts: &'info [AccountInfo<'info>],
    params: CreateMintsParams<'a>,
) -> Result<(), ProgramError>
Expand description

Create multiple mints and decompress all to Solana accounts.

Convenience function that builds a CreateMintsCpi from a slice of accounts.

§Arguments

  • payer - The fee payer account
  • accounts - The remaining accounts in the expected layout
  • params - Parameters for creating the mints

§Account Layout

  • [0]: light_system_program
  • [1..N+1]: mint_signers (SIGNER)
  • [N+1..N+6]: system PDAs (cpi_authority, registered_program, compression_authority, compression_program, system_program)
  • [N+6]: cpi_context_account (writable)
  • [N+7]: output_queue (writable)
  • [N+8]: state_merkle_tree (writable)
  • [N+9]: address_tree (writable)
  • [N+10]: compressible_config
  • [N+11]: rent_sponsor (writable)
  • [N+12..2N+12]: mint_pdas (writable)
  • [2N+12]: compressed_token_program (for CPI)