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