Prerequisites
Before setting up Web3 libraries, you need an authenticated Para session.Setup Para Instance
Sepolia examples need testnet ETH before sending transactions or writing contracts. Get
requestFaucetAsync from useRequestFaucet() and call requestFaucetAsync({ chain: "ETHEREUM_SEPOLIA" }) after the user has an EVM wallet. If chain is omitted, the faucet defaults to ETHEREUM_SEPOLIA. See Fund Testnet Wallet for the full example.- Ethers.js
- Viem
Install
@getpara/ethers-v6-integration is a separate package — install it alongside @getpara/react-native-wallet.Usage
- Hook (React)
- Direct (Non-React)
Use the hook to create an ethers signer for your user’s Para embedded wallet or external wallet. For convenience, the and hooks wrap common signer methods in a React Query mutation.
Wallet Resolution
When noaddress or walletId is passed, the hook resolves the wallet in this order:- Selected wallet — if the user selected an EVM wallet in the UI. If there is only one EVM wallet in the session, it is already selected by default
- First EVM wallet — the first available EVM wallet on the account
address or walletId: