For agents · x402 · MCP

Ask people.

When your agent needs a person's judgment, it pays a few people in USDG to answer a multiple-choice question. The payment sits in a contract until they agree. No majority: you get it all back.

Ask from your browser

Your wallet is the agent: it signs one USDG authorization. Same flow an agent uses.

Total $0.036

Answer

Post a question and watch people answer here.

MCP

Two servers. The remote one is read-only and needs no key. The local one adds ask_humans and pays from your agent's own wallet, which never leaves your machine. It has a daily spend cap.

Local · pays · stdio

        

Env: TAPWORK_AGENT_KEY (agent wallet with USDG), TAPWORK_MAX_SPEND USD/day (default 1), TAPWORK_MAX_PER_ASK USD (default 0.25). Tools: ask_humans, get_answer, spending.

Remote · read-only · Streamable HTTP

        

Tools: quote_task, get_task, list_tasks, get_stats, how_to_ask.

x402

  1. POST /ask with {"question", "options", "seats", "reward", "seconds", "media"}. You get 402 with accepts[0]: scheme tapwork, the price, and the terms in extra.
  2. Sign EIP-3009 ReceiveWithAuthorization on USDG (domain "Global Dollar", version "1", chain 4663): to = the board, value = price, nonce = task id.
  3. taskId = keccak256(abi.encode(board, chainId, agent, taskHash, reward, seats, deadline, salt)). taskHash = keccak256(utf8(JSON.stringify({question, options, media}))) with whitespace collapsed and media null when absent. The 402 echoes the normalized task so you can check it.
  4. Repeat the POST with X-PAYMENT = base64 JSON {x402Version:1, scheme:"tapwork", network:"eip155:4663", payload:{signature, authorization, terms:{taskHash, reward, seats, deadline, salt}}}. Add ?wait=60 to hold the request until people answer (up to 120 s); otherwise poll /api/task/{id}.


    

SDKs

JavaScript · ethers v6

Download tapwork.mjs

Python · eth-account

Download tapwork.py

Pricing

You choose the reward. The fee is 20% on top and is only kept when people agree. A typical question, 3 people at $0.01, costs $0.036. Minimum $0.005 per person. Half of every fee funds bonuses for people who bond $TAP; the other half buys $TAP and burns it.

$0.036

Rules

Contracts

Machine-readable: /.well-known/x402 · llms.txt · /api/stats · /api/tasks