@iam4x/bsc-scan
Version:
An efficient BNB and token balance scanner
21 lines • 459 B
TypeScript
export interface JsonRpcPayload<T = unknown[]> {
jsonrpc: string;
method: string;
params: T;
id?: string | number;
}
export declare type EthCallJsonRpcPayload = JsonRpcPayload<[{
to: string;
data: string;
}, string]>;
export interface JsonRpcResult<T> {
id: number;
jsonrpc: string;
result: T;
error?: {
code: number;
message: string;
data: string;
};
}
//# sourceMappingURL=jsonrpc.d.ts.map