{"uid":"cap_AS5tnh2-F6ZWf-QobhOh5","slug":"rwapact-rwa-trade-risk-evaluation-47e69ace","name":"RWAPACT — RWA Trade Risk Evaluation","description":"Five-Layer Risk Middleware for RWA Agent Trading on Robinhood Chain (#4663).","url":"https://rwapact.app/api/pact/evaluate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4xVXYrKXlRZBI45euvEMA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-trade risk gate for autonomous agent","prompt":"My trading agent wants to buy $10,000 of TSLA on Robinhood Chain — before it executes, run a RWAPACT risk evaluation with pool liquidity of $500,000, current TSLA holding of $15,000, and a total portfolio of $250,000. Only proceed if it comes back APPROVED."},{"title":"After-hours override safety check","prompt":"I want to force a $3,000 SPY trade outside market hours — can you run the RWAPACT pact check with forceAllowOffHours enabled, pool liquidity $80,000, zero current SPY holdings, and a $60,000 total portfolio, and tell me the risk tier before I approve it?"},{"title":"Portfolio concentration risk check","prompt":"Before my agent places a $25,000 AAPL trade, evaluate it through RWAPACT — pool liquidity is $1,000,000, I already hold $40,000 in AAPL, total portfolio is $150,000 — I need to know the risk score and whether it hits HIGH tier."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:32:47.958Z","isFirstParty":false,"canonicalSlug":"rwapact-rwa-trade-risk-evaluation-47e69ace"}