HoodClaw is the operator-routed payment layer for AI-native paid APIs on Robinhood Chain.
This repository contains the live protocol contracts and deployment tooling for the first real HoodClaw settlement path on testnet.
The current testnet stack is not just an event logger anymore.
It includes:
- a live
HoodClawSettlementRouter - a live
HoodClawOperatorRegistry - a live test token
MockUSDG - real token approvals
- real token transfers through settlement flow
- explorer-verifiable transaction proofs
HoodClaw gives a merchant a verifiable 402 payment flow:
- the merchant quotes access to a protected resource
- the client chooses an operator desk
- settlement is executed and recorded through the router
- the merchant unlocks only after onchain proof is valid
This keeps paid API access tied to chain truth instead of offchain trust or UI claims.
File:
contracts/HoodClawSettlementRouter.sol
Responsibilities:
- compute deterministic invoice hashes
- move settlement asset with
transferFrom(...) - record settlement facts
- emit canonical settlement events
- give merchants a single proof surface to verify
File:
contracts/HoodClawOperatorRegistry.sol
Responsibilities:
- store operator identity
- store operator wallet
- store fee policy
- store active status
- store policy tier and endpoint metadata
File:
contracts/MockUSDG.sol
Purpose:
- testnet settlement asset for the live demo flow
- ERC-20 style approve + transfer + transferFrom path
- used because the canonical docs address did not expose a testnet token contract at the time of deployment
Robinhood Chain testnet:
- Chain ID:
46630 - RPC:
https://rpc.testnet.chain.robinhood.com - Explorer:
https://explorer.testnet.chain.robinhood.com
Current deployed contracts:
MockUSDG:0xb783Db1d57D09De913e907400625560930671b66HoodClawSettlementRouter:0x517ADeD3F84AA9D1b7BC8f86E44C0935AcCeDCa9HoodClawOperatorRegistry:0x1DC926A14Bb2337B610483E639f9c7E3a5652899
Deployment record:
deployments/testnet.json
Real test transactions already executed:
- approve tx:
0xa9b02941e90f5619c118d03c00f896432625e44bf50c6aaf88cbfa07adff2535
- settlement tx:
0x57d3dc6bc6beff1cdea73f5b793786628f64e641e9c640dbf4c1d3f2293edfc0
- merchant wallet funded:
0xf1B111F58aE4065c4b275f3AACdf58499268101A
- merchant amount received:
5000000000000000000=5 MockUSDG
Explorer links:
- approve:
https://explorer.testnet.chain.robinhood.com/tx/0xa9b02941e90f5619c118d03c00f896432625e44bf50c6aaf88cbfa07adff2535
- settlement:
https://explorer.testnet.chain.robinhood.com/tx/0x57d3dc6bc6beff1cdea73f5b793786628f64e641e9c640dbf4c1d3f2293edfc0
- merchant wallet:
https://explorer.testnet.chain.robinhood.com/address/0xf1B111F58aE4065c4b275f3AACdf58499268101A
contracts/
HoodClawSettlementRouter.sol
HoodClawOperatorRegistry.sol
MockUSDG.sol
deployments/
testnet.json
scripts/
deploy-hoodclaw.js
test-live-settlement.js
verify-info.js
hardhat.config.js
package.json
.env.example
LICENSE
Install dependencies:
npm installCompile contracts:
npm run compileRun tests:
npm run testCreate .env from .env.example and set:
PRIVATE_KEY=0xYOUR_TESTNET_DEPLOYER_PRIVATE_KEY
RH_TESTNET_RPC_URL=https://rpc.testnet.chain.robinhood.comDeploy to Robinhood Chain testnet:
npm run deploy:hoodclaw:testnetRun a live settlement test:
npm run test:settlement:testnetShow verification route:
npm run verify:hoodclaw:testnetCurrent protocol shape is intentionally narrow:
- canonical router over scattered proof surfaces
- registry-backed desks before permissionless complexity
- real test asset flow before pretending canonical stable settlement is live on testnet
- no fake slashing claims before dispute logic exists
This keeps the first release credible while preserving a clean path to:
- operator execution services
- merchant verifier middleware
- bond and dispute contracts
- richer operator policies
- account abstraction upgrades later
Current trust boundaries:
- settlement truth comes from router state and events
- settlement asset movement comes from token
transferFrom(...) - operator identity comes from the registry contract
- merchant unlock logic should verify invoice id, asset, amount, recipient, and event source
Current non-goals:
- dispute resolution
- slashing mechanics
- permissionless desk entry
- paymaster logic
- settlement router contract
- operator registry contract
- MockUSDG testnet asset
- Robinhood Chain testnet deployment
- real approve + settlement tx path
- operator execution service
- merchant proof verifier
- dispute and bond architecture
- richer registry read surfaces
- X:
https://x.com/hoodclaw_fun - Contracts repo:
https://github.com/Jaredweb3here/HoodClaw - Robinhood Chain docs:
https://docs.robinhood.com/chain - Robinhood Chain testnet explorer:
https://explorer.testnet.chain.robinhood.com