Random fortune generator: returns a freshly written one-line fortune every call, paired wi
Random fortune generator: returns a freshly written one-line fortune every call, paired with a lucky number and a lucky HTTP status code for good measure. Priced as the cheapest possible test payment, it doubles as a simple way to confirm a wallet or payment integration is wired up correctly before moving to pricier endpoints. No two calls repeat the same fortune.
1000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-30
updated
Provider
x402.forgemesh.io · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x850363a27F0aC6fEb9C7a3eC4C1d295262dF9432",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"fortune": "He who retries with exponential backoff prospers.",
"lucky_http_status": 402,
"lucky_number": 42
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {},
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"info": {
"required": false
},
"offer-receipt": {
"info": {
"offers": [
{
"acceptIndex": 0,
"format": "eip712",
"payload": {
"amount": "1000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "eip155:8453",
"payTo": "0x850363a27F0aC6fEb9C7a3eC4C1d295262dF9432",
"resourceUrl": "https://x402.forgemesh.io/random-fortune-generator",
"scheme": "exact",
"validUntil": 1788128762,
"version": 1
},
"signature": "0x62719493967cdb3f66334698689f1f0e9c5159bd7858d79600ef99e3857a1d37506fb1cb1798d6e1b7a307bb47d080f7cf3ffa67c676fb01c1e8c782a977f28a1b"
}
]
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"offers": {
"items": {
"properties": {
"acceptIndex": {
"type": "integer"
},
"format": {
"type": "string"
},
"payload": {
"properties": {
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"network": {
"type": "string"
},
"payTo": {
"type": "string"
},
"resourceUrl": {
"type": "string"
},
"scheme": {
"type": "string"
},
"validUntil": {
"type": "integer"
},
"version": {
"type": "integer"
}
},
"required": [
"version",
"resourceUrl",
"scheme",
"network",
"asset",
"payTo",
"amount"
],
"type": "object"
},
"signature": {
"type": "string"
}
},
"required": [
"format",
"signature"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"offers"
],
"type": "object"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}Use it
curl
curl "https://x402.forgemesh.io/random-fortune-generator" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.forgemesh.io/random-fortune-generator");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402.forgemesh.io/random-fortune-generator")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/14258.json, and this resource appears in /discovery/resources and /discovery/search.