Casper Agentic Buildathon MVP

AgentPay Guard

A real x402 payment gateway for AI agents with Casper spend policies, settlement receipts, and attack-surface monitoring.

Payment stack ready
Network
testnet
Settled volume
0.00 CSPR
Receipts
0

Paid tools

Agent-callable Casper services

POST /api/gateway/:slug

CSPR Rate Snapshot

Returns a current CSPR market snapshot for agents that need priced decisions.

0.25CSPR
cspr-rate

Casper Account Balance

Fetches a Casper account balance by public key from CSPR.cloud.

0.5CSPR
account-balance

Agent Market Snapshot

Returns a compact market state for autonomous payment and risk checks.

0.75CSPR
market-snapshot

MCP methods

Agent interface

  • list_services
  • quote_service
  • call_service
  • get_spend_status
  • get_receipt

Policies

Spend controls

Create policies through the admin API before agents can settle paid calls.

Wallet UX

CSPR.click configured

App identity is configured for the wallet domain. Agent payment signing stays outside the demo dashboard.

App key presentappKey e127e69bb8e04a8786bb1aef0a284cf4

Operations

Judge-ready agent flow

/api/mcp

Unsigned payment payload

{
  "x402Version": 2,
  "scheme": "exact",
  "network": "casper:casper-test",
  "payload": {
    "signature": "replace-with-130-hex-eip712-signature",
    "publicKey": "agent_public_key_12345678901234567890123456789012",
    "authorization": {
      "from": "000000000000000000000000000000000000000000000000000000000000000000",
      "to": "replace-with-payTo-from-quote",
      "value": "replace-with-amount-from-quote",
      "validAfter": "1780904514",
      "validBefore": "1780905414",
      "nonce": "replace-with-64-hex-nonce"
    }
  }
}

Gateway call

curl -i -X POST http://127.0.0.1:3000/api/gateway/cspr-rate \
  -H 'PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6Miwic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiY2FzcGVyOmNhc3Blci10ZXN0IiwicGF5bG9hZCI6eyJzaWduYXR1cmUiOiJyZXBsYWNlLXdpdGgtMTMwLWhleC1laXA3MTItc2lnbmF0dXJlIiwicHVibGljS2V5IjoiYWdlbnRfcHVibGljX2tleV8xMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMiIsImF1dGhvcml6YXRpb24iOnsiZnJvbSI6IjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsInRvIjoicmVwbGFjZS13aXRoLXBheVRvLWZyb20tcXVvdGUiLCJ2YWx1ZSI6InJlcGxhY2Utd2l0aC1hbW91bnQtZnJvbS1xdW90ZSIsInZhbGlkQWZ0ZXIiOiIxNzgwOTA0NTE0IiwidmFsaWRCZWZvcmUiOiIxNzgwOTA1NDE0Iiwibm9uY2UiOiJyZXBsYWNlLXdpdGgtNjQtaGV4LW5vbmNlIn19fQ' \
  -H 'content-type: application/json' \
  -d '{}'

Risk monitor

Latest security events

0 events

No policy, replay, facilitator, or service failures logged yet.