Abstract class that provides a default implementation for the loadAndSplit() method from the DocumentLoader interface. The load() method is left abstract and needs to be implemented by subclasses.

Hierarchy (view full)

Constructors

Methods

  • Fetches the data from the provided URL and returns it as a JSON object. If an error occurs during the fetch operation, an exception is thrown with the error message.

    Parameters

    • contractAddress: string

    Returns Promise<any>

    A promise that resolves to the fetched data as a JSON object.

    Throws

    An error if the fetch operation fails.

  • Processes the response data from the MintBase search request and converts it into an array of Documents.

    Parameters

    • data: any

      The response data from the MintBase search request.

    Returns Document[]

    An array of Documents.

Generated using TypeDoc