Class IPFSGatewayHelperAbstract

Hierarchy

  • IPFSGatewayHelper

Constructors

Accessors

Methods

Constructors

Accessors

  • get gateway(): string
  • Selects a random gateway

    Returns string

Methods

  • Fetches the asset from the given IPFS path using a random IPFS gateway

    Type Parameters

    • Type = any

    Parameters

    • path: string
    • payloadType: "buffer" | "text" | "json" = 'json'
    • retries: number = 3

    Returns Promise<Type>

  • Registers a new IPFS gateway

    Parameters

    • path: string

    Returns void