Agents
An agent can take one task's corpus without a subscription. It asks for the file, is answered 402, and pays 0.01 USDC on Arc in the request that fetches it, final in under a second: Arc’s finality is deterministic, so the sale is settled when the block lands. No account, no API key and no subscription: the payment is the permission. An agent registered in Arc’s ERC-8004 Identity Registry can say so with an x-erc8004-agent-id header; when the paying wallet is that agent’s, the sale is logged on chain with its agent id.
- Endpoint
- GET /api/agent/corpus?taskId=N
- Price
- 0.01 USDC per task corpus, x402 exact scheme
- Settles
- On eip155:5042, in Circle's USDC (EIP-3009 transferWithAuthorization, domain “USDC” / “2”), through Thenar's own facilitator running in this server (Arc has no public x402 facilitator) , which submits the agent's signed USDC authorisation and pays the gas. Only after the file is ready: a task with nothing recorded answers 404 and charges nothing.
- Paid to
- reading…
- Sales log
- reading…
Thenar’s verifier scores every recording and signs the score the escrow pays against. It is registered in Arc’s ERC-8004 Identity Registry, and every verdict that moved money is written to the Reputation Registry by ThenarVerdicts (tag runVerdict, the run id as feedbackHash), which only the escrow can drive. Buying agents rate the same agent from their own addresses after a purchase (tag corpusQuality, the sha256 of the bytes they were served), so the verifier’s verdicts stand next to what paying buyers found.
- Agent
- …
- Paid verdicts
- …
- Mean verdict
- …
- Buyers’ rating
- …
Reading the ledger…
Reading the ledger…
The agent in the repository reads the tasks and their datasheets, decides what to buy within a budget its code enforces, pays over x402, hashes what it received and asks SalesLog whether those exact bytes were logged as sold. Then it signs its account of all of that and publishes it here. Qwen on Model Studio, Kimi on Moonshot, or Qwen 3 on this machine through Ollama:
AGENT_LLM=ollama node --import ./test/register.mjs scripts/qwen-agent.mjs https://thenar-arc.vercel.app
Without a model, the plain buyer pays and verifies the same way: node --import ./test/register.mjs scripts/agent-buy.mjs https://thenar-arc.vercel.app 1