KVStoreUtils
@human-protocol/sdk • Docs
@human-protocol/sdk / kvstore / KVStoreUtils
Class: KVStoreUtils
Introduction
Utility class for KVStore-related operations.
Installation
npm
npm install @human-protocol/sdkyarn
yarn install @human-protocol/sdkCode example
Signer
Using private key (backend)
Constructors
new KVStoreUtils()
new KVStoreUtils():
KVStoreUtils
Returns
Methods
getKVStoreData()
staticgetKVStoreData(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
Last updated