用途:在支持的链之间转移代币,使用 Wormhole 与 Circle CCTP 协议。支持链包括 Solana、Ethereum、Polygon、Arbitrum、Optimism、Avalanche、Base,两条协议均支持这些链上的 USDC。
主要能力:聊天命令提供报价(/bridge quote 100 USDC sol to eth)、执行转账(/bridge send 100 USDC sol to eth,可用 --address 指定目标地址)、赎回(/bridge redeem <tx-hash>)、待赎回列表(/bridge pending)、状态查询(/bridge status <tx-hash>)与历史记录(/bridge history)。TypeScript API 提供 Wormhole 的 executeWormholeBridge、executeWormholeRedeem,CCTP 的 executeCCTPBridge、redeemCCTP,以及 getTransferStatus、getPendingRedemptions。状态值包括 pending、confirming、attesting、redeemable、completed、failed。
使用方式:Wormhole 流程为源链锁定代币、等待确认、生成 VAA、目标链赎回;CCTP 流程为源链销毁 USDC、等待约 15 分钟证明、目标链铸造 USDC。需提供源链私钥与目标地址,赎回需保存 VAA 或 message hash。
费用与时间(资料给出):Solana→Ethereum 约 $5、15-20 分钟;Ethereum→Solana 约 $20、15-20 分钟;Arbitrum→Base(CCTP)约 $0.50、15-20 分钟;Polygon→Arbitrum 约 $1、15-20 分钟。
限制与建议:USDC 建议用 CCTP 更快更便宜;注意 gas 价格;保存 VAA/message hash;监控待赎回转账;先用小额测试;发送前核对目标地址。