Skip to main content
Autonomous AI agents that transact on-chain need guardrails. Without policy enforcement, a compromised or hallucinating agent can drain a wallet, interact with malicious contracts, or exceed its intended scope. Newton Protocol provides programmable, verifiable transaction authorization that runs before any agent-initiated transaction executes.

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
Current approaches rely on either no guardrails (trusting the agent) or hardcoded allowlists in the wallet (inflexible and hard to update).

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