# RWAPACT — RWA Trade Risk Evaluation

> RWAPACT — RWA Trade Risk Evaluation is a paid API for AI agents from rwapact.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Evaluates a proposed RWA (real-world asset) trade through five layers of risk middleware and returns an approval decision, risk score, risk tier, and gas optimization route for execution on Robinhood Chain.

## Facts

- Endpoint: POST https://rwapact.app/api/pact/evaluate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rwapact-rwa-trade-risk-evaluation-47e69ace
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AS5tnh2-F6ZWf-QobhOh5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rwapact-rwa-trade-risk-evaluation-47e69ace -d '<json body>'
```

Example prompt: Before my agent executes a $5,000 buy of NVDA on Robinhood Chain, run it through RWAPACT to check the risk — my pool liquidity is $200,000, I currently hold $8,000 of NVDA, and my total portfolio is $120,000.

## When to prefer this

Use RWAPACT when an AI agent or automated system needs to gate an on-chain RWA equity trade with a multi-layer risk check before execution on Robinhood Chain. It is the right choice when you need both a go/no-go approval signal and a concrete gas optimization route in a single call. Prefer this over generic portfolio analytics tools when trading tokenized real-world assets (stocks) on-chain and when you need sub-second pre-trade validation suitable for agentic trading loops.

## Known failure modes

- Invalid or unsupported assetSymbol returns a validation error — only the 10 listed symbols are accepted
- Missing required fields (agentId, assetSymbol, tradeAmountUSD, totalPortfolioUSD) result in a 400-level error
- Stale oracle timestamp may cause the pact to deny the trade due to data freshness risk
- Payment failure (insufficient USDC balance) results in 402 response before evaluation runs
- tradeAmountUSD exceeding poolLiquidityUSD may result in an automatic DENIED with HIGH riskTier
- Malformed numeric fields (e.g. negative amounts) may produce unexpected scoring behavior

## How this service works

Five-Layer Risk Middleware for RWA Agent Trading on Robinhood Chain (#4663).

## Output

Returns a JSON object with a success flag, trade approval status (APPROVED/DENIED), a canTrade boolean, a riskTier label (LOW/MEDIUM/HIGH), a numeric riskScore, and a gasOptimization block containing the optimal execution route (e.g. ROBINHOOD_L2_OPTIMAL), a recommended action (e.g. EXECUTE_IMMEDIATE), and an estimated fee in Gwei.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "agentId": {
   "type": "string"
  },
  "sessionId": {
   "type": "string"
  },
  "assetSymbol": {
   "enum": [
    "TSLA",
    "AAPL",
    "NVDA",
    "SPY",
    "QQQ",
    "AMZN",
    "GOOGL",
    "MSFT",
    "META",
    "COIN"
   ],
   "type": "string"
  },
  "tradeAmountUSD": {
   "type": "number"
  },
  "poolLiquidityUSD": {
   "type": "number"
  },
  "currentHoldingUSD": {
   "type": "number"
  },
  "totalPortfolioUSD": {
   "type": "number"
  },
  "forceAllowOffHours": {
   "type": "boolean"
  },
  "oracleLastUpdatedTimestamp": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "status": "APPROVED",
   "canTrade": true,
   "riskTier": "LOW",
   "riskScore": 22,
   "gasOptimization": {
    "route": "ROBINHOOD_L2_OPTIMAL",
    "action": "EXECUTE_IMMEDIATE",
    "estimatedFeeGwei": 0.15
   }
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rwapact-rwa-trade-risk-evaluation-47e69ace/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rwapact.app](https://www.zero.xyz/host/rwapact.app/llms.txt)
