@kaiachain/web3js-ext
Version:
web3.js extension for kaiachain blockchain
8 lines (7 loc) • 800 B
TypeScript
import { Web3Context } from "web3-core";
import { EthExecutionAPI, KeyStore } from "web3-types";
import { KaiaWeb3Account } from "../index.js";
export declare function context_create(context: Web3Context<EthExecutionAPI>): () => KaiaWeb3Account;
export declare function context_privateKeyToAccount(context: Web3Context<EthExecutionAPI>): (privateKey: Uint8Array | string, address?: string) => KaiaWeb3Account;
export declare function context_decrypt(context: Web3Context<EthExecutionAPI>): (keystore: KeyStore | string, password: string, options?: Record<string, unknown>) => Promise<KaiaWeb3Account>;
export declare function context_decryptList(context: Web3Context<EthExecutionAPI>): (keystore: KeyStore | string, password: string, options?: Record<string, unknown>) => Promise<KaiaWeb3Account[]>;