Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Minter

A programmatic metadata generator.

Hierarchy

  • Minter

Index

Constructors

constructor

  • new Minter(minterConfig?: MinterConfigProps): Minter

Properties

apiKey

apiKey: string

constants

constants: Constants

currentMint

currentMint: any

latestMints

latestMints: any

storage

storage: undefined | Storage

Methods

Private fieldChecks

getMetadataId

  • Uploads the current metadata object and returns its content identifier.

    Returns Promise<ResponseData<string>>

setField

setMetadata

  • setMetadata(metadata: any, override?: boolean): ResponseData<boolean>

upload

  • upload(file: File): Promise<ResponseData<{ hash: string; uri: string }>>
  • Uploads file and returns corresponding URI.

    Parameters

    • file: File

      The file to upload.

    Returns Promise<ResponseData<{ hash: string; uri: string }>>

uploadField

  • Uploads file and sets its corresponding URI to a field.

    Parameters

    • field: MetadataField

      The metadata field.

    • file: File

      The file to upload.

    Returns Promise<ResponseData<boolean>>

Generated using TypeDoc