lifi-stablecoin-swaplisted
Install: claude install-skill internet-court/internet-court-skill
# 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.