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
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2702,3 +2702,24 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2702
2702
- The callback function provided to the static `Web3.onNewProviderDiscovered` function expects a parameter of type `EIP6963ProvidersMapUpdateEvent` as opposed to `EIP6963AnnounceProviderEvent`. (#7242)
2703
2703
2704
2704
## [Unreleased]
2705
+
2706
+
### Added
2707
+
2708
+
#### web3-core
2709
+
2710
+
- Adds a new property (`customTransactionSchema`) to `Web3ConfigOptions`
2711
+
- Adds a new property (`config`) to `Web3RequestManager`
2712
+
2713
+
#### web3-eth
2714
+
2715
+
- Adds the same `{transactionSchema?: ValidationSchemaInput}` that exists in `formatTransaction` to `validateTransactionForSigning`
2716
+
2717
+
### Changed
2718
+
2719
+
#### web3-eth
2720
+
2721
+
- Forwards the new `web3Context.config.customTransactionSchema` to `formatTransaction`
2722
+
2723
+
#### web3-eth-personal
2724
+
2725
+
- Forwards the new `web3Context.config.customTransactionSchema` to `formatTransaction`
The `customTransactionSchema` option is used to allow [`formatTransaction`](/api/web3-eth/function/formatTransaction) to accept a custom schema to validate transactions. A use-case could be: your chain has an extra field in its transactions and you want to write a plugin that makes sending these transactions easier.
The `defaultReturnFormat` option allows users to specify the format in which certain types of data should be returned by default. It is a configuration parameter that can be set at the global level and affects how data is returned across the entire library.
0 commit comments