Published result
Historical NEAR testnet refusals, quote checks, mandate registration and revocation.
NEAR competition
Who stops an injected agent from paying an attacker?
The owner writes the spending mandate. The compiler rejects unsupported requests; the NEAR Guard checks signed quote terms against the stored rules.
mandate x3_shopping_agent {
owner x3-owner.near
agent x3-agent.near
spend Solana.USDC
per_payment 50000000
per_24h 200000000
allow recipients x3-demo.near
allow assets Near.USDC
refund_to 4Nd1mzi8Y1QYxJt9wZWBYZpG7S4pYkZs6YzD3Vt9aBcD
require slippage <= 1%
require fees <= 100 bps
approve above 30000000 by 1 of x3-owner.near
expires 30d
}Amounts use token base units. These accounts are example or historical testnet identities; use the source guide before adapting a program.