UNPKG

eth-rpc-cache

Version:

A simple cache for Ethereum RPC requests extensible with different caching strategies

9 lines (8 loc) 280 B
import { type JsonRpcCallFn, type Strategy } from './types'; type Options = { allowOthers?: boolean; cache?: Map<string, unknown>; strategies?: Strategy[]; }; export declare const createEthRpcCache: (rpc: JsonRpcCallFn, options?: Options) => JsonRpcCallFn; export {};