KVStoreUtils

@human-protocol/sdkDocs


@human-protocol/sdk / kvstore / KVStoreUtils

Class: KVStoreUtils

Introduction

Utility class for KVStore-related operations.

Installation

npm

npm install @human-protocol/sdk

yarn

yarn install @human-protocol/sdk

Code example

Signer

Using private key (backend)

Constructors

new KVStoreUtils()

new KVStoreUtils(): KVStoreUtils

Returns

KVStoreUtils

Methods

getKVStoreData()

static getKVStoreData(chainId, address): Promise<IKVStore[]>

This function returns the KVStore data for a given address.

This uses Subgraph

Input parameters

Parameters

chainId: ChainId

Network in which the KVStore is deployed

address: string

Address of the KVStore

Returns

Promise<IKVStore[]>

KVStore data

Code example

Source

kvstore.ts:498

Last updated