whoisens-lib
Version:
Whois for ENS (Ethereum Name Service) lookup service
18 lines (17 loc) • 563 B
TypeScript
import { IJSONRCPResponse } from 'json-rpc3/dist/cjs/index.js';
export default class JSONRPCRequest {
private static instance;
private readonly jsonRPC;
private constructor();
static getInstance(): JSONRPCRequest;
/**
* Make a JSON-RCP call
* @link https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_call
* @link https://solidity.readthedocs.io/en/latest/abi-spec.html#examples
*/
makeRequest({ to, data }: {
to: any;
data: any;
}): Promise<IJSONRCPResponse>;
getNetworkID(): Promise<string>;
}