Class representing a document loader for loading data from the SortXYZ blockchain using the SortXYZ API.

Hierarchy

Constructors

Properties

apiKey: string
blockchain: string
contractAddress: string
limit: number
queryType: string
sql: string

Methods

  • Method that loads the data from the SortXYZ blockchain based on the specified query parameters. It makes requests to the SortXYZ API and returns an array of Documents representing the retrieved data.

    Returns Promise<Document<Record<string, any>>[]>

    Promise<Document[]> - An array of Documents representing the retrieved data.

  • Loads the documents and splits them using a specified text splitter.

    Parameters

    Returns Promise<Document<Record<string, any>>[]>

    A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.

Generated using TypeDoc