Skip to main content
The KYI Widget SDK runs the KYI flow inside your product. Your server mints a short-lived token; your frontend opens the widget in a drawer.
KYI widget drawer showing the asset verification step.

The widget verifying an asset.

Before you start

Send your Bluprynt representative every origin that will embed the widget, such as https://app.example.com and http://localhost:3000. You get back a partner ID and a SECRET_KEY. The widget only loads on allowlisted origins; scheme, host and port must match exactly. The server helper needs Node.js 18 or later.
1

Mint a token on your server

server.ts
Keep SECRET_KEY on the server. Take the user ID from your authenticated session: if your endpoint reads it from the request, anyone can open someone else’s verification.
2

Open the widget

The widget slides in from the right as a drawer. Mint a fresh token each time you open it.
app.ts
3

Pick a scope

Next: verify the controlling wallets, or see the full reference.