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

    Function unpackMintInterface

    • Unpack mint info from raw account data for SPL/T22/light-token.

      Parameters

      • address: PublicKey

        The mint pubkey

      • data:
            | Buffer<ArrayBufferLike>
            | Uint8Array<ArrayBufferLike>
            | AccountInfo<Buffer<ArrayBufferLike>>

        The raw account data or AccountInfo

      • programId: PublicKey = TOKEN_PROGRAM_ID

        Token program ID. Default light-token.

      Returns Omit<MintInterface, "merkleContext">

      Object with mint, optional mintContext and tokenMetadata.