Abstraxn Agent Kit supports LiFi cross-chain and same-chain swaps using your integrator name, API key, and integrator fee (BYOK). Agents call the lifi_swap_quote MCP tool; your backend signs approval and route transactions with the agent wallet accessKey.

Supported chains

ethereum, base, polygon, arbitrum-one, bsc Same-chain swaps use one network slug. Cross-chain routes set chain (source) and to_chain (destination).

Dashboard setup

  1. Open Agentic Stack → Integrations for your application.
  2. Enable LiFi and enter:
    • Integrator name — from the LiFi partner portal
    • API key — for higher rate limits (x-lifi-api-key)
    • Integrator fee — decimal fraction (e.g. 0.005 = 0.5%)
  3. Save — credentials are encrypted server-side and included in agent validation for MCP calls.
LiFi credentials are stored per application, not per end user. All agents under that app share the integration when enabled.

MCP tool: lifi_swap_quote

ParameterRequiredDescription
chainYesSource EVM network slug
to_chainNoDestination slug (defaults to chain for same-chain)
input_tokenYesSymbol (ETH, USDC) or 0x address on source chain
output_tokenYesSymbol or address on destination chain
amountYesHuman-readable sell amount on source chain
slippage_bpsNoDefault 50 (0.5%)
The tool returns an unsigned approval transaction (if needed) and an unsigned route transaction for the agent EVM wallet on the source chain.

LiFi specialist chat

In the sample web app, open chat with ?serviceAgent=lifi (or pick the LiFi category). The backend:
  • Filters tools to LiFi-relevant MCP calls
  • Injects LiFi-specific system prompts
  • Routes swap and bridge requests to lifi_swap_quote (not Uniswap or evm_swap_quote)

Execution modes

TRANSFER_REQUIRE_CONFIRMATIONBehavior
true (default)User sees a swap confirmation card in chat — Confirm / Cancel before signing
falseBackend auto-signs approval (if needed) and the route transaction
See Swap confirmation for the confirmation UI and API.

Transaction history

Confirmed routes are recorded as chat_lifi_swap (and approvals as chat_lifi_approval) in agent transaction history.

Third-party integrations

BYOK overview, architecture, and deployment.

Swap confirmation

Confirm / cancel UX and REST endpoints.

MCP tools reference

Full tool catalog including lifi_swap_quote.

Uniswap integration

Same-chain Uniswap swaps via uniswap_swap_quote.