SOVRx402

Overview

How the agent SDK, x402 gateway, and deposit-backed credit contracts fit together.

QuickstartSet up your local integration.Agent ExplorerRead an onchain credit record.

What SOVRx402 does

SOVRx402 adds registration, a refundable token deposit, a score, and an on-chain debt limit to an x402 payment gateway. A registered agent can prepay for a resource or authorize credit when its remaining limit covers the call.

Prepayment uses the official x402 exact EVM scheme. Credit authentication, scoring, debt, and result recovery are SOVRx402 extensions; an ordinary x402 client does not automatically implement them.

Components and responsibilities

ComponentResponsibility
BaseAgent SDKSigns resource requests and x402 authorizations; exposes registration, repayment, deposit withdrawal, and allowance management.
GatewayAuthenticates callers, prepares JSON resources, coordinates payment or debt, and stores recoverable results.
FacilitatorVerifies x402 payment payloads and broadcasts supported token settlements. This is a separate service.
SOVRx402RegistryHolds deposits, records scores and payment IDs, and calculates the credit limit.
CreditLedgerEnforces the debt ceiling, records the due time, accepts repayment, and enables overdue default.
Website explorerReads public contract views through a separate read-only path. Website /api/agent is not gateway /status.

Supported environments

EnvironmentNetworkPayment token and method
robinhoodLocalLoopback Anvil, chain ID 4663Locally deployed MockUSDC, 6 decimals; EIP-3009 authorization.
robinhoodMainnetRobinhood, chain ID 4663USDG, 6 decimals; Permit2 settlement.

Available resources

The default alpha handler returns a fixed example string. /alpha validates payment and credit behavior; it is not an external AI integration or a production inference service.

The deployed address-snapshot handler returns the authenticated payer's on-chain balances and credit state at a selected block. /resources/:name, /results/:id, and matching SDK support completed bounded mainnet acceptance, including paid delivery and free result retrieval after restart.

Availability and evidence

The gateway is operating. The 2026-09-08 acceptance records HTTP 200 with status ok and paymentsPaused=false. Paid APIs retain gateway access control and wallet authentication; the website explorer is public and read-only.

The mainline acceptance records 13 successful transactions, verified through two RPC sources: registration, prepaid delivery, scoring, credit delivery, repayment, allowance revocation, and deposit withdrawal. Cold-restart retrieval did not create new transactions. This is controlled acceptance, not an independent security audit or an unlimited subsidy commitment.

Commercial pricing: Not announced. Historical microtest amounts are test parameters, not a tariff.

Documentation
OverviewOverview

How the agent SDK, x402 gateway, and deposit-backed credit contracts fit together.

OverviewWhat SOVRx402 does

SOVRx402 adds registration, a refundable token deposit, a score, and an on-chain debt limit to an x402 payment gateway. A reg

OverviewComponents and responsibilities

BaseAgent SDK Signs resource requests and x402 authorizations; exposes registration, repayment, deposit withdrawal, and all

OverviewSupported environments

Local and mainnet share chain ID 4663. Verify the RPC endpoint and node identity as well as the chain ID. BaseAgent is a reta

OverviewAvailable resources

The default alpha handler returns a fixed example string. /alpha validates payment and credit behavior; it is not an external

OverviewAvailability and evidence

The gateway is operating. The 2026-09-08 acceptance records HTTP 200 with status ok and paymentsPaused=false. Paid APIs retai

Local quickstartLocal quickstart

Build the SDK from this checkout and connect a local agent without using mainnet funds.

Local quickstartPrerequisites

Run commands from the SOVRx402 repository root with Node.js, npm, and the repository dependencies already available. These in

Local quickstartPrepare local configuration

For a first setup, create .env.robinhood.local from the local example without replacing an existing file. Fill PRIVATE_KEY, F

Local quickstartStart the local services

Use separate terminals for the long-running node, facilitator, and gateway. Start a node only when its port is free; reuse an

Local quickstartConnect the built SDK

This Node example reads only .env.robinhood.local and performs setup and status reads. Place it at the repository root. It re

Local quickstartMake one local prepaid call

This optional fragment belongs inside main() after setup, using the same verified local agent. It sends local registration/ap