UNPKG
foundry-rpc
Version:
latest (0.1.2)
2.0.0
0.1.2
0.1.1
0.1.0
A thin wrapper of Foundry RPC
github.com/CodeChain-io/foundry-rpc-js
CodeChain-io/foundry-rpc-js
foundry-rpc
/
build
/
src
/
request.d.ts
10 lines
(9 loc)
•
257 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Response
}
from
"node-fetch"
;
declare
type
Body
= {
jsonrpc
:
"2.0"
;
method
:
string
;
params
:
ReadonlyArray
<
any
>;
id
:
string
|
number
|
null
; };
export
default
function
request
(
node
:
string
,
body
:
Body
):
Promise
<
Response
>;
export
{};