@phiresky/eth-scan
Version:
An efficient Ether and token balance scanner
17 lines • 670 B
TypeScript
import type { Provider } from '../types';
import { JsonRpcPayload } from '../types';
interface HttpProviderOptions {
url: string;
params?: Partial<Omit<RequestInit, 'body' | 'method' | 'headers'>>;
}
export declare type HttpProviderLike = string | HttpProviderOptions;
/**
* A raw HTTP provider, which can be used with an Ethereum node endpoint (JSON-RPC), or an `HttpProviderOptions` object.
*/
declare const provider: Provider<HttpProviderLike>;
export default provider;
/**
* Get the JSON-RPC payload for the `eth_call` function.
*/
export declare const getPayload: (method: string, params: unknown[]) => JsonRpcPayload;
//# sourceMappingURL=http.d.ts.map