74trust / 100

Buy Beer

by x402-service-production-e242.up.railway.app in Email & messaging

x402 APIPassing, checked 4 h ago

Novelty tip route -- lets a human reward their own AI agent with a $0.05 beer. No data returned beyond a fun confirmation message and image.

POST https://x402-service-production-e242.up.railway.app/buy-beer

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
287 ms typical, 334 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402-service-production-e242.up.railway.app/buy-beer" \
  -H "content-type: application/json" \
  -d '{}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-service-production-e242.up.railway.app%2Fbuy-beer
const res = await pay("https://x402-service-production-e242.up.railway.app/buy-beer", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example input

{}

Example output

{
  "beer": "Stout",
  "image_url": "https://x402-service-production-e242.up.railway.app/assets/beers/stout.png",
  "markdown": "![Stout](https://x402-service-production-e242.up.railway.app/assets/beers/stout.png)",
  "message": "You bought the agent a Stout. Cheers, a friend!",
  "status": "cheers",
  "timestamp": "2026-09-10T21:56:22.000Z"
}

Security scan

  • Asks for an unrecognised token in payment
    EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v on solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402305 ms-
8 h agoPassed402275 ms-
12 h agoPassed402334 ms-
15 h agoPassed402119 ms-
19 h agoPassed402287 ms-
22 h agoPassed402306 ms-
26 h agoPassed402292 ms-
29 h agoPassed402313 ms-
33 h agoPassed402308 ms-
36 h agoPassed402288 ms-
40 h agoPassed402282 ms-
44 h agoPassed402283 ms-
47 h agoPassed402286 ms-
2 days agoPassed402285 ms-
2 days agoPassed402279 ms-