@kaiachain/ethers-ext
Version:
ethers.js extension for kaia blockchain
35 lines (34 loc) • 1.43 kB
TypeScript
import { FetchRequest, Networkish, JsonRpcProvider as EthersJsonRpcProvider, BrowserProvider as EthersWeb3Provider } from "ethers";
import { AsyncNamespaceApi } from "@kaiachain/js-ext-core";
import { JsonRpcSigner } from "./signer.js";
export declare class JsonRpcProvider extends EthersJsonRpcProvider {
admin: AsyncNamespaceApi;
debug: AsyncNamespaceApi;
governance: AsyncNamespaceApi;
klay: AsyncNamespaceApi;
net: AsyncNamespaceApi;
personal: AsyncNamespaceApi;
txpool: AsyncNamespaceApi;
constructor(url?: FetchRequest | string | undefined, network?: Networkish);
}
export declare class Web3Provider extends EthersWeb3Provider {
admin: AsyncNamespaceApi;
debug: AsyncNamespaceApi;
governance: AsyncNamespaceApi;
klay: AsyncNamespaceApi;
net: AsyncNamespaceApi;
personal: AsyncNamespaceApi;
txpool: AsyncNamespaceApi;
isKaikas?: boolean;
isMobile?: boolean;
private _sendFunction;
constructor(provider: any, network?: any);
getSigner(addressOrIndex?: string | number): Promise<JsonRpcSigner>;
send(method: string, params: Array<any> | Record<string, any>): Promise<any>;
listAccounts(): Promise<Array<JsonRpcSigner>>;
getTransactionCount(address: string): Promise<number>;
estimateGas(tx: any): Promise<any>;
signMessage(message: string): Promise<any>;
getGasPrice(): Promise<any>;
getFeeData(): Promise<any>;
}