Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Expand web3config guide [docs] #6805

@SantiagoDevRel

Description

@SantiagoDevRel

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...

Metadata

Metadata

Assignees

Labels

4.x4.0 relatedDocumentationRelates to project wiki or documentationGood First IssueGreat to learn the internals of web3.js

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions