@asyncswap/eth-rpc 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/eth-api.ts ADDED
@@ -0,0 +1,275 @@
1
+ import { initializeRpcClient, JsonRpcClient } from "@asyncswap/jsonrpc";
2
+
3
+ export class EthExecutionClient {
4
+ private client: JsonRpcClient;
5
+
6
+ constructor(url: string) {
7
+ this.client = initializeRpcClient(url);
8
+ }
9
+
10
+ // eth/transaction
11
+ async eth_getTransactionByHash(
12
+ transactionHash: Hash32,
13
+ ): Promise<NotFound | TransactionInfo> {
14
+ return await this.client.call(EthMethods.eth_getTransactionByHash, [
15
+ transactionHash,
16
+ ]);
17
+ }
18
+ async eth_getTransactionByBlockHashAndIndex(
19
+ blockHash: Hash32,
20
+ transactionIndex: Uint,
21
+ ): Promise<NotFound | TransactionInfo> {
22
+ return await this.client.call(
23
+ EthMethods.eth_getTransactionByBlockHashAndIndex,
24
+ [blockHash, transactionIndex],
25
+ );
26
+ }
27
+ async eth_getTransactionReceipt(
28
+ transactionHash: Hash32,
29
+ ): Promise<NotFound | ReceiptInfo> {
30
+ return await this.client.call(EthMethods.eth_getTransactionReceipt, [
31
+ transactionHash,
32
+ ]);
33
+ }
34
+
35
+ // eth/submit
36
+ async eth_sendTransaction(transaction: GenericTransaction): Promise<Hash32> {
37
+ return await this.client.call(EthMethods.eth_sendTransaction, [
38
+ transaction,
39
+ ]);
40
+ }
41
+ async eth_sendRawTransaction(transaction: Bytes): Promise<Hash32> {
42
+ return await this.client.call(EthMethods.eth_sendRawTransaction, [
43
+ transaction,
44
+ ]);
45
+ }
46
+ // eth/state
47
+ async eth_getBalance(
48
+ address: Address,
49
+ block: BlockNumberOrTagOrHash,
50
+ ): Promise<Uint> {
51
+ return await this.client.call(EthMethods.eth_getBalance, [address, block]);
52
+ }
53
+ async eth_getStorageAt(
54
+ address: Address,
55
+ storageSlot: Bytes32,
56
+ block: BlockNumberOrTagOrHash,
57
+ ): Promise<Bytes> {
58
+ return await this.client.call(EthMethods.eth_getStorageAt, [
59
+ address,
60
+ storageSlot,
61
+ block,
62
+ ]);
63
+ }
64
+ async eth_getTransactionCount(
65
+ address: Address,
66
+ block: BlockNumberOrTagOrHash,
67
+ ): Promise<Uint> {
68
+ return await this.client.call(EthMethods.eth_getTransactionCount, [
69
+ address,
70
+ block,
71
+ ]);
72
+ }
73
+ async eth_getCode(
74
+ address: Address,
75
+ block: BlockNumberOrTagOrHash,
76
+ ): Promise<Bytes> {
77
+ return await this.client.call(EthMethods.eth_getCode, [address, block]);
78
+ }
79
+ async eth_getProof(
80
+ address: Address,
81
+ storageKeys: Bytes32[],
82
+ block: BlockNumberOrTagOrHash,
83
+ ): Promise<AccountProof> {
84
+ return await this.client.call(EthMethods.eth_getProof, [
85
+ address,
86
+ storageKeys,
87
+ block,
88
+ ]);
89
+ }
90
+ // eth/sign
91
+ async eth_sign(address: Address, message: Bytes): Promise<Bytes65> {
92
+ return await this.client.call(EthMethods.eth_sign, [address, message]);
93
+ }
94
+ async eth_signTransaction(transaction: GenericTransaction): Promise<Bytes> {
95
+ return await this.client.call(EthMethods.eth_signTransaction, [
96
+ transaction,
97
+ ]);
98
+ }
99
+ // eth/filter
100
+ async eth_newFilter(filter: Filter): Promise<Uint> {
101
+ return await this.client.call(EthMethods.eth_newFilter, [filter]);
102
+ }
103
+ async eth_newBlockFilter(): Promise<Uint> {
104
+ return await this.client.call(EthMethods.eth_newBlockFilter, []);
105
+ }
106
+ async eth_newPendingTransactionFilter(): Promise<Uint> {
107
+ return await this.client.call(
108
+ EthMethods.eth_newPendingTransactionFilter,
109
+ [],
110
+ );
111
+ }
112
+ async eth_uninstallFilter(): Promise<Uint> {
113
+ return await this.client.call(EthMethods.eth_uninstallFilter, []);
114
+ }
115
+ async eth_getFilterChanges(): Promise<FilterResults> {
116
+ return await this.client.call(EthMethods.eth_getFilterChanges, []);
117
+ }
118
+ async eth_getFilterLogs(filterIdentifier: Uint): Promise<FilterResults> {
119
+ return await this.client.call(EthMethods.eth_getFilterLogs, [
120
+ filterIdentifier,
121
+ ]);
122
+ }
123
+ async eth_getLogs(filter: Filter): Promise<FilterResults> {
124
+ return await this.client.call(EthMethods.eth_getLogs, [filter]);
125
+ }
126
+ // eth/feeMarket
127
+ async eth_gasPrice(): Promise<Uint> {
128
+ return await this.client.call(EthMethods.eth_gasPrice, []);
129
+ }
130
+ async eth_blobBaseFee(): Promise<Uint> {
131
+ return await this.client.call(EthMethods.eth_blobBaseFee, []);
132
+ }
133
+ async eth_maxPriorityFeePerGas(): Promise<Uint> {
134
+ return await this.client.call(EthMethods.eth_maxPriorityFeePerGas, []);
135
+ }
136
+ async eth_feeHistory(
137
+ blockCount: Uint,
138
+ newestBlock: BlockNumberOrTag,
139
+ rewardPercentiles: number[],
140
+ ): Promise<FeeHistoryResults> {
141
+ return await this.client.call(EthMethods.eth_feeHistory, [
142
+ blockCount,
143
+ newestBlock,
144
+ rewardPercentiles,
145
+ ]);
146
+ }
147
+ // eth/execute
148
+ async eth_call(
149
+ transaction: GenericTransaction,
150
+ block: BlockNumberOrTagOrHash,
151
+ ): Promise<Bytes> {
152
+ return this.client.call(EthMethods.eth_call, [transaction, block]);
153
+ }
154
+ async eth_estimateGas(
155
+ transaction: GenericTransaction,
156
+ block: BlockNumberOrTag,
157
+ ): Promise<Uint> {
158
+ return await this.client.call(EthMethods.eth_estimateGas, [
159
+ transaction,
160
+ block,
161
+ ]);
162
+ }
163
+ async eth_createAccessList(
164
+ transaction: GenericTransaction,
165
+ block: BlockNumberOrTag,
166
+ ): Promise<AccessListResult> {
167
+ return await this.client.call(EthMethods.eth_createAccessList, [
168
+ transaction,
169
+ block,
170
+ ]);
171
+ }
172
+ async eth_simulateV1(
173
+ payload: EthSimulatePayload,
174
+ blockTag: BlockNumberOrTagOrHash,
175
+ ): Promise<EthSimulateResult> {
176
+ return await this.client.call(EthMethods.eth_simulateV1, [
177
+ payload,
178
+ blockTag,
179
+ ]);
180
+ }
181
+ // eth/client
182
+ async eth_chainId(): Promise<Uint> {
183
+ return await this.client.call(EthMethods.eth_chainId, []);
184
+ }
185
+ async eth_syncing(): Promise<SyncingStatus> {
186
+ return await this.client.call(EthMethods.eth_syncing, []);
187
+ }
188
+ async eth_coinbase(): Promise<Address> {
189
+ return await this.client.call(EthMethods.eth_coinbase, []);
190
+ }
191
+ async eth_accounts(): Promise<Addresses> {
192
+ return await this.client.call(EthMethods.eth_accounts, []);
193
+ }
194
+ async eth_blockNumber(): Promise<Uint> {
195
+ return await this.client.call(EthMethods.eth_blockNumber, []);
196
+ }
197
+ async net_version(): Promise<UintDecimal> {
198
+ return await this.client.call(EthMethods.net_version, []);
199
+ }
200
+ // eth/block
201
+ async eth_getBlockByHash(
202
+ blockHash: Hash32,
203
+ hydratedTransactions: boolean,
204
+ ): Promise<NotFound | Block> {
205
+ return await this.client.call(EthMethods.eth_getBlockByHash, [
206
+ blockHash,
207
+ hydratedTransactions,
208
+ ]);
209
+ }
210
+ async eth_getBlockByNumber(
211
+ block: BlockNumberOrTag,
212
+ hydratedTransactions: boolean,
213
+ ): Promise<NotFound | Block> {
214
+ return await this.client.call(EthMethods.eth_getBlockByNumber, [
215
+ block,
216
+ hydratedTransactions,
217
+ ]);
218
+ }
219
+ async eth_getBlockTransactionCountByHash(
220
+ blockHash: Hash32,
221
+ ): Promise<NotFound | Uint> {
222
+ return await this.client.call(
223
+ EthMethods.eth_getBlockTransactionCountByHash,
224
+ [blockHash],
225
+ );
226
+ }
227
+ async eth_getBlockTransactionCountByNumber(
228
+ block: BlockNumberOrTag,
229
+ ): Promise<NotFound | Uint> {
230
+ return await this.client.call(
231
+ EthMethods.eth_getBlockTransactionCountByNumber,
232
+ [block],
233
+ );
234
+ }
235
+ async eth_getUncleCountByBlockHash(
236
+ blockHash: Hash32,
237
+ ): Promise<NotFound | Uint> {
238
+ return await this.client.call(EthMethods.eth_getUncleCountByBlockHash, [
239
+ blockHash,
240
+ ]);
241
+ }
242
+ async eth_getUncleCountByBlockNumber(
243
+ block: BlockNumberOrTag,
244
+ ): Promise<NotFound | Uint> {
245
+ return await this.client.call(EthMethods.eth_getUncleCountByBlockNumber, [
246
+ block,
247
+ ]);
248
+ }
249
+ async eth_getBlockReceipts(
250
+ block: BlockNumberOrTagOrHash,
251
+ ): Promise<NotFound | ReceiptInfo[]> {
252
+ return await this.client.call(EthMethods.eth_getBlockReceipts, [block]);
253
+ }
254
+ // debug_*
255
+ async debug_getRawHeader(block: BlockNumberOrTag): Promise<Bytes> {
256
+ // RPL-encoded header
257
+ return await this.client.call(DebugMethods.debug_getRawHeader, [block]);
258
+ }
259
+ async debug_getRawBlock(block: BlockNumberOrTag): Promise<Bytes> {
260
+ // RPL-encoded block
261
+ return await this.client.call(DebugMethods.debug_getRawBlock, [block]);
262
+ }
263
+ async debug_getRawTransaction(transactionHash: Hash32): Promise<Bytes> {
264
+ // EIP-2718 binary-encoded transactions
265
+ return await this.client.call(DebugMethods.debug_getRawTransaction, [
266
+ transactionHash,
267
+ ]);
268
+ }
269
+ async debug_getRawReceipts(block: BlockNumberOrTag): Promise<Bytes[]> {
270
+ return await this.client.call(DebugMethods.debug_getRawReceipts, [block]);
271
+ }
272
+ async debug_getBadBlocks(): Promise<BadBlock[]> {
273
+ return await this.client.call(DebugMethods.debug_getBadBlocks, []);
274
+ }
275
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./engine-api";
2
+ export * from "./eth-api";
@@ -0,0 +1,23 @@
1
+ declare global {
2
+ // base.yaml
3
+ export type Hex = `0x${string}`;
4
+ export type Address = `0x${string}`;
5
+ export type Addresses = Address[];
6
+ export type Byte = Hex;
7
+ export type Bytes = Hex;
8
+ export type Bytes32 = Hex;
9
+ export type Bytes8 = Hex;
10
+ export type Bytes48 = Hex;
11
+ export type Bytes96 = Hex;
12
+ export type Bytes256 = Hex;
13
+ export type Bytes65 = Hex;
14
+ export type Ratio = number;
15
+ export type Uint = Hex;
16
+ export type Uint64 = Hex;
17
+ export type Uint256 = Hex;
18
+ export type UintDecimal = string; // e.g '1'
19
+ export type Hash32 = Hex;
20
+ export type NotFound = null;
21
+ }
22
+
23
+ export { };
@@ -0,0 +1,46 @@
1
+ declare global {
2
+ // block.yaml
3
+ export type BlockTag =
4
+ | "earliest"
5
+ | "finalized"
6
+ | "safe"
7
+ | "latest"
8
+ | "pending";
9
+ export type BlockNumberOrTag = Hex | BlockTag;
10
+ export type BlockNumberOrTagOrHash = BlockNumberOrTag | Hex;
11
+ export interface Block {
12
+ hash: Hash32;
13
+ parentHash: Hash32;
14
+ sha3Uncles: Hash32;
15
+ miner: Address;
16
+ stateRoot: Hash32;
17
+ transactionsRoot: Hash32;
18
+ receiptsRoot: Hash32;
19
+ logsBloom: Bytes256;
20
+ number: Uint;
21
+ gasLimit: Uint;
22
+ gasUsed: Uint;
23
+ timestamp: Uint;
24
+ extraData: Bytes;
25
+ mixHash: Hash32;
26
+ nonce: Bytes8;
27
+ size: Uint;
28
+ transactions: Hash32[] | TransactionInfo[];
29
+ uncles: Hash32[];
30
+ requestedHash?: Hash32;
31
+ baseFeePerGas?: Uint;
32
+ withdrawalsRoot?: Hash32;
33
+ blobGasUsed?: Uint;
34
+ excessBlobGas?: Uint;
35
+ parentBeaconBlockRoot?: Hash32;
36
+ withdrawals?: Withdrawal[];
37
+ difficulty?: Uint;
38
+ }
39
+ export interface BadBlock {
40
+ block: Block;
41
+ hash: Hash32;
42
+ rlp: Bytes;
43
+ }
44
+ }
45
+
46
+ export { };
@@ -0,0 +1,11 @@
1
+ declare global {
2
+ // client.yaml
3
+ export type SyncingStatus = Syncing | false;
4
+ export interface Syncing {
5
+ startingBlock?: Uint;
6
+ currentBlock?: Uint;
7
+ highestBlock?: Uint;
8
+ }
9
+ }
10
+
11
+ export { };
@@ -0,0 +1,11 @@
1
+ declare global {
2
+ export enum DebugMethods {
3
+ debug_getRawHeader = "debug_getRawHeader",
4
+ debug_getRawBlock = "debug_getRawBlock",
5
+ debug_getRawTransaction = "debug_getRawTransaction",
6
+ debug_getRawReceipts = "debug_getRawReceipts",
7
+ debug_getBadBlocks = "debug_getBadBlocks",
8
+ }
9
+ }
10
+
11
+ export { };
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ export interface BlobAndProofV1 {
3
+ blob: Bytes;
4
+ proof: Bytes48;
5
+ }
6
+ export interface BlobAndProofV2 {
7
+ blob: Bytes;
8
+ proofs: Bytes48[];
9
+ }
10
+ }
11
+
12
+ export { };
@@ -0,0 +1,32 @@
1
+ declare global {
2
+ // forkchoice
3
+ export interface ForkchoiceStateV1 {
4
+ headBlockHash: Hash32;
5
+ safeBlockHash: Hash32;
6
+ finalizedBlockHash: Hash32;
7
+ }
8
+ export interface ForkchoiceUpdatedResponseV1 {
9
+ payloadStatus: RestrictedPayloadStatusV1;
10
+ payloadId?: Bytes8;
11
+ }
12
+ export interface PayloadAttributesV1 {
13
+ timestamp: Uint64;
14
+ prevRandao: Bytes32;
15
+ suggestedFeeRecipient: Address;
16
+ }
17
+ export interface PayloadAttributesV2 {
18
+ timestamp: Uint64;
19
+ prevRandao: Bytes32;
20
+ suggestedFeeRecipient: Address;
21
+ withdrawals: WithdrawalV1[];
22
+ }
23
+ export interface PayloadAttributesV3 {
24
+ timestamp: Uint64;
25
+ prevRandao: Bytes32;
26
+ suggestedFeeRecipient: Address;
27
+ withdrawals: WithdrawalV1[];
28
+ parentBeaconBlockRoot: Hash32;
29
+ }
30
+ }
31
+
32
+ export { };
@@ -0,0 +1,42 @@
1
+ declare global {
2
+ export enum EngineMethods {
3
+ // eth_methods
4
+ eth_blockNumber = "eth_blockNumber",
5
+ eth_call = "eth_call",
6
+ eth_chainId = "eth_chainId",
7
+ eth_getCode = "eth_getCode",
8
+ eth_getBlockByHash = "eth_getBlockByHash",
9
+ eth_getBlockByNumber = "eth_getBlockByNumber",
10
+ eth_getLogs = "eth_getLogs",
11
+ eth_sendRawTransaction = "eth_sendRawTransaction",
12
+ eth_syncing = "eth_syncing",
13
+ // engine/blob
14
+ engine_getBlobsV1 = "engine_getBlobsV1",
15
+ engine_getBlobsV2 = "engine_getBlobsV2",
16
+ engine_getBlobsV3 = "engine_getBlobsV3",
17
+ // engine/capabilities
18
+ engine_exchangeCapabilities = "engine_exchangeCapabilities",
19
+ // engine/forkchoice
20
+ engine_forkchoiceUpdatedV1 = "engine_forkchoiceUpdatedV1",
21
+ engine_forkchoiceUpdatedV2 = "engine_forkchoiceUpdatedV2",
22
+ engine_forkchoiceUpdatedV3 = "engine_forkchoiceUpdatedV3",
23
+ // engine/payload
24
+ engine_newPayloadV1 = "engine_newPayloadV1",
25
+ engine_newPayloadV2 = "engine_newPayloadV2",
26
+ engine_newPayloadV3 = "engine_newPayloadV3",
27
+ engine_newPayloadV4 = "engine_newPayloadV4",
28
+ engine_getPayloadV1 = "engine_getPayloadV1",
29
+ engine_getPayloadV2 = "engine_getPayloadV2",
30
+ engine_getPayloadV3 = "engine_getPayloadV3",
31
+ engine_getPayloadV4 = "engine_getPayloadV4",
32
+ engine_getPayloadV5 = "engine_getPayloadV5",
33
+ engine_getPayloadBodiesByHashV1 = "engine_getPayloadBodiesByHashV1",
34
+ engine_getPayloadBodiesByRangeV1 = "engine_getPayloadBodiesByRangeV1",
35
+ engine_newPayloadV5 = "engine_newPayloadV5",
36
+ engine_getPayloadV6 = "engine_getPayloadV6",
37
+ // engine/transition-configuration
38
+ engine_exchangeTransitionConfigurationV1 = "engine_exchangeTransitionConfigurationV1",
39
+ }
40
+ }
41
+
42
+ export { };
@@ -0,0 +1,121 @@
1
+ declare global {
2
+ export enum PAYLOAD_STATUS {
3
+ VALID = "VALID",
4
+ INVALID = "INVALID",
5
+ SYNCING = "SYNCING",
6
+ ACCEPTED = "ACCEPTED",
7
+ INVALID_BLOCK_HASH = "INVALID_BLOCK_HASH",
8
+ }
9
+ export interface PayloadStatusV1 {
10
+ status: PAYLOAD_STATUS;
11
+ latestValidHash?: Hash32;
12
+ validationError?: string;
13
+ }
14
+ export interface RestrictedPayloadStatusV1 {
15
+ status:
16
+ | PAYLOAD_STATUS.VALID
17
+ | PAYLOAD_STATUS.INVALID
18
+ | PAYLOAD_STATUS.SYNCING;
19
+ latestValidHash: Hash32;
20
+ validationError: string;
21
+ }
22
+ export interface PayloadStatusNoInvalidBlockHash {
23
+ status: Exclude<PAYLOAD_STATUS, PAYLOAD_STATUS.INVALID_BLOCK_HASH>;
24
+ latestValidHash: Hash32;
25
+ validationError: string;
26
+ }
27
+ export interface ExecutionPayloadV1 {
28
+ parentHash: Hash32;
29
+ feeRecipient: Address;
30
+ stateRoot: Hash32;
31
+ receiptsRoot: Hash32;
32
+ logsBloom: Bytes256;
33
+ prevRandao: Bytes32;
34
+ blockNumber: Uint64;
35
+ gasLimit: Uint64;
36
+ gasUsed: Uint64;
37
+ timestamp: Uint64;
38
+ extraData: Bytes32;
39
+ baseFeePerGas: Uint64;
40
+ blockHash: Hash32;
41
+ transactions: Bytes[];
42
+ }
43
+ export interface WithdrawalV1 {
44
+ index: Uint64;
45
+ validatorIndex: Uint64;
46
+ address: Address;
47
+ amount: Uint64;
48
+ }
49
+ export interface ExecutionPayloadV2 {
50
+ parentHash: Hash32;
51
+ feeRecipient: Address;
52
+ stateRoot: Hash32;
53
+ receiptsRoot: Hash32;
54
+ logsBloom: Bytes256;
55
+ prevRandao: Bytes32;
56
+ blockNumber: Uint64;
57
+ gasLimit: Uint64;
58
+ gasUsed: Uint64;
59
+ timestamp: Uint64;
60
+ extraData: Bytes32;
61
+ baseFeePerGas: Uint64;
62
+ blockHash: Hash32;
63
+ transactions: Bytes[];
64
+ withdrawals: WithdrawalV1[];
65
+ }
66
+ export interface ExecutionPayloadV3 {
67
+ parentHash: Hash32;
68
+ feeRecipient: Address;
69
+ stateRoot: Hash32;
70
+ receiptsRoot: Hash32;
71
+ logsBloom: Bytes256;
72
+ prevRandao: Bytes32;
73
+ blockNumber: Uint64;
74
+ gasLimit: Uint64;
75
+ gasUsed: Uint64;
76
+ timestamp: Uint64;
77
+ extraData: Bytes32;
78
+ baseFeePerGas: Uint64;
79
+ blockHash: Hash32;
80
+ transactions: Bytes[];
81
+ withdrawals: WithdrawalV1[];
82
+ blobGasUsed: Uint64;
83
+ excessBlobGas: Uint64;
84
+ }
85
+ export interface ExecutionPayloadV4 {
86
+ parentHash: Hash32;
87
+ feeRecipient: Address;
88
+ stateRoot: Hash32;
89
+ receiptsRoot: Hash32;
90
+ logsBloom: Bytes256;
91
+ prevRandao: Bytes32;
92
+ blockNumber: Uint64;
93
+ gasLimit: Uint64;
94
+ gasUsed: Uint64;
95
+ timestamp: Uint64;
96
+ extraData: Bytes32;
97
+ baseFeePerGas: Uint64;
98
+ blockHash: Hash32;
99
+ transactions: Bytes[];
100
+ withdrawals: WithdrawalV1[];
101
+ blobGasUsed: Uint64;
102
+ excessBlobGas: Uint64;
103
+ blockAccessList: Bytes;
104
+ }
105
+ export interface ExecutionPayloadBodyV1 {
106
+ transactions: Bytes[];
107
+ withdrawals?: WithdrawalV1[];
108
+ }
109
+ export interface BlobsBundleV1 {
110
+ commitments: Bytes48[];
111
+ proofs: Bytes48[];
112
+ blobs: Bytes[];
113
+ }
114
+ export interface BlobsBundleV2 {
115
+ commitments: Bytes48[];
116
+ proofs: Bytes48[];
117
+ blobs: Bytes[];
118
+ }
119
+ }
120
+
121
+ export { };
@@ -0,0 +1,10 @@
1
+ declare global {
2
+ // engine types
3
+ export interface TransitionConfigurationV1 {
4
+ terminalTotalDifficulty: Uint256;
5
+ terminalBlockHash: Hash32;
6
+ terminalBlockNumber: Uint64;
7
+ }
8
+ }
9
+
10
+ export { };
@@ -0,0 +1,55 @@
1
+ declare global {
2
+ export enum EthMethods {
3
+ // eth/transaction
4
+ eth_getTransactionByHash = "eth_getTransactionByHash",
5
+ eth_getTransactionByBlockHashAndIndex = "eth_getTransactionByBlockHashAndIndex",
6
+ eth_getTransactionReceipt = "eth_getTransactionReceipt",
7
+ // eth/submit
8
+ eth_sendTransaction = "eth_sendTransaction",
9
+ eth_sendRawTransaction = "eth_sendRawTransaction",
10
+ // eth/state
11
+ eth_getBalance = "eth_getBalance",
12
+ eth_getStorageAt = "eth_getStorageAt",
13
+ eth_getTransactionCount = "eth_getTransactionCount",
14
+ eth_getCode = "eth_getCode",
15
+ eth_getProof = "eth_getProof",
16
+ // eth/sign
17
+ eth_sign = "eth_sign",
18
+ eth_signTransaction = "eth_signTransaction",
19
+ // eth/filter
20
+ eth_newFilter = "eth_newFilter",
21
+ eth_newBlockFilter = "eth_newBlockFilter",
22
+ eth_newPendingTransactionFilter = "eth_newPendingTransactionFilter",
23
+ eth_uninstallFilter = "eth_uninstallFilter",
24
+ eth_getFilterChanges = "eth_getFilterChanges",
25
+ eth_getFilterLogs = "eth_getFilterLogs",
26
+ eth_getLogs = "eth_getLogs",
27
+ // eth/feeMarket
28
+ eth_gasPrice = "eth_gasPrice",
29
+ eth_blobBaseFee = "eth_blobBaseFee",
30
+ eth_maxPriorityFeePerGas = "eth_maxPriorityFeePerGas",
31
+ eth_feeHistory = "eth_feeHistory",
32
+ // eth/execute
33
+ eth_call = "eth_call",
34
+ eth_estimateGas = "eth_estimateGas",
35
+ eth_createAccessList = "eth_createAccessList",
36
+ eth_simulateV1 = "eth_simulateV1",
37
+ // eth/client
38
+ eth_chainId = "eth_chainId",
39
+ eth_syncing = "eth_syncing",
40
+ eth_coinbase = "eth_coinbase",
41
+ eth_accounts = "eth_accounts",
42
+ eth_blockNumber = "eth_blockNumber",
43
+ net_version = "net_version",
44
+ // eth/block
45
+ eth_getBlockByHash = "eth_getBlockByHash",
46
+ eth_getBlockByNumber = "eth_getBlockByNumber",
47
+ eth_getBlockTransactionCountByHash = "eth_getBlockTransactionCountByHash",
48
+ eth_getBlockTransactionCountByNumber = "eth_getBlockTransactionCountByNumber",
49
+ eth_getUncleCountByBlockHash = "eth_getUncleCountByBlockHash",
50
+ eth_getUncleCountByBlockNumber = "eth_getUncleCountByBlockNumber",
51
+ eth_getBlockReceipts = "eth_getBlockReceipts",
52
+ }
53
+ }
54
+
55
+ export { };