360 Secure SkillHub
360 安全技能中心

Agentic Commerce Relay

核心功能是调用Circle官方CCTP合约,完成USDC在支持链间的烧毁与铸造,输出含交易哈希等信息的可验证JSON收据。典型场景为多链代理间结算,也可搭配Moltbook发现交易对手,或通过集成模块处理支付意图、实现隐私结算。输入需配置链RPC、私钥等环境变量运行脚本,可自定义链参数、转账金额,支持可选模块扩展功能。

nativ3ai
nativ3ai
热度 70.81
最近更新 2026-05-18 11:58:37
分类:开发依赖:代码执行 / 第三方 API应用场景:API 集成 / 自动化脚本 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add agentic-commerce-relay
Metadata
name
agentic-commerce-relay
description
Run the CCTP relay to burn USDC on a source chain and mint on a destination chain, returning verifiable receipts. Use for multichain agent-to-agent settlement, with optional Moltbook discovery and integrations.

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:

SRC_RPC=... \
DST_RPC=... \
PRIVATE_KEY=0x... \
SRC_USDC=0x... \
SRC_TOKEN_MESSENGER=0x... \
SRC_MESSAGE_TRANSMITTER=0x... \
DST_MESSAGE_TRANSMITTER=0x... \
DST_DOMAIN=... \
node scripts/cctp-bridge.js

Required env

  • SRC_RPC
  • DST_RPC
  • PRIVATE_KEY

Optional env (override per chain)

  • SRC_USDC
  • SRC_TOKEN_MESSENGER
  • SRC_MESSAGE_TRANSMITTER
  • DST_MESSAGE_TRANSMITTER
  • DST_DOMAIN
  • AMOUNT (default 1000000, 1 USDC with 6 decimals)

Receipt

The script prints JSON with:

  • burnTx
  • messageHash
  • mintTx
  • recipient

Optional modules

Moltbook discovery

Find counterparties by submolt feed:

MOLTBOOK_API_KEY=... \
MOLTBOOK_BASE_URL=https://www.moltbook.com \
node scripts/discovery-moltbook.cjs --submolt usdc --sort new --tag payment

Bundled integrations

This repo includes optional modules under integrations/:

  • integrations/mvp (USDC Intent Payer)
  • integrations/anonx402-hackathon (Anon x402 Relay)

Use these for intent parsing/guardrails or privacy, then call the relay to settle cross-chain.