Function tokenMetadataInitialize

  • Initializes a TLV entry with the basic token-metadata fields.

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • mint: PublicKey

      Mint Account

    • updateAuthority: PublicKey

      Update Authority

    • mintAuthority: PublicKey | Signer

      Mint Authority

    • name: string

      Longer name of token

    • symbol: string

      Shortened symbol of token

    • uri: string

      URI pointing to more metadata (image, video, etc)

    • multiSigners: Signer[] = []

      Signing accounts if authority is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_2022_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc