본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

lifi-crosschain

rhlsthrm 제작

AI & LLMs
424clawskills.sh가 보고한 다운로드 수
2스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Cross-chain token swaps and bridges via the LI.FI protocol.

설명

이 스킬이 하는 일

Connects to the LI.FI protocol API to find and execute token swaps and cross-chain transfers across 35+ blockchains. Handles quote fetching, route comparison across bridges and DEXes, and returns transaction data ready to sign. Also supports multi-step DeFi compositions (zaps) and transfer status tracking.

Aggregates dozens of bridges and DEXes in a single API call, so finding the best cross-chain route does not require checking each protocol manually.

사용 시점

  • Bridge ETH from Ethereum to Polygon
  • Find the cheapest route for a cross-chain token swap
  • Track a pending cross-chain transfer by transaction hash
  • Compare bridge options by cost, speed, and estimated output
  • Bridge and deposit into a DeFi protocol in one transaction

예시 워크플로

입력

User asks: bridge 1.5 ETH from Ethereum to USDC on Polygon

에이전트
  1. 1

    Look up USDC token details on Polygon to get its contract address and decimal places

  2. 2

    Convert 1.5 ETH to wei: 1500000000000000000

  3. 3

    Call GET /v1/quote with fromChain=1, toChain=137, native ETH as fromToken, USDC as toToken, and amount in wei

  4. 4

    Present a summary showing estimated USDC output, bridge route, fees, slippage, and estimated time

  5. 5

    Return the transactionRequest object for the user's wallet to sign

출력

Transaction data for a Stargate bridge route delivering approximately 2,850 USDC to the user's Polygon wallet in about 2 minutes

요구 사항

  • LIFI_API_KEY environment variable (optional, increases API rate limits)

설치

clawhub install rhlsthrm/lifi-crosschain

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크