# Lifi Stablecoin Swap

Build a production 1:1 stablecoin swap with LI.FI Intents, an interface or backend...

- Repository: https://github.com/internet-court/internet-court-skill (7050 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-10-26
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add internet-court/internet-court-skill --skill lifi-stablecoin-swap -g -a claude-code -y`
Codex: `npx skills add internet-court/internet-court-skill --skill lifi-stablecoin-swap -g -a codex -y`
Cursor: `npx skills add internet-court/internet-court-skill --skill lifi-stablecoin-swap -g -a cursor -y`
Gemini CLI: `npx skills add internet-court/internet-court-skill --skill lifi-stablecoin-swap -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add internet-court/internet-court-skill`

## Description

Build a production 1:1 stablecoin swap with LI.FI Intents, an interface or backend where the amount the user sends equals the amount they receive (no visible gas or solver fees), same-chain or cross-chain, filled by LI.FI's solver network and verifiable on-chain. USE THIS SKILL WHEN USER WANTS TO: - Build a 1:1 stablecoin swap interface ("send 100 USDC, receive 100 USDC"), same- or cross-chain - Add stablecoin transfers with a guaranteed output amount to an app, backend, or bot - Build enterprise/fintech-grade transfers with no visible gas or solver fees for the end user - Implement the LI.FI Intents quote -> approve -> escrow open -> status loop for stablecoins - Move USDC / USDT 1:1 across chains under an onboarded LI.FI integrator - Understand how the LI.FI integrator ID / Partner Portal enables 1:1 quoting - Use the @lifi/intent TypeScript SDK to quote, build, open, and track an intent order This skill is self-contained and covers the integration end to end via the `@lifi/intent` SDK (the primary path), with the raw `order.li.fi` REST endpoints as a language-agnostic option. For the wider LI.FI product surface (classic swaps/bridges, Composer, Earn), use the `lifi` skill.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Build a 1:1 Stablecoin Swap with LI.FI Intents

A normal crypto transfer leaks value to gas and spreads, send 100 USDC, ~99.8 arrives. For a
neobank, payment processor, or regulated fintech, that's a non-starter: their users expect that
sending 100 means 100 arrives.

LI.FI Intents lets you offer exactly that, **send 100 USDC, receive 100 USDC** (or USDT, or
another supported stablecoin), same-chain or cross-chain. A solver from LI.FI's network fronts
the destination gas and sources the liquidity, then settles against the user's deposit, so the
end user sees one number from start to finish, provable on a public block explorer.

The primary integration is the **`@lifi/intent` TypeScript SDK**, it requests the quote, builds
the on-chain order, and tracks it. The raw REST API is in §7 for non-TypeScript backends.

---

## 1. Enable 1:1 quoting on your integrator account

1:1 stablecoin quoting is a capability provisioned on your **LI.FI integrator account**:

1. Register an integrator ID on the **LI.FI Partner Portal**, https://portal.li.fi
2. Complete an integration agreement with LI.FI. As part of onboarding, 1:1 stablecoin quoting is
   enabled for your integrator.
3. Quote requests made **under your integrator key** then return 1:1 amounts for supported
   stablecoin pairs.

The integration code below is identical regardless, what makes the quote come back 1:1 is your
onboarded integrator. See https://docs.li.fi/lifi-intents/introduction or contact LI.FI to enable it.

---

## 2. The flow

`order.li.fi` is the Intents API. The escrow flow is the recommended default and takes four steps:

The rest: https://github.com/internet-court/internet-court-skill/blob/HEAD/vendored/lifi/lifi-stablecoin-swap/SKILL.md
