# useWeb3

### Ethereum Provider | [**EIP-1193**](https://eips.ethereum.org/EIPS/eip-1193)

The Ethereum Provider acts as a bridge for Web3 libraries designed for EVM chains, such as [EthersJS](https://eips.ethereum.org/EIPS/eip-1193) and [Web3JS](https://docs.web3js.org/guides/web3_providers_guide/#injected-provider). For example, integrating Tweed with a dApp built using EthersJS is straightforward and requires only three lines of code.\
implements the `chainChanged` functionality to support the EVMs that are supported by the tweed infrastructure.

<details>

<summary>getEthereumProvider()</summary>

```tsx
import { useWeb3 } from "@paytweed/core-react";

const { getEthereumProvider } = useWeb3();

const provider = getEthereumProvider(Network.ETHEREUM_SEPOLIA)
```

**Method parameters**

[**chain**](#user-content-fn-1)[^1] <mark style="color:red;">REQUIRED</mark>  <mark style="color:blue;">string</mark>

</details>

[^1]: Use the `Network` enum to set the chain of the provider
