Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.getpara.com/llms.txt

Use this file to discover all available pages before exploring further.

The useParaEthersSigner hook returns an ethers.js AbstractSigner for the user’s EVM wallet. It supports both embedded Para wallets and external wallets. If the user has multiple EVM wallets, pass address or walletId to select one. When omitted, the active wallet is used automatically.
Requires @getpara/ethers-v6-integration as a peer dependency.
Use the companion mutation hooks for common operations: useParaEthersSignMessage and useParaEthersSendTransaction.

Import

import { useParaEthersSigner } from "@getpara/react-sdk";

Usage

import { useParaEthersSigner } from "@getpara/react-sdk";
import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider("https://ethereum-sepolia-rpc.publicnode.com");

function SignMessage() {
  const { ethersSigner, isLoading } = useParaEthersSigner({ provider });

  const handleSign = async () => {
    if (!ethersSigner) return;
    const signature = await ethersSigner.signMessage("Hello");
    console.log("Signature:", signature);
  };

  if (isLoading) return <p>Loading...</p>;

  return (
    <div>
      <button onClick={handleSign}>Sign Message</button>
    </div>
  );
}