UNPKG

@iam4x/bsc-scan

Version:

An efficient BNB and token balance scanner

16 lines 648 B
import type { EthCallJsonRpcPayload, Provider } 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: (to: string, data: string) => EthCallJsonRpcPayload; //# sourceMappingURL=http.d.ts.map