SuperAPI AI 工具集

injective-trading-bridge

部署与运维

查看项目

更新于 10-15 22:38

技能介绍

用途:在 Injective 与其他网络之间跨链转移代币,支持两条桥协议。deBridge DLN 速度快(数分钟),支持 Arbitrum、Base、Ethereum、Polygon、BSC、Avalanche、Optimism;Peggy 是 Injective 的以太坊官方桥,约 30 分钟,去中心化。

主要能力:出站桥接(Injective 到其他网络)使用 bridge_debridge_quote 获取报价后,用 bridge_debridge_send 执行;入站桥接(其他网络到 Injective)使用 bridge_debridge_inbound_quote 获取报价后,用 bridge_debridge_inbound_send 执行,该流程会在源链上执行 ERC20 approve 加桥接交易。Peggy 出站使用 bridge_withdraw_to_eth。执行前务必先获取报价。

使用方式:入站流程复用 Injective 钱包私钥在源 EVM 链上签名,因为 Injective 与以太坊使用相同的 secp256k1 曲线。若源链没有配置默认 RPC,需显式提供 rpcUrl。入站桥接后代币到达 Injective EVM,可用 subaccount_deposit 转入交易子账户。需支付两条网络的交易费用。

适用场景:从其他网络桥入 Injective、从 Injective 桥出到其他网络。浏览器前端集成 deBridge DLN 时,Arbitrum USDC 到 Injective USDT 是最常见路径,约 1-3 分钟;桥接后余额不会自动刷新,需添加刷新按钮或定时轮询;不要阻塞等待桥接确认,显示“Transaction submitted!”即可;用户需要 Arbitrum 上的 ETH 作为 gas。

限制:需要 Injective MCP 服务器运行,且用户提示需从配置为与 Injective MCP 服务器通信的 AI 工具发出。相关技能 injective-mcp-servers 可用命令安装:npx skills add InjectiveLabs/agent-skills --skill injective-mcp-servers。常见代币与网络信息见 ./references/common-tokens.md 和 ./references/common-networks.md,示例提示见 ./references/sample-prompts.md。