staker
Version:
Command line Utillity for Ethereum stakers
19 lines (16 loc) • 449 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.jsonRpcFetch = exports.baseFetchOptions = void 0;
const baseFetchOptions = {
method: "POST",
headers: {
"Content-Type": "application/json"
}
};
exports.baseFetchOptions = baseFetchOptions;
const jsonRpcFetch = (fetch, node, body) => fetch(node, { ...baseFetchOptions,
body
}).then(response => response.json());
exports.jsonRpcFetch = jsonRpcFetch;
;