Skip to content
This repository was archived by the owner on Nov 27, 2026. It is now read-only.

evidence: C-Chain mainnet selftest + ERC-8004 on Fuji; fix local signing - #4

Merged
M0nsxx merged 3 commits into
mainfrom
evidence/day1-a3-a4
Nov 26, 2026
Merged

M0nsxx merged 3 commits into
mainfrom
evidence/day1-a3-a4

Conversation

@Eras256

@Eras256 Eras256 commented Nov 26, 2026

Copy link
Copy Markdown
Member

Finishes the Avalanche side for day 1.

Mainnet selftest (C-Chain)

  • x402 exact payment of 0.01 USDC settled by PayAI: 0x9b718e4249efea418291da2cb4169dcfc344e0b1794d2a2937c7fa08dc4d3f83 (block 101457077).
  • The relayer (0xc6699d2a…cb63, listed as a PayAI signer) settled it through Multicall3, so the receipt is bound to the Transfer at logIndex 12, not to the tx to.
  • Payer-signed receipt in evidence/2026-11-26/cchain-a3-binding.json: VALID. Balances moved 0.50 → 0.49 and 0 → 0.01.

ERC-8004 on Fuji

  • register: agentId 368 (0xd91c19b3…).
  • validationRequest pointing at the Fuji receipt, requestHash = keccak256 of its bytes (0x59de4635…).
  • validationResponse 100 by the validator, with the review file produced by the verifier (0x7dc27e71…). Read back: 1 request, 1 response.
  • URIs point at this repo pinned to commit 9321ce8. They resolve once the repo is public; the hashes bind the exact bytes either way.
  • The validator is the payTo key, which is also ours. This shows the mechanics, not an independent validation, and the README says so.

Fix

  • The live write scripts reused the simulated request, which carries the account as an address, so viem asked the RPC to sign and the public RPC refused (nothing was sent). sendSimulated() now signs locally. validation-request also accepts --uri.

All payments are team self-tests labeled selftest, not usage. Solana mainnet (S3) is still pending: its payTo has no USDC token account yet.

🤖 Generated with Claude Code

Eras256 and others added 3 commits November 26, 2026 09:40
cchain-a3-binding.json: x402 exact via PayAI on Avalanche C-Chain mainnet,
tx 0x9b718e42, logIndex 12 (settled through Multicall3), payer-signed, VALID.
fuji-agent-card.json and fuji-a2-validation-review.json are the inputs for
the ERC-8004 register / validation request / response on Fuji.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
register / validation-request / validation-response reused the simulated
request as is. It carries the account as a plain address, so viem asked the
RPC to sign (eth_sendTransaction) and the public Fuji RPC refused; nothing
was sent. sendSimulated() now passes the local signer.
validation-request also takes --uri (e.g. an https URL pinned to a commit)
next to --cid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C-Chain mainnet 0x9b718e42 (logIndex 12, settled by a PayAI relayer through
Multicall3), payer-signed receipt VALID. ERC-8004 on Fuji: agent 368,
validationRequest for the Fuji receipt and validationResponse 100. All
team self-tests, not usage; the validator is also a team key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@M0nsxx M0nsxx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted review (Claude)

Ran the verifier on evidence/2026-11-26/cchain-a3-binding.json: VALID with the payer's signature, bound to logIndex 12 of tx 0x9b718e42 on C-Chain mainnet, and the relayer is a listed PayAI signer. Checked the three Fuji ERC-8004 transactions on the explorer: agent 368, the validation request hash matches the receipt file, and the response is 100. The signing fix only changes how live writes are sent (local signer instead of RPC signing); dry runs are unchanged and CI is green. The README labels everything as team self-tests and says the validator is our own key. Approving.

@M0nsxx
M0nsxx merged commit fe6dad6 into main Nov 26, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants