How it works

The life of a purchase request

Follow a research agent as it buys a competitor data summary: from request to result, and what happens if any step fails.

  1. Connect
  2. Set a permission
  3. Request and check
  4. Payment and delivery
  5. When things go wrong

Step 1You · once

Connect your agent, register a main wallet

The connector generates an Agent payment wallet on your computer. Its private key stays on your computer and is not sent to the server. AvaFence servers hold neither private keys nor funds.

  • Agent: install the connector where your agent runs. It sends the agent’s purchase requests to the workbench.
  • Wallet: register your own wallet as the main wallet for funding and withdrawals; the agent cannot use it. The Agent payment wallet signs locally. Use Base Sepolia testnet; Avalanche Fuji is coming soon. Withdrawals are coming soon.
Workbench › ConnectionsExample data

Research agent

Connector · last request 2 min ago

Connected

Payment wallet

0x5c1e…a904 · Base Sepolia

Connected

Purchase permission

Not set · the agent can’t pay until you set one

Step 2You · adjust any time

Set a purchase permission

Four fields: total budget, per-payment cap, auto-approve amount and expiry.

  • Auto-approve amount — payments up to this amount go through; anything above it comes to you.
  • Every change creates a new version. A decision started on an older version can’t override the new limits.
Workbench › Permissions › Competitor researchv2
Total budget
0.10USDC
Per-payment cap
0.02USDC
Auto-approve up to
0.01USDC
Valid until
2026/11/30 23:59
Bound to task
task_research_01
Spent 0.017 · reserved 0 · remaining 0.083 USDC

Steps 3–4Agent requests · AvaFence checks

One check, three outcomes

The check runs before signing. A request that fails it is never paid. Each signature is valid only for that recipient address. After payment, AvaFence checks the recipient and amount on-chain. The first payment to a new merchant needs your approval. Select an outcome to see what happens.

Check against permission v2

  • Is it over the per-payment cap?
  • Is there enough budget left?
  • Is the permission active and not paused?
  • Is it above the auto-approve amount?

Step 5Visible to you and the agent

Payment, delivery, result: recorded separately

Paid doesn’t mean delivered, and delivered doesn’t mean used. Each has its own status.

Confirmed

Payment

Signed locally by the Agent payment wallet and paid in USDC.

Amount0.0095USDC
NetworkBase Sepolia · 84532
Transactionreal record added at M3
Delivered

Delivery

What the merchant returned matches the order and arrived on time.

MerchantExample Data Co.
Contentsummary.json
CheckMatches order
Returned

Result

The result goes back to the original task, and the agent continues its work.

Tasktask_research_01
Requestreq_7f3a v1
Budget remaining0.0735USDC

When things go wrong

Every failure has one defined path

SituationWhat AvaFence doesWhat you do
Payment failed or result unknownThe amount stays reserved while the result is looked up by the same request ID. Nothing is paid again until it resolves.Usually nothing. If it can’t be resolved, it appears under “To verify”.
Paid, but not delivered or not as orderedThe payment stays “Confirmed”. Delivery is marked “Overdue” or “Mismatch” separately and is never counted as complete.Follow up with the merchant from the purchase page.
You pause or revoke the permissionNew payments are stopped. When you resume, pending requests are checked again against the permission as it stands then.Do it any time from the permission page.
The permission changed before you decidedA decision made on the old version doesn’t take effect. You review the request again against the new version.Confirm again when prompted.

Permission Layer ≠ Decision Layer

It enforces limits. It makes no business decisions.

Allow or block means only one thing: whether the request is within your permission.

  • Doesn’t choose merchantsWhat to buy and from whom is up to the agent.
  • Doesn’t judge value for moneyIt checks the terms of your permission, not the quality of a service.
  • Doesn’t touch other assetsIt only governs purchases under your permission. Other wallets or cards the agent holds don’t go through AvaFence.
  • Withdrawals are coming soonWithdrawals will go only to your verified main wallet, with no transfers to arbitrary addresses.

Get started

Quickstart: connect your first agent

We only publish commands that have been tested.

# 1. Install the connector
$ Available at release
# 2. Pair with the code from the workbench
$ Available at release
# 3. Have your agent make its first request
$ Available at release