essential-eth 0.5.10-next.0 โ 0.5.11-next.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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/logger/package-version.d.ts +1 -1
- package/package.json +21 -12
- package/readme.md +66 -51
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.5.
|
|
1
|
+
export declare const version = "0.5.11-next.0";
|
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "essential-eth",
|
|
3
3
|
"description": "Ultralight JS for Ethereum",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.11-next.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
+
"private": false,
|
|
7
8
|
"source": "src/index.ts",
|
|
8
9
|
"exports": {
|
|
9
|
-
"require": "./dist/index.
|
|
10
|
-
"default": "./dist/index.modern.
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.modern.mjs"
|
|
11
12
|
},
|
|
12
|
-
"
|
|
13
|
+
"amdName": "essentialEth",
|
|
14
|
+
"main": "./dist/index.js",
|
|
13
15
|
"module": "./dist/index.module.js",
|
|
14
|
-
"
|
|
16
|
+
"umd:main": "./dist/index.umd.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
15
18
|
"files": [
|
|
16
19
|
"dist/"
|
|
17
20
|
],
|
|
@@ -31,7 +34,7 @@
|
|
|
31
34
|
"name": "JsonRpcProvider",
|
|
32
35
|
"path": "src/index.ts",
|
|
33
36
|
"import": "{ JsonRpcProvider }",
|
|
34
|
-
"limit": "20.
|
|
37
|
+
"limit": "20.24kb"
|
|
35
38
|
},
|
|
36
39
|
{
|
|
37
40
|
"name": "Contract",
|
|
@@ -42,13 +45,12 @@
|
|
|
42
45
|
],
|
|
43
46
|
"scripts": {
|
|
44
47
|
"size": "size-limit",
|
|
45
|
-
"test": "npm-run-all --parallel jest
|
|
48
|
+
"test": "npm-run-all --parallel jest build lint",
|
|
46
49
|
"test:all-node-versions": "npx trevor",
|
|
47
50
|
"lint": "eslint --cache --fix .",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"build": "rm -rf lib && microbundle",
|
|
51
|
+
"build": "rm -rf dist && run-p build:most build:umd",
|
|
52
|
+
"build:most": "microbundle --format modern,esm,cjs",
|
|
53
|
+
"build:umd": "microbundle --external none --format umd",
|
|
52
54
|
"build:readme": "bash ./scripts/markdown-magic/build-readme.sh",
|
|
53
55
|
"jest": "jest",
|
|
54
56
|
"build:chains-info": "npx ts-node scripts/fetch-chains-info.ts # used in getNetwork()",
|
|
@@ -112,5 +114,12 @@
|
|
|
112
114
|
"trailingComma": "all",
|
|
113
115
|
"tabWidth": 2,
|
|
114
116
|
"singleQuote": true
|
|
115
|
-
}
|
|
117
|
+
},
|
|
118
|
+
"keywords": [
|
|
119
|
+
"ethereum",
|
|
120
|
+
"polygon",
|
|
121
|
+
"evm",
|
|
122
|
+
"web-performance",
|
|
123
|
+
"tiny"
|
|
124
|
+
]
|
|
116
125
|
}
|
package/readme.md
CHANGED
|
@@ -26,12 +26,20 @@
|
|
|
26
26
|
|
|
27
27
|
<br/>
|
|
28
28
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
- ๐งช
|
|
32
|
-
-
|
|
29
|
+
- ๐๏ธ [tiny](https://bundlephobia.com/package/essential-eth)
|
|
30
|
+
- ๐ Strongly written TypeScript
|
|
31
|
+
- ๐งช Matches both `ethers` and `web3`
|
|
32
|
+
- โก๏ธ Near-identical API to `ethers`
|
|
33
|
+
- โก๏ธ Similar but improved API to `web3`
|
|
34
|
+
- ๐ Works for all EVM chains
|
|
35
|
+
- ๐ Ethereum
|
|
36
|
+
- ๐ฃ Polygon
|
|
37
|
+
- ๐ด Optimism
|
|
38
|
+
- ๐ต Arbitrum
|
|
39
|
+
- [Many more](src/providers/utils/chains-info.ts)
|
|
40
|
+
- ๐งช Strongly tested
|
|
33
41
|
- ๐ฒ Tree-shaking and no side-effects
|
|
34
|
-
- ๐
|
|
42
|
+
- ๐ All common JS versions (CommonJS, ESM, UMD, modern)
|
|
35
43
|
- โ
Node 18, 16, 14, & 12
|
|
36
44
|
- โ
Web
|
|
37
45
|
|
|
@@ -104,10 +112,17 @@
|
|
|
104
112
|
## Install
|
|
105
113
|
|
|
106
114
|
```sh
|
|
107
|
-
npm install --save essential-eth # TypeScript
|
|
115
|
+
npm install --save essential-eth # TypeScript included
|
|
108
116
|
|
|
109
117
|
# or yarn
|
|
110
|
-
yarn add essential-eth # TypeScript
|
|
118
|
+
yarn add essential-eth # TypeScript included
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Browsers:
|
|
122
|
+
|
|
123
|
+
```html
|
|
124
|
+
<!-- index.html -->
|
|
125
|
+
<script src="https://unpkg.com/essential-eth@0.5.10"></script>
|
|
111
126
|
```
|
|
112
127
|
|
|
113
128
|
<br/>
|
|
@@ -123,7 +138,7 @@ const { etherToWei } = require('essential-eth');
|
|
|
123
138
|
|
|
124
139
|
<!-- โ๏ธ AUTO-GENERATED-CONTENT:START (FUNCTIONS) -->
|
|
125
140
|
|
|
126
|
-
#### [`arrayify`](https://
|
|
141
|
+
#### [`arrayify`](https://eeth.dev/docs/api/modules#arrayify)
|
|
127
142
|
|
|
128
143
|
```typescript
|
|
129
144
|
arrayify(value: number | BytesLike | Hexable, options: DataOptions): Uint8Array
|
|
@@ -155,7 +170,7 @@ arrayify('0x1', { hexPad: 'right' });
|
|
|
155
170
|
|
|
156
171
|
<br/>
|
|
157
172
|
|
|
158
|
-
#### [`computeAddress`](https://
|
|
173
|
+
#### [`computeAddress`](https://eeth.dev/docs/api/modules#computeaddress)
|
|
159
174
|
|
|
160
175
|
```typescript
|
|
161
176
|
computeAddress(key: string): string
|
|
@@ -186,7 +201,7 @@ computeAddress(
|
|
|
186
201
|
|
|
187
202
|
<br/>
|
|
188
203
|
|
|
189
|
-
#### [`computePublicKey`](https://
|
|
204
|
+
#### [`computePublicKey`](https://eeth.dev/docs/api/modules#computepublickey)
|
|
190
205
|
|
|
191
206
|
```typescript
|
|
192
207
|
computePublicKey(privKey: BytesLike): string
|
|
@@ -218,7 +233,7 @@ computePublicKey([
|
|
|
218
233
|
|
|
219
234
|
<br/>
|
|
220
235
|
|
|
221
|
-
#### [`concat`](https://
|
|
236
|
+
#### [`concat`](https://eeth.dev/docs/api/modules#concat)
|
|
222
237
|
|
|
223
238
|
```typescript
|
|
224
239
|
concat(arrayOfBytesLike: Array<BytesLikeWithNumber>): Uint8Array
|
|
@@ -240,7 +255,7 @@ concat([0, 1]);
|
|
|
240
255
|
|
|
241
256
|
<br/>
|
|
242
257
|
|
|
243
|
-
#### [`etherToGwei`](https://
|
|
258
|
+
#### [`etherToGwei`](https://eeth.dev/docs/api/modules#ethertogwei)
|
|
244
259
|
|
|
245
260
|
```typescript
|
|
246
261
|
etherToGwei(etherQuantity: string | number | TinyBig | Big): TinyBig
|
|
@@ -271,7 +286,7 @@ etherToGwei(1000).toNumber();
|
|
|
271
286
|
|
|
272
287
|
<br/>
|
|
273
288
|
|
|
274
|
-
#### [`etherToWei`](https://
|
|
289
|
+
#### [`etherToWei`](https://eeth.dev/docs/api/modules#ethertowei)
|
|
275
290
|
|
|
276
291
|
```typescript
|
|
277
292
|
etherToWei(etherQuantity: string | number | TinyBig | Big): TinyBig
|
|
@@ -302,7 +317,7 @@ etherToWei(1000).toNumber();
|
|
|
302
317
|
|
|
303
318
|
<br/>
|
|
304
319
|
|
|
305
|
-
#### [`gweiToEther`](https://
|
|
320
|
+
#### [`gweiToEther`](https://eeth.dev/docs/api/modules#gweitoether)
|
|
306
321
|
|
|
307
322
|
```typescript
|
|
308
323
|
gweiToEther(gweiQuantity: string | number | TinyBig | Big): TinyBig
|
|
@@ -333,7 +348,7 @@ gweiToEther(1000000000000).toNumber();
|
|
|
333
348
|
|
|
334
349
|
<br/>
|
|
335
350
|
|
|
336
|
-
#### [`hashMessage`](https://
|
|
351
|
+
#### [`hashMessage`](https://eeth.dev/docs/api/modules#hashmessage)
|
|
337
352
|
|
|
338
353
|
```typescript
|
|
339
354
|
hashMessage(message: string | Bytes): string
|
|
@@ -355,7 +370,7 @@ hashMessage('Hello World');
|
|
|
355
370
|
|
|
356
371
|
<br/>
|
|
357
372
|
|
|
358
|
-
#### [`hexConcat`](https://
|
|
373
|
+
#### [`hexConcat`](https://eeth.dev/docs/api/modules#hexconcat)
|
|
359
374
|
|
|
360
375
|
```typescript
|
|
361
376
|
hexConcat(items: Array<BytesLike>): string
|
|
@@ -377,7 +392,7 @@ hexConcat([[2, 4, 0, 1], 9, '0x2934', '0x3947']);
|
|
|
377
392
|
|
|
378
393
|
<br/>
|
|
379
394
|
|
|
380
|
-
#### [`hexDataLength`](https://
|
|
395
|
+
#### [`hexDataLength`](https://eeth.dev/docs/api/modules#hexdatalength)
|
|
381
396
|
|
|
382
397
|
```typescript
|
|
383
398
|
hexDataLength(data: BytesLike): undefined
|
|
@@ -404,7 +419,7 @@ hexDataLength('0x3925');
|
|
|
404
419
|
|
|
405
420
|
<br/>
|
|
406
421
|
|
|
407
|
-
#### [`hexDataSlice`](https://
|
|
422
|
+
#### [`hexDataSlice`](https://eeth.dev/docs/api/modules#hexdataslice)
|
|
408
423
|
|
|
409
424
|
```typescript
|
|
410
425
|
hexDataSlice(data: BytesLikeWithNumber, offset: number, endOffset: number): string
|
|
@@ -426,7 +441,7 @@ hexDataSlice([20, 6, 48], 0, 2);
|
|
|
426
441
|
|
|
427
442
|
<br/>
|
|
428
443
|
|
|
429
|
-
#### [`hexStripZeros`](https://
|
|
444
|
+
#### [`hexStripZeros`](https://eeth.dev/docs/api/modules#hexstripzeros)
|
|
430
445
|
|
|
431
446
|
```typescript
|
|
432
447
|
hexStripZeros(value: BytesLike): string
|
|
@@ -448,7 +463,7 @@ hexStripZeros([0, 0, 0, 48]);
|
|
|
448
463
|
|
|
449
464
|
<br/>
|
|
450
465
|
|
|
451
|
-
#### [`hexValue`](https://
|
|
466
|
+
#### [`hexValue`](https://eeth.dev/docs/api/modules#hexvalue)
|
|
452
467
|
|
|
453
468
|
```typescript
|
|
454
469
|
hexValue(value: number | bigint | BytesLike | Hexable): string
|
|
@@ -475,7 +490,7 @@ hexValue([9, 4, 19, 4]);
|
|
|
475
490
|
|
|
476
491
|
<br/>
|
|
477
492
|
|
|
478
|
-
#### [`hexZeroPad`](https://
|
|
493
|
+
#### [`hexZeroPad`](https://eeth.dev/docs/api/modules#hexzeropad)
|
|
479
494
|
|
|
480
495
|
```typescript
|
|
481
496
|
hexZeroPad(value: BytesLikeWithNumber, length: number): string
|
|
@@ -507,7 +522,7 @@ hexZeroPad('12345', 1);
|
|
|
507
522
|
|
|
508
523
|
<br/>
|
|
509
524
|
|
|
510
|
-
#### [`hexlify`](https://
|
|
525
|
+
#### [`hexlify`](https://eeth.dev/docs/api/modules#hexlify)
|
|
511
526
|
|
|
512
527
|
```typescript
|
|
513
528
|
hexlify(value: number | bigint | BytesLike | Hexable, options: DataOptions): string
|
|
@@ -534,7 +549,7 @@ hexlify(14);
|
|
|
534
549
|
|
|
535
550
|
<br/>
|
|
536
551
|
|
|
537
|
-
#### [`isAddress`](https://
|
|
552
|
+
#### [`isAddress`](https://eeth.dev/docs/api/modules#isaddress)
|
|
538
553
|
|
|
539
554
|
```typescript
|
|
540
555
|
isAddress(address: string): boolean
|
|
@@ -567,7 +582,7 @@ isAddress('vitalik.eth');
|
|
|
567
582
|
|
|
568
583
|
<br/>
|
|
569
584
|
|
|
570
|
-
#### [`isBytes`](https://
|
|
585
|
+
#### [`isBytes`](https://eeth.dev/docs/api/modules#isbytes)
|
|
571
586
|
|
|
572
587
|
```typescript
|
|
573
588
|
isBytes(value: any): value
|
|
@@ -599,7 +614,7 @@ isBytes(new Uint8Array(1));
|
|
|
599
614
|
|
|
600
615
|
<br/>
|
|
601
616
|
|
|
602
|
-
#### [`isBytesLike`](https://
|
|
617
|
+
#### [`isBytesLike`](https://eeth.dev/docs/api/modules#isbyteslike)
|
|
603
618
|
|
|
604
619
|
```typescript
|
|
605
620
|
isBytesLike(value: any): value
|
|
@@ -631,7 +646,7 @@ isBytesLike(new Uint8Array(1));
|
|
|
631
646
|
|
|
632
647
|
<br/>
|
|
633
648
|
|
|
634
|
-
#### [`isHexString`](https://
|
|
649
|
+
#### [`isHexString`](https://eeth.dev/docs/api/modules#ishexstring)
|
|
635
650
|
|
|
636
651
|
```typescript
|
|
637
652
|
isHexString(value: any, length: number): boolean
|
|
@@ -659,7 +674,7 @@ isHexString('0x4924', 4);
|
|
|
659
674
|
|
|
660
675
|
<br/>
|
|
661
676
|
|
|
662
|
-
#### [`jsonRpcProvider`](https://
|
|
677
|
+
#### [`jsonRpcProvider`](https://eeth.dev/docs/api/modules#jsonrpcprovider)
|
|
663
678
|
|
|
664
679
|
```typescript
|
|
665
680
|
jsonRpcProvider(rpcUrl: string): JsonRpcProvider
|
|
@@ -685,7 +700,7 @@ jsonRpcProvider()
|
|
|
685
700
|
|
|
686
701
|
<br/>
|
|
687
702
|
|
|
688
|
-
#### [`keccak256`](https://
|
|
703
|
+
#### [`keccak256`](https://eeth.dev/docs/api/modules#keccak256)
|
|
689
704
|
|
|
690
705
|
```typescript
|
|
691
706
|
keccak256(data: BytesLike): string
|
|
@@ -710,7 +725,7 @@ keccak256('0x123');
|
|
|
710
725
|
|
|
711
726
|
<br/>
|
|
712
727
|
|
|
713
|
-
#### [`pack`](https://
|
|
728
|
+
#### [`pack`](https://eeth.dev/docs/api/modules#pack)
|
|
714
729
|
|
|
715
730
|
```typescript
|
|
716
731
|
pack(types: Array<string>, values: Array<any>): string
|
|
@@ -734,7 +749,7 @@ pack(types, values);
|
|
|
734
749
|
|
|
735
750
|
<br/>
|
|
736
751
|
|
|
737
|
-
#### [`solidityKeccak256`](https://
|
|
752
|
+
#### [`solidityKeccak256`](https://eeth.dev/docs/api/modules#soliditykeccak256)
|
|
738
753
|
|
|
739
754
|
```typescript
|
|
740
755
|
solidityKeccak256(types: Array<string>, values: Array<any>): string
|
|
@@ -768,7 +783,7 @@ solidityKeccak256(types, values);
|
|
|
768
783
|
|
|
769
784
|
<br/>
|
|
770
785
|
|
|
771
|
-
#### [`splitSignature`](https://
|
|
786
|
+
#### [`splitSignature`](https://eeth.dev/docs/api/modules#splitsignature)
|
|
772
787
|
|
|
773
788
|
```typescript
|
|
774
789
|
splitSignature(signature: SignatureLike): Signature
|
|
@@ -799,7 +814,7 @@ splitSignature(signature);
|
|
|
799
814
|
|
|
800
815
|
<br/>
|
|
801
816
|
|
|
802
|
-
#### [`stripZeros`](https://
|
|
817
|
+
#### [`stripZeros`](https://eeth.dev/docs/api/modules#stripzeros)
|
|
803
818
|
|
|
804
819
|
```typescript
|
|
805
820
|
stripZeros(value: BytesLike): Uint8Array
|
|
@@ -822,7 +837,7 @@ stripZeros('0x00002834');
|
|
|
822
837
|
|
|
823
838
|
<br/>
|
|
824
839
|
|
|
825
|
-
#### [`tinyBig`](https://
|
|
840
|
+
#### [`tinyBig`](https://eeth.dev/docs/api/modules#tinybig)
|
|
826
841
|
|
|
827
842
|
```typescript
|
|
828
843
|
tinyBig(value: string | number | TinyBig | Big): TinyBig
|
|
@@ -844,7 +859,7 @@ tinyBig(10).times(3).toNumber();
|
|
|
844
859
|
|
|
845
860
|
<br/>
|
|
846
861
|
|
|
847
|
-
#### [`toChecksumAddress`](https://
|
|
862
|
+
#### [`toChecksumAddress`](https://eeth.dev/docs/api/modules#tochecksumaddress)
|
|
848
863
|
|
|
849
864
|
```typescript
|
|
850
865
|
toChecksumAddress(address: string): string
|
|
@@ -870,7 +885,7 @@ Similar to ["toChecksumAddress" in web3.js](https://web3js.readthedocs.io/en/v1.
|
|
|
870
885
|
|
|
871
886
|
<br/>
|
|
872
887
|
|
|
873
|
-
#### [`toUtf8Bytes`](https://
|
|
888
|
+
#### [`toUtf8Bytes`](https://eeth.dev/docs/api/modules#toutf8bytes)
|
|
874
889
|
|
|
875
890
|
```typescript
|
|
876
891
|
toUtf8Bytes(data: string): Uint8Array
|
|
@@ -895,7 +910,7 @@ toUtf8Bytes('ethereum');
|
|
|
895
910
|
|
|
896
911
|
<br/>
|
|
897
912
|
|
|
898
|
-
#### [`weiToEther`](https://
|
|
913
|
+
#### [`weiToEther`](https://eeth.dev/docs/api/modules#weitoether)
|
|
899
914
|
|
|
900
915
|
```typescript
|
|
901
916
|
weiToEther(weiQuantity: string | number | TinyBig | Big): TinyBig
|
|
@@ -926,7 +941,7 @@ weiToEther(1000000000000000000000).toNumber();
|
|
|
926
941
|
|
|
927
942
|
<br/>
|
|
928
943
|
|
|
929
|
-
#### [`zeroPad`](https://
|
|
944
|
+
#### [`zeroPad`](https://eeth.dev/docs/api/modules#zeropad)
|
|
930
945
|
|
|
931
946
|
```typescript
|
|
932
947
|
zeroPad(value: BytesLike, length: number): Uint8Array
|
|
@@ -995,7 +1010,7 @@ provider.getGasPrice().toNumber();
|
|
|
995
1010
|
|
|
996
1011
|
<!-- โ๏ธ AUTO-GENERATED-CONTENT:START (PROVIDER) -->
|
|
997
1012
|
|
|
998
|
-
#### [`call`](https://
|
|
1013
|
+
#### [`call`](https://eeth.dev/docs/api/classes/JsonRpcProvider#call)
|
|
999
1014
|
|
|
1000
1015
|
```typescript
|
|
1001
1016
|
provider.call(transaction: TransactionRequest, blockTag?: BlockTag): Promise<string>
|
|
@@ -1021,7 +1036,7 @@ await provider.call({
|
|
|
1021
1036
|
|
|
1022
1037
|
<br/>
|
|
1023
1038
|
|
|
1024
|
-
#### [`estimateGas`](https://
|
|
1039
|
+
#### [`estimateGas`](https://eeth.dev/docs/api/classes/JsonRpcProvider#estimategas)
|
|
1025
1040
|
|
|
1026
1041
|
```typescript
|
|
1027
1042
|
provider.estimateGas(transaction: TransactionRequest): Promise<TinyBig>
|
|
@@ -1049,7 +1064,7 @@ await provider.estimateGas({
|
|
|
1049
1064
|
|
|
1050
1065
|
<br/>
|
|
1051
1066
|
|
|
1052
|
-
#### [`getBalance`](https://
|
|
1067
|
+
#### [`getBalance`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getbalance)
|
|
1053
1068
|
|
|
1054
1069
|
```typescript
|
|
1055
1070
|
provider.getBalance(address: string, blockTag?: BlockTag): Promise<TinyBig>
|
|
@@ -1072,7 +1087,7 @@ await provider.getBalance('0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8');
|
|
|
1072
1087
|
|
|
1073
1088
|
<br/>
|
|
1074
1089
|
|
|
1075
|
-
#### [`getBlock`](https://
|
|
1090
|
+
#### [`getBlock`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getblock)
|
|
1076
1091
|
|
|
1077
1092
|
```typescript
|
|
1078
1093
|
provider.getBlock(timeFrame?: BlockTag, returnTransactionObjects?: boolean): Promise<BlockResponse>
|
|
@@ -1123,7 +1138,7 @@ await provider.getBlock(14879862);
|
|
|
1123
1138
|
|
|
1124
1139
|
<br/>
|
|
1125
1140
|
|
|
1126
|
-
#### [`getBlockNumber`](https://
|
|
1141
|
+
#### [`getBlockNumber`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getblocknumber)
|
|
1127
1142
|
|
|
1128
1143
|
```typescript
|
|
1129
1144
|
provider.getBlockNumber(): Promise<number>
|
|
@@ -1146,7 +1161,7 @@ await provider.getBlockNumber();
|
|
|
1146
1161
|
|
|
1147
1162
|
<br/>
|
|
1148
1163
|
|
|
1149
|
-
#### [`getCode`](https://
|
|
1164
|
+
#### [`getCode`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getcode)
|
|
1150
1165
|
|
|
1151
1166
|
```typescript
|
|
1152
1167
|
provider.getCode(address: string, blockTag?: BlockTag): Promise<string>
|
|
@@ -1172,7 +1187,7 @@ await jsonRpcProvider().getCode(
|
|
|
1172
1187
|
|
|
1173
1188
|
<br/>
|
|
1174
1189
|
|
|
1175
|
-
#### [`getGasPrice`](https://
|
|
1190
|
+
#### [`getGasPrice`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getgasprice)
|
|
1176
1191
|
|
|
1177
1192
|
```typescript
|
|
1178
1193
|
provider.getGasPrice(): Promise<TinyBig>
|
|
@@ -1195,7 +1210,7 @@ await provider.getGasPrice();
|
|
|
1195
1210
|
|
|
1196
1211
|
<br/>
|
|
1197
1212
|
|
|
1198
|
-
#### [`getLogs`](https://
|
|
1213
|
+
#### [`getLogs`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getlogs)
|
|
1199
1214
|
|
|
1200
1215
|
```typescript
|
|
1201
1216
|
provider.getLogs(filter: Filter | FilterByBlockHash): Promise<Array<Log>>
|
|
@@ -1245,7 +1260,7 @@ provider.getLogs({
|
|
|
1245
1260
|
|
|
1246
1261
|
<br/>
|
|
1247
1262
|
|
|
1248
|
-
#### [`getNetwork`](https://
|
|
1263
|
+
#### [`getNetwork`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getnetwork)
|
|
1249
1264
|
|
|
1250
1265
|
```typescript
|
|
1251
1266
|
provider.getNetwork(): Promise<Network>
|
|
@@ -1273,7 +1288,7 @@ jsonRpcProvider('https://free-eth-node.com/api/MATIC').getNetwork();
|
|
|
1273
1288
|
|
|
1274
1289
|
<br/>
|
|
1275
1290
|
|
|
1276
|
-
#### [`getTransaction`](https://
|
|
1291
|
+
#### [`getTransaction`](https://eeth.dev/docs/api/classes/JsonRpcProvider#gettransaction)
|
|
1277
1292
|
|
|
1278
1293
|
```typescript
|
|
1279
1294
|
provider.getTransaction(transactionHash: string): Promise<TransactionResponse>
|
|
@@ -1319,7 +1334,7 @@ await provider.getTransaction(
|
|
|
1319
1334
|
|
|
1320
1335
|
<br/>
|
|
1321
1336
|
|
|
1322
|
-
#### [`getTransactionCount`](https://
|
|
1337
|
+
#### [`getTransactionCount`](https://eeth.dev/docs/api/classes/JsonRpcProvider#gettransactioncount)
|
|
1323
1338
|
|
|
1324
1339
|
```typescript
|
|
1325
1340
|
provider.getTransactionCount(address: string, blockTag?: BlockTag): Promise<number>
|
|
@@ -1360,7 +1375,7 @@ await provider.getTransactionCount(
|
|
|
1360
1375
|
|
|
1361
1376
|
<br/>
|
|
1362
1377
|
|
|
1363
|
-
#### [`getTransactionReceipt`](https://
|
|
1378
|
+
#### [`getTransactionReceipt`](https://eeth.dev/docs/api/classes/JsonRpcProvider#gettransactionreceipt)
|
|
1364
1379
|
|
|
1365
1380
|
```typescript
|
|
1366
1381
|
provider.getTransactionReceipt(transactionHash: string): Promise<TransactionReceipt>
|
|
@@ -1495,7 +1510,7 @@ const contract = new Contract(contractAddress, abi, provider);
|
|
|
1495
1510
|
|
|
1496
1511
|
#### `contractFunctionName(args)`
|
|
1497
1512
|
|
|
1498
|
-
Any function on a contract. Returns are the same as `ethers.js`, except that instead of BigNumber, `essential-eth` always returns a [`TinyBig`](https://
|
|
1513
|
+
Any function on a contract. Returns are the same as `ethers.js`, except that instead of BigNumber, `essential-eth` always returns a [`TinyBig`](https://eeth.dev/classes/TinyBig.html)
|
|
1499
1514
|
|
|
1500
1515
|
<br/>
|
|
1501
1516
|
<br/>
|
|
@@ -1528,5 +1543,5 @@ Note: In `web3.js`, almost every method or function can be passed a callback. `e
|
|
|
1528
1543
|
|
|
1529
1544
|
### Miscellaneous
|
|
1530
1545
|
|
|
1531
|
-
- [๐ View full docs](https://
|
|
1546
|
+
- [๐ View full docs](https://eeth.dev)
|
|
1532
1547
|
- [๐ View changelog (by looking at releases diff)](https://github.com/dawsbot/essential-eth/releases)
|