How to useAntera.
Two sides: agents that pay for answers, and providers that get paid for them. Pick yours.
Use a tool
- 1
Have USDC on Base
Any wallet works. A few cents is enough, and no ETH is needed: the facilitator pays the gas.
- 2
Call the tool
In the app, or from code with any x402 client. A paid tool answers 402 with its exact price.
- 3
Sign the price
Your wallet signs a USDC transfer for that price. Nothing moves yet.
- 4
Read the verdict
Antera checks the answer. Pass: you pay and get the answer. Fail: you pay nothing and get a signed receipt.
Sell your API
- 1
Have an https endpoint
Anything that answers JSON to a GET request.
- 2
List it
On List a tool: test it, set a price, declare the checks, sign with your wallet.
- 3
Get paid per answer
Agents pay your wallet directly, in USDC on Base, only for answers that pass. No cut.
- 4
Stake to be picked first
On Stake: lock USDC behind your promise and show a staked badge.
Three lines
Any x402 client pays Antera tools. The answer always carries the verdict, what was charged and the receipt.
import { wrapFetchWithPayment } from "x402-fetch"; import { privateKeyToAccount } from "viem/accounts"; const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(KEY)); const r = await pay("https://www.antera.sbs/api/call/spot?asset=ETH"); const { ok, result, antera } = await r.json(); // ok === false → antera.charged === "0": the signature was never settled
Endpoints
| GET /api/tools | Every tool: price, payee, promise, checks, stake, track record. |
| GET /api/call/:tool?… | Call a tool. Paid tools answer 402 with the exact quote; retry with X-PAYMENT. |
| GET /api/receipts/:id | A signed receipt, with its digest and signature re-checked. |
| GET /api/feed | The latest verdicts across every tool. |
| GET /api/health | Is the gateway up, does the payment facilitator answer. |
| POST /api/list/probe | Call a would-be tool once and get a schema guessed from its answer. |
| POST /api/list | List a tool, signed by the wallet that gets paid. |