@truenetworkio/sdk
Version:
True Network SDK is the abstracted interface for interacting with True Network nodes.
5 lines (4 loc) • 377 B
TypeScript
import { ApiPromise } from "@polkadot/api";
import { KeyringPair } from '@polkadot/keyring/types';
export declare const saveAlgo: (api: ApiPromise, account: KeyringPair, schemaHashes: string[], code: number[]) => Promise<number>;
export declare const runAlgo: (api: ApiPromise, issuerHash: string, account: KeyringPair, userId: string, algorithmId: number) => Promise<number>;