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": "",
"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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 305 ms | - |
| 8 h ago | Passed | 402 | 275 ms | - |
| 12 h ago | Passed | 402 | 334 ms | - |
| 15 h ago | Passed | 402 | 119 ms | - |
| 19 h ago | Passed | 402 | 287 ms | - |
| 22 h ago | Passed | 402 | 306 ms | - |
| 26 h ago | Passed | 402 | 292 ms | - |
| 29 h ago | Passed | 402 | 313 ms | - |
| 33 h ago | Passed | 402 | 308 ms | - |
| 36 h ago | Passed | 402 | 288 ms | - |
| 40 h ago | Passed | 402 | 282 ms | - |
| 44 h ago | Passed | 402 | 283 ms | - |
| 47 h ago | Passed | 402 | 286 ms | - |
| 2 days ago | Passed | 402 | 285 ms | - |
| 2 days ago | Passed | 402 | 279 ms | - |