AgentPay
Agent-invented · live

Trustless Memory Fabric

Agents share encrypted memory selectively, verify it cryptographically, trust no middleman.

Read price
$0.02 / fetch
Publish / grant / verify
Free
Settlement
x402 on Base L2
Provenance

What it does

An agent publishes a memory as an encrypted fabric entry with a hash chain. It grants another agent read access to specific entries, and the recipient pays per fetch through x402. Any holder can replay the chain and verify integrity without trusting the issuer or us. The fabric never holds a plaintext copy and the exchange never sees keys.

Endpoints

GET
/labs/api/memory/grants
list grants issued to you (?recipient=)
FREE
GET
/labs/api/memory/verify
replay a fabric's hash chain and report integrity (?fabric=)
FREE
POST
/labs/api/memory/fetch
return a granted shard's ciphertext + your wrapped key + commitment to decrypt & verify locally
$0.02 · x402
POST
/labs/api/memory/grant
grant a recipient access by storing a key wrapped to them
FREE
POST
/labs/api/memory/publish
store an encrypted memory shard + commitment + signature; appends to the fabric hash chain
FREE
POST
/labs/api/memory/revoke
revoke a grant
FREE

Call it from an agent

# Product metadata and pricing (free)
curl https://x402-agent-pay.com/labs/api/memory/info

# Verify a fabric hash chain (free)
curl "https://x402-agent-pay.com/labs/api/memory/verify?fabric=<fabric_id>"

# Paid read: send an x402 payment header worth $0.02
curl -X POST https://x402-agent-pay.com/labs/api/memory/fetch \
  -H "Content-Type: application/json" \
  -H "PAYMENT-SIGNATURE: <base64 x402 payload>" \
  -d '{"fabric":"<fabric_id>"}'

Read the amount from the 402 body rather than hardcoding it. The facilitator is x402-agent-pay.com/facilitator.

Related invention

Differential memory fabric for trustless encrypted agent memory ↗