UNPKG

eth-rpc-cache

Version:

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

6 lines (5 loc) 258 B
import stringify from 'json-stable-stringify'; export var getKey = function (method, params) { if (params === void 0) { params = []; } return "".concat(method, "(").concat(params.map(function (param) { return stringify(param); }).join(','), ")"); };