Setup · bridge
Bridge widget
Cross-chain bridge embed. Two payments: platform fee first, then deposit.
- 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-bridge"></div> <script src="https://partners.riddlewallet.com/riddlepartners.js"></script> <script> const riddle = RiddlePartners.createClient({ partner: 'acme' }) riddle.mount('#riddle-bridge', { product: 'bridge', height: 760 }) </script> - 3
Iframe alternative
Use the same allow attribute so wallets can copy URIs.
<iframe src="https://partners.riddlewallet.com/embed/bridge?partner=acme&network=mainnet&embed=1" style="width:100%;height:760px;border:0;border-radius:16px" allow="clipboard-write; clipboard-read; payment; camera; publickey-credentials-get *; accelerometer; gyroscope" title="Riddle bridge" ></iframe>
- 4
REST (optional)
Estimate then prepare (unsigned fee + deposit), then create with feeTxHash. Live key required for create.
GET /api/v1/bridge/estimate?fromCurrency=xrp&toCurrency=eth&amount=10 POST /api/v1/bridge/prepare POST /api/v1/bridge/create # rpk_live_… + feeTxHash GET /api/v1/bridge/status?id=