Configure custom RPC endpoints and chains for networks using Web3 libraries. This guide uses public testnet RPCs for demonstration and shows minimal setup with predefined and custom chains where applicable.

Prerequisites

You need to start with setting up your Web3 library clients with Para. This guide assumes you have already configured your Para instance and are ready to integrate with Ethers.js, Viem, or Wagmi.

Setup Web3 Libraries

Configure Custom RPC Endpoints

import { ethers } from "ethers";
import { ParaEthersSigner } from "@getpara/ethers-v6-integration";

// Example with predefined chain (Sepolia)
const chainId = 11155111;
const rpcUrl = "https://ethereum-sepolia-rpc.publicnode.com";

// Public RPC provider
const provider = new ethers.JsonRpcProvider(rpcUrl, chainId, {
  staticNetwork: true
});

// Integrate with Para
const signer = new ParaEthersSigner(para, provider); // Assuming 'para' is your configured Para instance

// For other chains (predefined or custom), use the corresponding chainId and RPC URL

Next Steps