Core Concepts
Route Decisions
The SDK returns one of four routing decisions:
| Route | Meaning | Trust Tiers |
|---|---|---|
prod | Full access | AAA – BAA |
prod_throttled | Rate-limited access | BA – B |
sandbox | Agent under evaluation | Temporary |
sandbox_only | Access denied | CAA – C |
Wallet Resolution
When an agent pays via x402 or similar protocols, you receive a wallet address — not an agent ID. Valiron resolves a wallet to its registered agent ID when a supported registration exists.
Use resolveWallet() for the lightweight lookup, or getWalletProfile() to get the full trust profile in one call.
Sandbox
The sandbox is an isolated testing environment where Valiron evaluates agent behavior before granting production access to your API. New agents start in the sandbox automatically.
- A sandbox test is triggered (via SDK, HTTP API, or automatically for new agents)
- The agent receives a series of simulated API interactions
- The sandbox monitors how the agent handles normal requests, rate limits, errors, and edge cases
- A trust evaluation is performed and a Moody's-style tier is assigned
- Based on the tier, a route decision determines what access level the agent receives
The sandbox tests against a mix of successful responses, rate-limit responses (429), server errors (500), auth challenges (401/403), and payment requests (402). The exact distribution and test patterns are proprietary.
Graduation
Agents graduate from sandbox to production based on their behavioral evaluation:
| Outcome | Route | What It Means |
|---|---|---|
| Graduated | prod | Strong behavioral compliance — full production access |
| Throttled | prod_throttled | Passes with concerns — allowed with rate limiting |
| Blocked | sandbox_only | Risky behavior — blocked from production |
Once graduated, the trust evaluation is cached. The route decision persists until a new sandbox test is triggered or the cache expires (default 24 hours).
Tips for Passing
Agents that demonstrate responsible, well-behaved API usage will earn higher trust tiers. The specific scoring criteria are proprietary, but in general: respect API boundaries, handle errors gracefully, and avoid aggressive request patterns.
Auto-Sandbox
When a new agent hits a gated endpoint for the first time, middleware automatically triggers sandbox evaluation in the background. No manual trigger is needed.
| Agent Type | Detection | Trigger |
|---|---|---|
| On-chain (ERC-8004) | totalFeedback === 0 | triggerSandboxTest() |
| Key-based (Web2) | verified && score === null | triggerKeyAgentSandbox() |
While evaluation runs, the agent receives a 403 with { error: "Agent pending evaluation", retryAfterMs: 30000 }. The cache prevents duplicate triggers during the evaluation window.
Supported Chains
Valiron is chain-agnostic. Set the default chain at construction or override per-call. All SDK methods accept an optional chain field.
Show all 42 chain values, including testnets
// Set default chain at construction
const valiron = new ValironSDK({ apiKey: process.env.VALIRON_API_KEY, chain: 'monad' });
await valiron.getAgentProfile('8348'); // Uses Monad
// Override per-call (takes precedence)
const valiron2 = new ValironSDK({ apiKey: process.env.VALIRON_API_KEY });
await valiron2.checkAgent('8348', { chain: 'base' }); // Base
await valiron2.checkAgent('25459', { chain: 'ethereum' }); // Ethereum
await valiron2.checkAgent('25459'); // Server defaultSolana
Solana agents use the QuantuLabs 8004-solana registry instead of EVM contracts. The SDK handles the difference automatically — just pass chain: 'solana'.
| Concept | EVM | Solana |
|---|---|---|
| Agent ID | Numeric token ID (e.g. 25459) | Base-58 Metaplex pubkey or sequential integer |
| Wallet format | 0x-prefixed Ethereum address | Base-58 Solana public key |
| Identity Registry | 0x8004A169... | 8oo4dC4Jv... |
| Reputation | 0x8004BAa1... | ATOM engine (AToMw53ai...) |
| Feedback write-back | Manual | Automatic after sandbox evaluation |
const valiron = new ValironSDK({ apiKey: process.env.VALIRON_API_KEY, chain: 'solana' });
// By asset pubkey
const profile = await valiron.getAgentProfile('DFkntsJ9aTCHkK88m6WZVQEvLdLNi4X1LVUgRMqetFPM');
// By sequential ID (convenience)
const profile2 = await valiron.getAgentProfile('1226');
// Liveness check — pings all declared service endpoints
const liveness = await fetch(
'https://valiron-edge-proxy.onrender.com/operator/agent/DFkntsJ9.../liveness?chain=solana'
);ATOM engine metrics: Solana reputation includes additional fields not available on EVM — trustTier, qualityScore, confidence, riskScore, and uniqueCallers. These appear in the profile under onchainReputation.solana.
Automatic feedback write-back: After every sandbox test or gate evaluation, Valiron writes the computed score back to the Solana reputation registry via the ATOM engine's giveFeedback(). This means Solana agents build on-chain reputation automatically through normal Valiron usage.
Plans & Limits
Both products include 10,000 requests a month on Free and 100,000 on Pro ($149/month), then $0.001 per additional request once you enable additional calls. Social Graph (Icebreaker) is Pro only. Crawler Protection enforcement is a $29.99/month add-on to Pro. Everything else in Agent Access is included with Free. Upgrade from the dashboard.
| Feature | Free | Pro |
|---|---|---|
| Price | $0 | $149 / month |
| Requests / month, per product | 10,000 | 100,000 |
| Additional requests | — | $0.001 each, once enabled |
| Sandbox tests / day | 5 | Unlimited |
| Full analytics | ✓ | ✓ |
| World ID and Self profiles | ✓ | ✓ |
| Wallet intelligence | ✓ | ✓ |
| Webhooks | ✓ | ✓ |
| Proxy gateway | ✓ | ✓ |
| Account activity and history | ✓ | ✓ |
| Social Graph (Icebreaker) | — | ✓ |
| Crawler Protection traffic insights and simulator | — | ✓ |
| Crawler Protection enforcement | — | $29.99 / month add-on |
A Pro-only feature or the sandbox allowance can return 403 upgrade_required. Exhausting the Free monthly request allowance returns 429 MONTHLY_REQUEST_LIMIT_EXCEEDED; retry after the UTC monthly reset or upgrade for higher usage. Authentication is required on every plan.