@lightprotocol/compressed-token - v0.23.0-beta.8
    Preparing search index...

    Function createMintInterface

    • Create and initialize a new mint for SPL/T22/light-token.

      Parameters

      • rpc: Rpc

        RPC connection to use

      • payer: Signer

        Fee payer

      • mintAuthority: PublicKey | Signer

        Account that will control minting (signer for light-token mints)

      • freezeAuthority: PublicKey | Signer | null

        Account that will control freeze and thaw (optional)

      • decimals: number

        Location of the decimal place

      • keypair: Keypair = ...

        Mint keypair (defaults to a random keypair)

      • OptionalconfirmOptions: ConfirmOptions

        Confirm options

      • programId: PublicKey = LIGHT_TOKEN_PROGRAM_ID

        Token program ID (defaults to LIGHT_TOKEN_PROGRAM_ID)

      • OptionaltokenMetadata: TokenMetadataInstructionData

        Optional token metadata (light-token mints only)

      • OptionaloutputStateTreeInfo: TreeInfo

        Optional output state tree info (light-token mints only)

      • OptionaladdressTreeInfo: AddressTreeInfo

        Optional address tree info (light-token mints only)

      Returns Promise<{ mint: PublicKey; transactionSignature: string }>

      Object with mint address and transaction signature