web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Expand web3config guide [docs]

Open SantiagoDevRel opened this issue 1 year ago • 3 comments

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 defaultAccount at global level
  • Code sample to set defaultAccount at package level...

SantiagoDevRel avatar Feb 09 '24 14:02 SantiagoDevRel

Hello @SantiagoDevRel I would like to work on this issue can you please assign it to me

MeenuyD avatar Feb 27 '24 17:02 MeenuyD

@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?

mmyyrroonn avatar Jun 24 '24 07:06 mmyyrroonn

Hey @mmyyrroonn , feel free to take it over, thanks 💪!

SantiagoDevRel avatar Jun 24 '24 07:06 SantiagoDevRel

@SantiagoDevRel Hi, I opened a PR to fix this issue, could you help review it?

mmyyrroonn avatar Jul 05 '24 01:07 mmyyrroonn