Skip to main content
You are viewing docs for the previous version of the Wallets SDK. We recommend upgrading to V1. See the updated version of this page or the V1 migration guide.
Use an SMS OTP signer to let users authenticate via a one-time password delivered by SMS or optionally WhatsApp. Phone signers can be configured as a recovery signer (to regain wallet access on a new device) or as an operational signer (to authorize day-to-day transactions). A wallet can have multiple phone signers. For a conceptual overview, see SMS OTP in the Wallet Signers guide. To learn how to register operational signers on a wallet, see Registering a signer.

Configuration

import { useWallet } from '@crossmint/client-sdk-react-ui';

const { getOrCreateWallet } = useWallet();

const wallet = await getOrCreateWallet({
    chain: "base",
    signer: {
        type: "phone",
        phone: "+1234567890"
    },
});