UNPKG
@phiresky/eth-scan
Version:
latest (3.5.4)
3.5.4
An efficient Ether and token balance scanner
MyCryptoHQ/eth-scan
@phiresky/eth-scan
/
src
/
types
/
jsonrpc.ts
18 lines
(16 loc)
•
284 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export
interface
JsonRpcPayload
<T =
unknown
[]> {
jsonrpc
:
string
;
method
:
string
;
params
: T;
id
?:
string
|
number
; }
export
interface
JsonRpcResult
<T> {
id
:
number
;
jsonrpc
:
string
;
result
: T;
error
?: {
code
:
number
;
message
:
string
;
data
:
string
; }; }