UNPKG

@truenetworkio/sdk

Version:

True Network SDK is the abstracted interface for interacting with True Network nodes.

8 lines (7 loc) 710 B
import { ApiPromise } from "@polkadot/api"; import { Schema } from "../../schemas"; export declare const CREDENTIALS_PALLET_NAME = "credentialsModule"; export declare const checkIfSchemaExist: (api: ApiPromise, schemaHash: string) => Promise<boolean>; export declare const getSchemaFromHash: (api: ApiPromise, schemaHash: string) => Promise<[string, any][] | undefined>; export declare const getAttestationForSchema: (api: ApiPromise, account: string, issuerHash: string, schema: Schema<any>) => Promise<(string | number)[] | undefined>; export declare const getAttestationsFromSchemaHash: (api: ApiPromise, account: string, issuerHash: string, schemaHash: string) => Promise<(string | number)[] | undefined>;