00/Agent payments on Robinhood Chain
Your agents, within bounds.Every payment, checked on chain.
Give your agents a spending policy that merchants can check on Robinhood Chain, and take their USDG payments over x402 at a payment address of your own.
Within policyUSDG moves, the merchant gets paid over x402
Built on
- ChainRobinhood Chain 4663
- AssetUSDG
- Paymentsx402
- IdentityERC-8004
- AccountsSafe
- ReadingsEIP-712
- Checks per payment6
- Raise delay1 h to 30 d
- Daily window00:00 UTC
01/How a payment moves
Permission to move. A line that holds.
Operators define the policy. Agents transact within it. Merchants receive proof they can check themselves.
1Operator
Set the boundary
Choose a ceiling for each payment, each day and the agent's float. Name the contracts it may call. Any increase takes at least an hour to activate.
Configure an agentAgent policyset by the operator
- perTx
- ceiling for one payment
- perDay
- ceiling per UTC day
- floatMax
- most the agent holds at once
- targets
- contracts and functions it may call
- validUntil
- when the policy ends
- increaseDelay
- 1 h to 30 d before a raise applies
2Agent
The agent pays
The agent signs its own USDG payments over x402. It draws from a float the policy sizes, with its own session key.
See the payment flowx402 exchangeHTTP
GET /resourcethe agent asks for a paid resource402 Payment Requiredthe merchant names price, asset and payeeX-PAYMENTthe agent signs a USDG transferWithAuthorization200 OKthe merchant settles and serves the resource
3Policy module
Checked before value moves
The module on the agent's Safe runs six checks in order. The first one that fails stops the transfer with its own error.
Try the checks- 1Session
NotActive - 2Valid until
Expired - 3Token
TokenNotAllowed - 4Per payment
PerTxExceeded - 5Daily
DailyCapExceeded - 6Float
FloatExceeded
- 1Session
4Merchant
Proof the merchant can read
A merchant reads the address behind the payment and verifies an EIP-712 signature covering identity, policy and current spend.
Inspect a payerSigned readingEIP-712 · Aphrodel Check
- account · agentId
- who paid, and its ERC-8004 identity
- status · policyHash
- the session and the policy in force
- caps · spentToday
- ceilings and what is already spent
- probedAt · endpointsLive
- the latest endpoint probe
- blockNumber · validUntil
- the block it was read at, and how long it holds
02/The six checks
Six checks, in order. Set them and watch one hold.
Move the ceilings and the payment. The page runs the same comparisons as AphrodelPolicyModule, in the same order, and lights the first one that stops the transfer with the error the chain returns.
All six checks pass. 40 USDG moves to the agent's float.
- Largest payment now
- 50 USDG
- Left today
- 80 USDG
- Float room
- 70 USDG
- Raising a ceiling
- waits 1 h or more
- 1Session
signer holds an active sessionok - 2Valid until
block.timestamp <= validUntilok - 3Token
token is listed in policy.capsok - 4Per payment
0 < amount <= perTxok - 5Daily
spentToday + amount <= perDayok - 6Float
balance + amount <= floatMaxok
03/The system
Five hops from a policy to a signed reading.
Funds stay on the operator's Safe. The agent only ever holds the float its policy sizes, and every payment leaves a record on Robinhood Chain.
How a payment moves through the system05 hops
01 · Operator
Owner wallet
Installs the module on a Safe and writes the agent's policy.
02 · On chain
Safe + policy module
Holds the USDG and runs the six checks on every top-up.
AphrodelPolicyModule03 · Agent
Session signer
Holds a float the policy sizes and signs x402 payments.
04 · Merchant
Payment address
Takes USDG over x402 at an address of its own.
05 · Reading
Attestor + lens
The lens reads the signer's session; a key the attestor lists signs it as an EIP-712 reading.
AphrodelAttestor · AphrodelLens
04/The reading
What a merchant reads before it serves an agent.
Every field of the signed reading, exactly as the EIP-712 type defines it. The SDK checks the signature against the attestor's keys.
{ name: "Aphrodel Check", version: "1", chainId: 4663, verifyingContract: attestor }- signer
address - account
address - agentId
uint256 - owner
address - bound
bool
- installed
bool - status
uint8 - sessionEpoch
uint64 - sessionCreatedAt
uint64 - accountKind
uint8 - signerIsAccountOwner
bool - otherAccountModules
bool - signerHasCode
bool - paidAt
uint64
- policyHash
bytes32 - caps
TokenView[] (token, perTx, perDay, floatMax, spentToday) - targetsHash
bytes32 - policyValidUntil
uint64 - increaseDelay
uint32 - pendingHash
bytes32 - pendingReadyAt
uint64
- verified
bool - probedAt
uint64 - endpointsLive
bool - registrationValid
bool - domainVerified
bool - validFor
uint64
- issuedAt
uint64 - validUntil
uint64 - blockNumber
uint64
- 01
Who pays
The signer that paid, the Safe account behind it, the account's owner and the agent's ERC-8004 identity, bound to that account.
- 02
The session
Whether the policy module is installed on the account and the state of the agent's session key.
- 03
The policy
The policy in force as a hash, every ceiling with today's spend, the allowed calls, and any raise waiting out its delay.
- 04
The endpoint
The latest probe of the agent's endpoints, its registration and its domain.
- 05
The window
When the reading was issued, how long it holds, and the block it was read at.
05/Live chain view
Start with the payer.
Enter an address to see the policy and spend recorded for its agent account. Values appear only after a chain read.
Open the full reading06/Privacy · Coming soon
Keep your balance and your orders to yourself.
Shield will hold USDG out of view and move it with a zero knowledge proof built in your browser. Eclipse and Quiet Book will keep each order sealed until its batch clears.
07/TOKEN
Value follows use.
Protocol revenue buys TOKEN for staking and burns. Pool swap fees flow to Earn depositors. Credit packs and agent verification also accept TOKEN when available.
08/On chain
Read it from the chain. Every address, every block.
The block and the daily window below come from Robinhood Chain while you read this. Each contract links to Blockscout.
Robinhood ChainConnecting
- Latest block
- ·
- Block time (UTC)
- ·
- Daily ceilings reset in
- ·
- Chain ID
- 4663
ContractsBlockscout
- AphrodelPolicyModuleRuns the six checks on each SafeAddress at deployment
- AphrodelAttestorLists the keys that sign readingsAddress at deployment
- AphrodelLensReads a signer's session in one callAddress at deployment
- Identity registryERC-8004 agent identitiesAddress at deployment
- USDGThe asset agents pay in0x5fc536…F1d168
09/Questions
What to know before you start.
Give your first agent a boundary it keeps.
Write the policy, open a session for the agent and hand merchants a reading they can verify.