EthersProvider
Provider adapter that wraps an ethers Provider or EIP-1193 source for read-only chain access.
Import
import { EthersProvider } from "@zama-fhe/sdk/ethers";Usage
import { JsonRpcProvider } from "ethers";
import { EthersProvider } from "@zama-fhe/sdk/ethers";
const ethersProvider = new JsonRpcProvider("https://sepolia.infura.io/v3/YOUR_KEY");
const provider = new EthersProvider({ provider: ethersProvider });import { EthersProvider } from "@zama-fhe/sdk/ethers";
const provider = new EthersProvider({ ethereum: window.ethereum! });Constructor
provider
ethereum
Methods
Related
Last updated