Taquito TypeDocs
    Preparing search index...

    Interface StorageProvider

    interface StorageProvider {
        getBigMapKeyByID<T>(
            id: string,
            keyToEncode: BigMapKeyType,
            schema: Schema,
            block?: BlockIdentifier,
        ): Promise<T>;
        getBigMapKeysByID<T>(
            id: string,
            keysToEncode: BigMapKeyType[],
            schema: Schema,
            block?: BlockIdentifier,
            batchSize?: number,
        ): Promise<MichelsonMap<MichelsonMapKey, T | undefined>>;
        getSaplingDiffByID(
            id: string,
            block?: BlockIdentifier,
        ): Promise<SaplingDiffResponse>;
        getStorage<T>(
            contract: string,
            schema?: unknown,
            block?: BlockIdentifier,
        ): Promise<T>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Fetch multiple values in a big map

      Type Parameters

      • T

      Parameters

      • id: string

        Big Map ID

      • keysToEncode: BigMapKeyType[]

        Array of keys to query (will be encoded properly according to the schema)

      • schema: Schema

        Big Map schema (can be determined using your contract type)

      • Optionalblock: BlockIdentifier

        optional block level to fetch the values from

      • OptionalbatchSize: number

        optional batch size representing the number of requests to execute in parallel

      Returns Promise<MichelsonMap<MichelsonMapKey, T | undefined>>

      An object containing the keys queried in the big map and their value in a well-formatted JSON object format