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 useClaimPregenWallets hook transfers pregenerated wallets to the newly authenticated user. Call it after signup completes for users who had wallets pre-created for them.

Import

import { useClaimPregenWallets } from "@getpara/react-native-wallet";

Usage

import { useClaimPregenWallets } from "@getpara/react-native-wallet";

function ClaimWalletsStep({ userEmail }: { userEmail: string }) {
  const { claimPregenWalletsAsync, isPending } = useClaimPregenWallets();

  const handleClaim = async () => {
    try {
      await claimPregenWalletsAsync({ pregenId: { email: userEmail } });
    } catch (err) {
      console.error(err);
    }
  };

  return <Button title={isPending ? "Claiming..." : "Claim Wallets"} onPress={handleClaim} disabled={isPending} />;
}