Embedded swap example

This page shows the kind of product-facing UI a partner could build while using Swapifie as the API layer underneath.

What your product owns
  • Your own design system, brand, and interaction model.
  • Your own wallet flow and account state.
  • Your own product events, analytics, and business logic.
  • Your own surfaces: web app, mobile app, bot UI, or embedded widget.
What Swapifie handles
  • Quote generation and assembled transactions.
  • Partner fee application and revenue attribution.
  • Multi-chain routing through the underlying swap infrastructure.
  • Partner account tracking, API key auth, and payout ledgering.
Reference client call
const client = new SwapifieClient({
  apiKey: "sk_swapifie_your_key_here",
  baseUrl: "https://www.swapifie.com",
})

const quote = await client.quote({
  chainId: 8453,
  userAddr,
  slippageLimitPercent: 0.5,
  inputTokens: [{ tokenAddress: fromToken, amount }],
  outputTokens: [{ tokenAddress: toToken, proportion: 1 }],
})