Embed Sparkle Checkout

Add trustless Ordinals trading to your marketplace or website

Quick Embed Button

Add this button to your listing page. Replace YOUR_OFFER_ID with your offer's short code.

<!-- Sparkle Checkout Button -->
<a href="https://app.sparkleprotocol.com/offer/YOUR_OFFER_ID"
   target="_blank"
   style="display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:#7c3aed;color:white;text-decoration:none;border-radius:8px;font-family:system-ui;font-weight:600;">
  <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
    <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/>
  </svg>
  Buy with Sparkle
</a>

API Integration

For advanced integrations, use our REST API to create offers programmatically.

// Create offer via API
const response = await fetch('https://api.sparkleprotocol.com/v1/offers', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    inscriptionId: 'abc123...',
    priceInSats: 100000,
    sellerAddress: 'bc1p...',
    type: 'single' // or 'bundle'
  })
});

const { offerId, shortCode, checkoutUrl } = await response.json();
// Share checkoutUrl with buyer

Integration Benefits

Zero Integration Risk

We never touch your users' funds. All signing happens in their wallet.

HTLC Protection

Timelock refunds protect sellers. Trades auto-cancel if buyer abandons.

Webhook Notifications

Get notified when offers are reserved, locked, or completed.

Ready to integrate?