Setup · create
Create wallet widget
Let visitors create or import a Riddle Wallet. Wallet is a popup, never an iframe.
- 1
Finish account + origin
Complete Partner account setup so your slug exists, then allowlist your site in Dashboard → Embeds.
- 2
Mount the widget
Replace acme with your slug. This is the supported browser entry (riddlepartners.js, same file as inject.js).
<div id="riddle-create"></div> <script src="https://partners.riddlewallet.com/riddlepartners.js"></script> <script> const riddle = RiddlePartners.createClient({ partner: 'acme' }) riddle.mount('#riddle-create', { product: 'create', height: 480 }) </script> - 3
Iframe alternative
Use the same allow attribute so wallets can copy URIs.
<iframe src="https://partners.riddlewallet.com/embed/create?partner=acme&network=mainnet&embed=1" style="width:100%;height:480px;border:0;border-radius:16px" allow="clipboard-write; clipboard-read; payment; camera; publickey-credentials-get *; accelerometer; gyroscope" title="Riddle create" ></iframe>
- 4
Same connected event as login
After onboarding, you get riddle-embed:connected with address + chain.
riddle.mount('#create', { product: 'create', partner: 'acme' }) riddle.createWallet() // optional: open popup without iframe