Agent skill · software engineering · aiskillstore

lifi-stablecoin-swap

Build production 1:1 stablecoin swaps with LI.FI Intents, where the amount sent equals the amount received with no visible gas or solver fees, on the same chain or across chains. Use for guaranteed-output USDC or USDT transfers, enterprise or fintech transfer flows, integrator onboarding and Partner Portal setup, and the quote, approve, escrow-open, and status lifecycle. Covers the @lifi/intent TypeScript SDK as the primary path and order.li.fi REST endpoints as a language-agnostic alternative. For classic swaps and bridges, Composer, Earn, or the wider LI.FI product surface, use the lifi skill.

Why this skill is useful

Provides specific integration patterns and commands for using the LI.FI Intents SDK to achieve 1:1 stablecoin swaps, which the AI wouldn't reliably generate on its own.

What it needs

Requires npm installed locally. Requires li.fi account access. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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: Opening the order emits Open(bytes32 indexed orderId, ...); solvers watch for that event and fill on the destination chain, so the escrow flow needs no order-submission call. You poll status until the funds land, then show the user the destination transaction. The orderId is the receipt — anyone can independently verify the deposit and the delivery matched. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/lifi-stablecoin-swap

View the source on GitHub

Browse the @skills marketplace