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 useWaitForWalletCreation hook polls until wallet creation completes. Use it as part of a custom auth flow after useWaitForSignup resolves.
Import
import { useWaitForWalletCreation } from "@getpara/react-native-wallet";
Usage
import { useWaitForWalletCreation } from "@getpara/react-native-wallet";
function WaitingForWallet() {
const { waitForWalletCreationAsync, isPending } = useWaitForWalletCreation();
const handleWait = async () => {
try {
const result = await waitForWalletCreationAsync({});
console.log("Wallet IDs:", result.walletIds);
} catch (err) {
console.error(err);
}
};
return <Button title={isPending ? "Creating wallets..." : "Check Wallet Status"} onPress={handleWait} disabled={isPending} />;
}