web3.js
web3.js copied to clipboard
Expand web3config guide [docs]
We should expand this page of the docs web3config
- add code samples and explanation of each parameter that can be changed.
- parameter are listed here Example:
handleRevert
- Explain what handleRevert is, how it works, why is useful
- Code sample to set handleRevert at global leve
new Web3({
provider: 'https://mainnet.infura.io/v3/YOURID',
config: {
handleRevert: true,
},
});
- Code sample to set handleRevert at package level
const context = new Web3Context('http://127.0.0.1:7545');
context.setConfig({ handleRevert: true });
defaultAccount
- Explain what defaultAccount is, how it works, why is useful
- Code sample to set
defaultAccountat global level - Code sample to set
defaultAccountat package level...
Hello @SantiagoDevRel I would like to work on this issue can you please assign it to me
@SantiagoDevRel @jdevcs Hello, I noticed the previous pull request hasn't been updated for a while and is about to be closed. May I take over this issue?
Hey @mmyyrroonn , feel free to take it over, thanks 💪!
@SantiagoDevRel Hi, I opened a PR to fix this issue, could you help review it?