Skip to main content
Learn how to set up popular Web3 libraries with Para on React Native. Choose from or to build your EVM application.
Wagmi is not available on React Native. Use Ethers.js or Viem for EVM operations.

Prerequisites

Before setting up Web3 libraries, you need an authenticated Para session.

Installation

npm install @getpara/ethers-v6-integration ethers@^6 --save-exact

Library Setup and Configuration

Configure your chosen Web3 library. You can use either a hook-based approach for React Native applications or a direct client setup if you want to access the client outside of the ParaProvider context.
useEthers.ts
import { useClient, useAccount } from "@getpara/react-native-wallet";
import { ParaEthersSigner } from "@getpara/ethers-v6-integration";
import { ethers } from "ethers";
import { useMemo } from "react";

export function useEthers(rpcUrl: string = "https://ethereum-sepolia-rpc.publicnode.com") {
  const para = useClient();
  const { isConnected } = useAccount();

  return useMemo(() => {
    const provider = new ethers.JsonRpcProvider(rpcUrl);

    if (!para || !isConnected) {
      return { provider, signer: null };
    }

    const signer = new ParaEthersSigner(para, provider);
    return { provider, signer };
  }, [para, isConnected, rpcUrl]);
}

Next Steps

Now that you have Web3 libraries configured with Para, explore common operations.