useWeb3

This hook is your gateway to the Web3 world. Use it to obtain the ethereumProvider and begin interacting with the blockchain, such as signing transactions.

Ethereum Provider | EIP-1193

The Ethereum Provider acts as a bridge for Web3 libraries designed for EVM chains, such as EthersJS and Web3JS. 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.

getEthereumProvider()
import { useWeb3 } from "@paytweed/core-react";

const { getEthereumProvider } = useWeb3();

const provider = getEthereumProvider(Network.ETHEREUM_SEPOLIA)

Method parameters

REQUIRED string

Last updated