RHSOL
Get $TOLL

Seller dashboard

Your payments through Toll's facilitator: who paid, how much, what was refused and why, and a signed webhook on every settle. Only your own payTo.

Sign in as the seller

Sign in with the wallet your x402 payments are paid to (the payTo). A smart-contract wallet (ERC-1271) signs in the same way. If your payTo is an agent’s wallet, sign in as the agent’s owner: a box for its agent id shows once you are signed in.

Signing proves you own the address. It approves nothing and moves no funds.

Webhook event format and how to verify itheaders, body, a verify snippet

Each POST carries content-type: application/json, x-toll-event, x-toll-delivery (the event id), x-toll-timestamp (unix seconds) and x-toll-signature: sha256=<hex>, the HMAC-SHA256 of <timestamp>.<raw body> with your secret. Answer any 2xx within 5 s; redirects are not followed. Refuse a timestamp older than 5 minutes. An event that fails is tried 3 times (now, after 10 s, after 60 s) and waits through a restart of our server; the same event can reach you more than once, always with the same x-toll-delivery, so act on each id once. A webhook is a signal: for the truth, read the receipt.

The event
{
  "id": "evt_3f1c…",                 // the same on every retry: dedupe on it
  "type": "settle.succeeded",        // or "settle.refused", or "test"
  "created": 1763300000,             // unix seconds
  "network": "eip155:4663",
  "data": {
    "payTo": "0x…", "payer": "0x…",
    "asset": "0x5fc5…d168", "amount": "10000", "amountUsdg": "0.01",
    "resource": "https://your-api.example/paid",
    "transaction": "0x…",            // null on a refusal
    "receiptId": "0x…", "receiptUrl": "https://x402.t0ll.xyz/receipt/0x…",
    "payee8478": "verified-wallet",
    "reason": null, "message": null  // a refusal: e.g. "payto_daily_cap" and its words
  }
}
Verify it (Node)
// Node: verify a Toll webhook (use the RAW body, before any JSON parsing)
import { createHmac, timingSafeEqual } from "node:crypto";

export function fromToll(rawBody, headers, secret) {
  const ts = Number(headers["x-toll-timestamp"]);
  const sig = String(headers["x-toll-signature"] ?? "").replace(/^sha256=/, "");
  if (!Number.isSafeInteger(ts) || Math.abs(Date.now() / 1000 - ts) > 300) return false;
  const want = createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest();
  const got = Buffer.from(sig, "hex");
  return got.length === want.length && timingSafeEqual(got, want);
}
Verify it (Python)
# Python
import hmac, hashlib, time
def from_toll(raw_body: bytes, headers, secret: str) -> bool:
    ts = int(headers.get("x-toll-timestamp", "0"))
    sig = headers.get("x-toll-signature", "").removeprefix("sha256=")
    if abs(time.time() - ts) > 300: return False
    want = hmac.new(secret.encode(), f"{ts}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, sig)

The endpoint must be a public https host on port 443 (no IP address, nothing inside a private network); it is checked when you save it and again before every delivery.

From codesave, rotate or remove the webhook with one signed message

An agent can do all of this without a browser. Three steps, no cookie:

  1. GET /api/facilitator/webhook/nonce?payTo=&action=set&url=&events= answers a short message to sign, its nonce and when it expires (10 minutes).
  2. Sign that message as it is (EIP-191 personal_sign) with the payTo wallet. A smart-contract wallet (ERC-1271) works. If the payTo is an ERC-8004 agent’s wallet, the agent’s owner can sign instead: add agent=<id> to step 1 and agent and signer to step 3.
  3. POST /api/facilitator/webhook with {payTo, action, url, events, nonce, signature}. The signing secret comes back once. action is set, rotate (a new secret for the saved URL) or delete.

The message names the payTo, the action, the URL and the events, and each nonce works once. A signature for one URL cannot save another. The same checks apply as on this page.

TypeScript (viem)
// TypeScript (viem): save your webhook from code, no browser, no cookie
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PAYTO_KEY as `0x${string}`); // the payTo wallet
const API = "https://x402.t0ll.xyz/api/facilitator/webhook";
const ask = { payTo: account.address, action: "set", url: "https://your-server.example/toll-webhook",
  events: "settle.succeeded,settle.refused" };

// 1. get the nonce and the exact message
const n = await (await fetch(`${API}/nonce?${new URLSearchParams(ask)}`)).json();
// 2. sign it (EIP-191 personal_sign), byte for byte as returned
const signature = await account.signMessage({ message: n.message });
// 3. send it: the HMAC secret comes back ONCE, keep it on your server
const r = await (await fetch(API, { method: "POST", headers: { "content-type": "application/json" },
  body: JSON.stringify({ ...ask, events: n.events, nonce: n.nonce, signature }) })).json();
console.log(r.secret);
curl
# 1. the nonce and the message to sign
curl "https://x402.t0ll.xyz/api/facilitator/webhook/nonce?payTo=0xYOUR_PAYTO&action=set&url=https://your-server.example/toll-webhook&events=settle.succeeded"
# 2. sign .message with the payTo wallet (personal_sign); 3. send it
curl -X POST https://x402.t0ll.xyz/api/facilitator/webhook -H 'content-type: application/json' \
  -d '{"payTo":"0xYOUR_PAYTO","action":"set","url":"https://your-server.example/toll-webhook","events":["settle.succeeded"],"nonce":"<nonce>","signature":"0x<signature>"}'
# rotate the secret: action=rotate (no url/events); remove: action=delete, or DELETE with the same body
Seller dashboard · Toll