Method Signature
align.wallets.verifyOwnership(
customerId: string,
walletAddress: string
): Promise<WalletVerification>
Parameters
Blockchain wallet address to verify
Returns
URL where the user can sign a message to prove ownership
Example
import Align from "@tolbel/align";
const align = new Align({
apiKey: process.env.ALIGN_API_KEY!,
environment: "sandbox",
});
const verification = await align.wallets.verifyOwnership(
"customerId_123",
"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
);
console.log(`Verification Link: ${verification.verification_flow_link}`);
// Redirect user to this link
const verification = await align.wallets.verifyOwnership(
"customerId_123",
"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
);
console.log("Verification Link:", verification.verification_flow_link);
Wallet verification is typically a one-time process per wallet address. Once
verified, the wallet can be used for transfers.