Verified seller wallets
Released funds cannot be recalled. Before a seller's first payout, ask them to prove the wallet is theirs by signing a message in it. It costs them no gas and gives nobody access to their funds, and it turns a typo or a swapped address into a refused request instead of a lost payment.
Why not just store the address? A raw sellerWallet is trusted exactly as given. Anyone who can change that value in your database — a bug, a compromised admin account, a phished seller — can redirect a payout. A sellerWalletId can only point at an address its owner signed for.
1. Request a verification link
From your server, with the escrows:write scope. sellerReference is your own id for the seller, 1–128 characters. returnUrl is optional: the page the seller comes back to, and the only origin the verification popup reports to.
curl -sS -X POST "$ESCROW_API_BASE/seller-wallet-verifications" \
-H "Authorization: Bearer $ESCROW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"sellerReference": "seller_812",
"returnUrl": "https://marketplace.example/settings/payouts"
}'{
"id": "swv_01K6Z3M8Q4R2T7V9W1X3Y5Z7A9",
"sellerReference": "seller_812",
"status": "PENDING",
"url": "https://<checkout host>/verify-wallet#token=…", // returned ONCE — send it now
"returnUrl": "https://marketplace.example/settings/payouts",
"expiresAt": "2026-10-05T12:00:00.000Z",
"createdAt": "2026-10-02T12:00:00.000Z",
"verifiedAt": null,
"sellerWallet": null
}urlis returned only once. We do not store the token in it. Send or store it now; if it is lost, request another.- The link stops working at
expiresAt(72 hours after it was created, by default). sellerReferenceis shown to the seller on the page, next to your organization's name. Use an opaque id, never an email address or a name.returnUrlfollows the rules of an escrow'ssuccessUrl: absolute, no username or password,httpsfor a live key (httpalso allowed for a test key). It is not part of the message the seller signs.
2. Let the seller sign without leaving your site
Put the link in a data-escrow-verify-wallet element on the seller's settings page, next to the same script as the pay button. The button opens our verification page in a popup over your page. The seller connects their wallet, reads a message naming your organization and their reference, signs it, and closes the window. Your page stays where it was.
<!-- The seller's own signed-in settings page. Never a public or cached page. -->
<script src="https://<checkout host>/embed/v1.js" async></script>
<div data-escrow-verify-wallet="https://<checkout host>/verify-wallet#token=…"
data-label="Verify payout wallet"></div>
<script>
document.addEventListener('escrowwalletverify', (event) => {
// outcome: 'opened' | 'redirected' | 'verified' | 'cancelled' | 'closed'
if (event.detail.outcome === 'verified') refreshPayoutSettings(); // a hint, not proof
});
</script>- Your page hears
verifiedonly if it is on the origin of the link'sreturnUrl, and only after we have checked the signature.cancelledmeans the seller closed the popup before signing.closedmeans it closed without either. - The event is a hint, not proof. It carries no wallet and no id. Record the wallet from the webhook in step 3.
- If the browser blocks the popup, your page goes to the link instead and the event is
redirected. After signing, the page offers a "Back to" link to yourreturnUrl. - Signing happens on our domain because the message names it, and the seller's wallet warns when a page asks to sign a message for a different site. That is what stops a look-alike page from collecting signatures.
Render the link only for that seller. The link in the button works for whoever loads the page until it is used or expires. Put it only in the signed-in seller's own page, never in a public or cached page, and keep it out of analytics. Do not send Cross-Origin-Opener-Policy: same-origin on that page, or the popup cannot report back (same-origin-allow-popups is fine).
You can also just email the link. The seller then signs on our page, which links back to your returnUrl when you gave one.
3. Record the wallet from the webhook
Subscribe an endpoint to seller_wallet.verified. It arrives once for each link that is signed, after we have checked the signature, and is signed and retried like every other webhook.
{
"id": "evt_01K…",
"type": "seller_wallet.verified",
"data": {
"verificationId": "swv_01K6Z3M8Q4R2T7V9W1X3Y5Z7A9",
"sellerWalletId": "swal_01K6Z3M8Q4R2T7V9W1X3Y5Z7A9", // store this against the seller
"sellerReference": "seller_812",
"address": "0x90F79bf6EB2c4f870365E785982E1f101E93b906",
"chainId": 84532,
"environment": "test",
"verifiedAt": "2026-10-02T12:04:11.000Z"
},
…
}No webhook endpoint? Read the verification with the escrows:read scope until status is VERIFIED (or EXPIRED), for example when the seller comes back to your page:
curl -sS "$ESCROW_API_BASE/seller-wallet-verifications/swv_01K6Z3M8Q4R2T7V9W1X3Y5Z7A9" \
-H "Authorization: Bearer $ESCROW_API_KEY"
{
"id": "swv_01K6Z3M8Q4R2T7V9W1X3Y5Z7A9",
"status": "VERIFIED",
"verifiedAt": "2026-10-02T12:04:11.000Z",
"sellerWallet": {
"id": "swal_01K6Z3M8Q4R2T7V9W1X3Y5Z7A9", // store this against the seller
"address": "0x90F79bf6EB2c4f870365E785982E1f101E93b906",
"chainId": 84532,
"sellerReference": "seller_812",
"verifiedAt": "2026-10-02T12:04:11.000Z"
},
…
}Store sellerWallet.id against the seller. GET /v1/seller-wallets?sellerReference=seller_812 lists every wallet verified for that reference, and GET /v1/seller-wallets/{id} reads one.
4. Pay to the verified wallet
Create escrows with sellerWalletId instead of sellerWallet. Sending both is refused as ambiguous, and so is an id from another organization or environment.
{
"amount": "250000000",
"currency": "USDC",
"sellerWalletId": "swal_01K6Z3M8Q4R2T7V9W1X3Y5Z7A9",
"externalReference": "order-5120"
}The escrow copies the verified address when it is created. If the seller later verifies a new wallet, escrows that already exist keep paying the old one; new escrows pay whichever id you send.
Good to know
- One id per address. Re-verifying the same wallet keeps its id; a different wallet gets a new one.
- Per environment. A wallet verified with a test key is invisible to a live key, and the other way round.
- Smart-contract wallets cannot verify yet. A Safe or another contract wallet produces a signature we do not accept (
signature_mismatch). Use a rawsellerWalletfor those sellers. - What the seller may see: a wrong-wallet signature can be retried at once; a used or expired link needs a new one from you (
verification_link_used,verification_link_expired). - Payment links created in the dashboard can use your verified wallets too (see dashboard tools).