Get the FREE Ultimate OpenClaw Setup Guide →
n

Agentic Commerce Relay

Scanned

@nativ3ai

npx machina-cli add skill @nativ3ai/agentic-commerce-relay --openclaw
Files (1)
SKILL.md
1.6 KB

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.

Source

git clone https://clawhub.ai/nativ3ai/agentic-commerce-relayView on GitHub

Overview

Burn USDC on a source chain and mint on a destination chain using Circle’s CCTP, returning a machine-readable receipt. No contract deployments are needed, and it’s built for multichain agent-to-agent settlements with optional Moltbook discovery and integrations.

How This Skill Works

The script uses SRC_RPC and DST_RPC with a PRIVATE_KEY to invoke Circle’s CCTP contracts, performing a burn on the source chain and a mint on the destination chain, then emits a receipt containing burnTx, messageHash, mintTx, and recipient. Optional per-chain overrides (SRC_USDC, SRC_TOKEN_MESSENGER, SRC_MESSAGE_TRANSMITTER, DST_MESSAGE_TRANSMITTER, DST_DOMAIN) and an AMOUNT parameter customize the flow; default AMOUNT is 1000000 (1 USDC with 6 decimals).

When to Use It

  • You need to settle USDC across CCTP-supported chains without deploying contracts.
  • You want multichain agent-to-agent settlement between wallets or services.
  • You require a verifiable, machine-readable receipt for reconciliation (burnTx, mintTx, messageHash, recipient).
  • You want to optionally discover counterparties via Moltbook before settlement.
  • You intend to integrate with intent parsing or privacy features via bundled integrations.

Quick Start

  1. Step 1: Export required env vars (SRC_RPC, DST_RPC, PRIVATE_KEY) and optional per-chain settings (SRC_USDC, SRC_TOKEN_MESSENGER, SRC_MESSAGE_TRANSMITTER, DST_MESSAGE_TRANSMITTER, DST_DOMAIN, AMOUNT) as shown in Quick Use.
  2. Step 2: Run the relay: node scripts/cctp-bridge.js
  3. Step 3: Read the JSON receipt printed by the script (burnTx, messageHash, mintTx, recipient).

Best Practices

  • Always verify required env vars (SRC_RPC, DST_RPC, PRIVATE_KEY) before running the relay.
  • Set DST_DOMAIN and AMOUNT accurately to ensure correct destination and value.
  • Use per-chain overrides (SRC_USDC, SRC_TOKEN_MESSENGER, SRC_MESSAGE_TRANSMITTER, DST_MESSAGE_TRANSMITTER) when needed.
  • Validate the receipt fields (burnTx, messageHash, mintTx, recipient) in downstream systems.
  • Leverage Moltbook discovery or bundled integrations to verify counterparties and enhance automation.

Example Use Cases

  • A cross-chain payout to a partner on a destination chain, with a verifiable settlement receipt.
  • Agent-to-agent settlement between two organizations operating on different L1/L2 networks.
  • Automated reconciliation workflow that processes the printed receipt (burnTx, mintTx, recipient) for accounting.
  • Discovery of counterparties via Moltbook before executing a cross-chain burn/mint flow.
  • Integration-driven use case using MVP USDC Intent Payer for structured settlement prompts and guardrails.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers