Web3 API

class web3.Web3(provider)

Each web3 instance exposes the following APIs.

Providers

Web3.HTTPProvider

Convenience API to access web3.providers.rpc.HTTPProvider

Web3.IPCProvider

Convenience API to access web3.providers.ipc.IPCProvider

Web3.setProviders(provider)

Updates the current web3 instance with the new list of providers. It also accepts a single provider.

Addresses

See Addresses

RPC APIS

Each web3 instance also exposes these namespaced APIs.

Web3.eth

See web3.eth API

Web3.shh

See SHH API

Web3.personal

See Personal API

Web3.version

See Version API

Web3.txpool

See TX Pool API

Web3.miner

See Miner API

Web3.admin

See Admin API