foundry-rpc
Version:
A thin wrapper of Foundry RPC
14 lines (13 loc) • 363 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var node_fetch_1 = require("node-fetch");
function request(node, body) {
return node_fetch_1.default(node, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(body)
});
}
exports.default = request;