The Problem
AI agents operating on-chain face unique risks:- Unbounded spending — an agent with wallet access can send any amount to any address
- Scope creep — an agent authorized for one task (e.g., swap tokens) might attempt unrelated actions
- No audit trail — you cannot easily verify why an agent made a specific transaction
- Prompt injection / manipulation — adversarial inputs can cause agents to take unintended actions
How Newton Solves It
Newton evaluates every agent-initiated transaction against a policy before execution. The policy is a Rego program that encodes your guardrails — what the agent can do, how much it can spend, and which contracts it can interact with.Per-Transaction Spending Limits
Contract Allowlists
Restrict the agent to interacting with approved contracts only:Function-Level Restrictions
Limit which contract functions the agent can call:Time-Based and Rate Limiting
Use a WASM data oracle to track recent agent activity and enforce rate limits:Architecture for Agent Wallets
The agent wallet inherits from NewtonPolicyClient. Every transaction the agent attempts must pass policy evaluation. The agent itself never has direct access to execute arbitrary transactions.Policy Patterns for AI Agents
Why Newton for Agent Security
Get Started
Quickstart
Simulate your first policy evaluation in 5 minutes
Write Agent Policies
Author Rego rules for spending limits, allowlists, and rate limiting
Secure Your Agent Wallet
Add NewtonPolicyClient to your agent’s smart contract wallet