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.
I want to edit the "data" field in the transaction object when calling web3.eth.call, web3.eth.estimateGas and web3.eth.SendTransaction. I'm using the middleware to intercept the rpc request and edit that field.
Actual behavior
web3.eth.call and web3.eth.estimateGas works fine but web3.eth.SendTransaction fails because the transaction is signed before it's intercepted by the middleware. Under the hood web3.eth.SendTransaction calls web3.eth.call and web3.eth.estimateGas (among other calls) which edits the "data" field fine, but when signing the transaction, it signes the transaction without the edited field