Agentic Commerce Relay
Use this skill when you need to settle USDC across CCTP-supported chains without deploying contracts. The relay script calls Circle’s official CCTP contracts and outputs a machine-readable receipt.
Quick Use
From the repo root:
CODEBLOCK0
Required env
- - INLINECODE0
- INLINECODE1
- INLINECODE2
Optional env (override per chain)
- - INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
- INLINECODE7
- INLINECODE8 (default
1000000, 1 USDC with 6 decimals)
Receipt
The script prints JSON with:
- - INLINECODE10
- INLINECODE11
- INLINECODE12
- INLINECODE13
Optional modules
Moltbook discovery
Find counterparties by submolt feed:
CODEBLOCK1
Bundled integrations
This repo includes optional modules under
integrations/:
- -
integrations/mvp (USDC Intent Payer) - INLINECODE16 (Anon x402 Relay)
Use these for intent parsing/guardrails or privacy, then call the relay to settle cross-chain.
代理型商业中继
当您需要在CCTP支持的链之间结算USDC而无需部署合约时,请使用此技能。中继脚本调用Circle的官方CCTP合约,并输出机器可读的收据。
快速使用
从仓库根目录执行:
bash
SRC_RPC=... \
DST_RPC=... \
PRIVATE_KEY=0x... \
SRC_USDC=0x... \
SRCTOKENMESSENGER=0x... \
SRCMESSAGETRANSMITTER=0x... \
DSTMESSAGETRANSMITTER=0x... \
DST_DOMAIN=... \
node scripts/cctp-bridge.js
必需环境变量
- - SRCRPC
- DSTRPC
- PRIVATE_KEY
可选环境变量(按链覆盖)
- - SRCUSDC
- SRCTOKENMESSENGER
- SRCMESSAGETRANSMITTER
- DSTMESSAGETRANSMITTER
- DSTDOMAIN
- AMOUNT(默认值 1000000,即6位小数的1 USDC)
收据
脚本输出包含以下字段的JSON:
- - burnTx
- messageHash
- mintTx
- recipient
可选模块
Moltbook发现
通过子molt源查找交易对手:
bash
MOLTBOOK
APIKEY=... \
MOLTBOOK
BASEURL=https://www.moltbook.com \
node scripts/discovery-moltbook.cjs --submolt usdc --sort new --tag payment
捆绑集成
本仓库在integrations/目录下包含可选模块:
- - integrations/mvp(USDC意图支付方)
- integrations/anonx402-hackathon(Anon x402中继)
使用这些模块进行意图解析/防护或隐私保护,然后调用中继进行跨链结算。