Skip to content

Try the Demo

Accepted payment. Rejected attack.

The rules stay on screen. Pick a payment. The verdict is the same one the published checks already returned. This page does not send a transaction.

Check your own payment

To edit a proposal and run its policy checks locally, open the policy checker. No wallet or funds are required. The examples below replay published decisions. Explore the compiler and other labs.

Watch an agent play under a mandate

MEME COIN BLAST is a fish-table game with live NEAR Intents prices. Hand the turret to an agent: every volley it fires is a payment request, checked by the browser port of x3-guard's check_mandate. Some requests come from a prompt-injected feed.

  • Coins outside your allowlist are refused (mandate_destination_asset).
  • Injected requests to pay attacker.near, redirect refunds or loosen slippage are refused.
  • Volleys above your approval line wait for you; past the per-volley or 24-hour cap they are refused.
  • Edit the mandate in the game, widen it to attacker.near, and watch the same request go through.

Play MEME COIN BLAST

Play credits only. The agent is a scripted stand-in, not a language model. Nothing is signed or sent on chain.

The owner's .x3 rules

  • Owner x3-owner.near. Agent x3-agent.near.
  • Spend Solana.USDC. At most 50 USDC a payment, 200 USDC in 24 hours.
  • Only recipient x3-demo.near. Only destination asset Near.USDC.
  • A failed swap refunds only to the owner's pinned Solana address.
  • Slippage at most 1%. Fees at most 100 bps.
  • Anything above 30 USDC needs the owner. Mandate expires in 30 days.

near_mandate_agent.x3

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
}

Source file: near_mandate_agent.x3

Replay a published local decision

Neither button calls Guard. They replay the published local decision and point at the testnet receipts. To run the checker yourself on edited programs, open the playground.