@merdikim

Intent Transfer Completion via LI.FI

OpenClaw plugin and bundled skill for completing token transfer intents with LI.FI routing.

当前版本
v1.0.0
code-plugin社区source-linked

intent-transfer-completion-lifi

Production-ready OpenClaw extension composed of:

  • a native plugin/tool named complete_transfer_intent
  • a bundled skill named intent_transfer_completion_lifi

The plugin fulfills natural-language token transfer intents such as:

  • send 50usdc to merkim.eth on base
  • send 0.1 eth to vitalik.eth on arbitrum
  • transfer 250 dai to 0xabc... on optimism

When the wallet lacks enough of the requested token on the requested chain, the plugin:

  1. parses the intent
  2. resolves the destination chain, token, and recipient
  3. inspects balances across configured chains
  4. asks LI.FI for quotes/routes to cover the shortfall
  5. enforces gas reserve and slippage policy
  6. executes the route
  7. performs the final native/ERC-20 transfer
  8. tracks status until completion

Files

  • openclaw.plugin.json: plugin manifest with bundled skill and config schema
  • src/index.ts: plugin entrypoint and tool implementation
  • skills/intent_transfer_completion_lifi/SKILL.md: model instructions for when to invoke the tool

Setup

  1. Install dependencies:
npm install
  1. Configure the plugin through OpenClaw plugin config or the native tool context. Provide:
  • per-chain RPC URLs
  • optional lifiApiKey
  • optional ensRpcUrl for ENS recipients
  1. Connect a local wallet in OpenClaw for live execution. The plugin discovers that wallet from native tool context and returns an error if none is available.

  2. Build:

npm run build
  1. Test:
npm test

Notes

  • All executable logic lives in the TypeScript plugin.
  • The bundled skill contains routing guidance only.
  • Live execution requires a funded local OpenClaw wallet.
  • ENS resolution uses the configured ensRpcUrl.
  • The runtime does not load configuration from .env.

源码与版本

源码仓库

https://github.com/merdikim/intent-transfer-completion-lifi

打开仓库

源码提交

6e109622efbb63a410867887c2ce9dce64bbe4ed

查看提交

安装命令

openclaw plugins install clawhub:intent-transfer-completion-lifi

元数据

  • 包名: intent-transfer-completion-lifi
  • 创建时间: 2026/04/08
  • 更新时间: 2026/04/08
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.3.24-beta.2
  • 插件 API 范围: >=2026.3.24-beta.2
  • 标签: latest
  • 文件数: 68