You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2458,7 +2458,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2458
2458
2459
2459
#### web3-errors
2460
2460
2461
-
- Added `InvalidIntegerError` error for fromWei and toWei (#7052)
2461
+
-Added `InvalidIntegerError` error for fromWei and toWei (#7052)
2462
2462
2463
2463
#### web3-eth
2464
2464
@@ -2484,8 +2484,8 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2484
2484
2485
2485
#### web3-utils
2486
2486
2487
-
-`toWei` add warning when using large numbers or large decimals that may cause precision loss (#6908)
2488
-
-`toWei` and `fromWei` now supports integers as a unit. (#7053)
2487
+
-`toWei` add warning when using large numbers or large decimals that may cause precision loss (#6908)
2488
+
-`toWei` and `fromWei` now supports integers as a unit. (#7053)
2489
2489
2490
2490
### Fixed
2491
2491
@@ -2495,13 +2495,13 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2495
2495
2496
2496
#### web3-utils
2497
2497
2498
-
-`toWei` support numbers in scientific notation (#6908)
2499
-
-`toWei` and `fromWei` trims according to ether unit successfuly (#7044)
2498
+
-`toWei` support numbers in scientific notation (#6908)
2499
+
-`toWei` and `fromWei` trims according to ether unit successfuly (#7044)
2500
2500
2501
2501
#### web3-validator
2502
2502
2503
-
- The JSON schema conversion process now correctly assigns an id when the `abi.name` is not available, for example, in the case of public mappings. (#6981)
2504
-
-`browser` entry point that was pointing to an non-existing bundle file was removed from `package.json` (#7015)
2503
+
-The JSON schema conversion process now correctly assigns an id when the `abi.name` is not available, for example, in the case of public mappings. (#6981)
2504
+
-`browser` entry point that was pointing to an non-existing bundle file was removed from `package.json` (#7015)
2505
2505
2506
2506
#### web3-core
2507
2507
@@ -2600,7 +2600,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2600
2600
2601
2601
#### web3-eth-accounts
2602
2602
2603
-
- baseTransaction method updated (#7095)
2603
+
-baseTransaction method updated (#7095)
2604
2604
2605
2605
#### web3-providers-ws
2606
2606
@@ -2612,7 +2612,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2612
2612
2613
2613
#### web3-rpc-providers
2614
2614
2615
-
- Change request return type `Promise<ResultType>` to `Promise<JsonRpcResponseWithResult<ResultType>>` (#7102)
2615
+
- Change request return type `Promise<ResultType>` to `Promise<JsonRpcResponseWithResult<ResultType>>` (#7102)
2616
2616
2617
2617
### Added
2618
2618
@@ -2623,7 +2623,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2623
2623
2624
2624
#### web3-rpc-providers
2625
2625
2626
-
- When error is returned with code 429, throw rate limit error (#7102)
2626
+
- When error is returned with code 429, throw rate limit error (#7102)
2627
2627
2628
2628
#### web3
2629
2629
@@ -2635,7 +2635,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2635
2635
2636
2636
#### web3-errors
2637
2637
2638
-
- Fixed the undefined data in `Eip838ExecutionError` constructor (#6905)
2638
+
-Fixed the undefined data in `Eip838ExecutionError` constructor (#6905)
2639
2639
2640
2640
#### web3-eth
2641
2641
@@ -2646,7 +2646,6 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2646
2646
2647
2647
- Remove redundant constructor of contractBuilder (#7150)
2648
2648
2649
-
2650
2649
## [4.12.0]
2651
2650
2652
2651
### Fixed
@@ -2657,7 +2656,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2657
2656
2658
2657
#### web3-eth-accounts
2659
2658
2660
-
- Fix `TransactionFactory.registerTransactionType` not working, if there is a version mistatch between `web3-eth` and `web3-eth-accounts` by saving `extraTxTypes` at `globals`. (#7197)
2659
+
- Fix `TransactionFactory.registerTransactionType` not working, if there is a version mistatch between `web3-eth` and `web3-eth-accounts` by saving `extraTxTypes` at `globals`. (#7197)
2661
2660
2662
2661
### Added
2663
2662
@@ -2667,11 +2666,11 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2667
2666
2668
2667
#### web3-eth-contract
2669
2668
2670
-
-Added `populateTransaction` to the `contract.deploy(...)` properties. (#7197)
2669
+
-Added `populateTransaction` to the `contract.deploy(...)` properties. (#7197)
2671
2670
2672
2671
#### web3-providers-http
2673
2672
2674
-
- Added `statusCode` of response in ResponseError, `statusCode` is optional property in ResponseError.
2673
+
-Added `statusCode` of response in ResponseError, `statusCode` is optional property in ResponseError.
2675
2674
2676
2675
#### web3-rpc-providers
2677
2676
@@ -2680,21 +2679,26 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2680
2679
2681
2680
#### web3-errors
2682
2681
2683
-
- Added optional `statusCode` property of response in ResponseError.
2682
+
-Added optional `statusCode` property of response in ResponseError.
2684
2683
2685
2684
### Changed
2686
2685
2687
2686
#### web3-eth-contract
2688
2687
2689
2688
- The returnred properties of `contract.deploy(...)` are structured with a newly created class named `DeployerMethodClass`. (#7197)
2690
-
-Add a missed accepted type for the `abi` parameter, at `dataInputEncodeMethodHelper` and `getSendTxParams`. (#7197)
2689
+
-Add a missed accepted type for the `abi` parameter, at `dataInputEncodeMethodHelper` and `getSendTxParams`. (#7197)
2691
2690
2692
2691
## [4.12.1]
2693
2692
2694
2693
### Fixed
2695
2694
2696
2695
#### web3-eth-accounts
2697
2696
2698
-
- Revert `TransactionFactory.registerTransactionType` if there is a version mistatch between `web3-eth` and `web3-eth-accounts` and fix nextjs problem. (#7216)
2697
+
- Revert `TransactionFactory.registerTransactionType` if there is a version mistatch between `web3-eth` and `web3-eth-accounts` and fix nextjs problem. (#7216)
2698
+
2699
+
#### web3
2700
+
2701
+
-`Web3.providers` namespace exports `type EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>`. Return type for the static `Web3.requestEIP6963Providers` is now `Promise<EIP6963ProviderResponse>`. (#7239)
2702
+
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)
Copy file name to clipboardExpand all lines: docs/docs/guides/advanced/custom_RPC.md
+64-66Lines changed: 64 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ import TabItem from '@theme/TabItem';
13
13
Web3.js is a popular library for interacting with the Ethereum blockchain. It provides a set of APIs to interact with Ethereum nodes via JSON-RPC calls. For adding new JSON-RPC function calls to the library, you can do so using the plugin feature in web3.js 4.x. This allows you to extend the functionality of Web3.js and add support for new JSON-RPC methods.
14
14
15
15
:::caution
16
-
In Web3.js 1.x, `web3.extend()` function could be used to add new JSON-RPC methods. `web3.extend()` is also available in Web3 v4.0.4+ with some breaking changes. However it is recommended to use Web3 Plugin feature for extending web3 functionality if you are developing new feature.
16
+
In Web3.js 1.x, `web3.extend()` function could be used to add new JSON-RPC methods. `web3.extend()` is also available in Web3 v4.0.4+ with some breaking changes. However it is recommended to use Web3 Plugin feature for extending web3 functionality if you are developing new feature. Read the ["Extending Web3.js"](/guides/advanced/extend) guide to learn more about the legacy `web3.extend()` method.
17
17
:::
18
18
19
19
Following tutorial will guide you through the process of creating a custom plugin to extend the functionality of web3.js 4.x and add support for new RPC methods.
@@ -30,16 +30,16 @@ This will give your plugin access to [requestManager](/api/web3-core/class/Web3C
0 commit comments