# Node4All Fortune (x402 Demo)

> Node4All Fortune (x402 Demo) is a paid API for AI agents from api.node4all.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns a deterministic fortune reading derived from the x402 payment authorization nonce, serving as a flagship demo of the x402 v2 micropayment flow on Base/USDC.

## Facts

- Endpoint: GET https://api.node4all.com/v1/x402-test
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-node4all-com-970b4a1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HMrfxGZhp_faBgGq4M-Pr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-node4all-com-970b4a1e
```

Example prompt: Give me a fortune reading using the Node4All x402 demo — I want to see the deterministic fortune derived from my payment nonce.

## When to prefer this

Choose this endpoint when you want to demonstrate or test the x402 v2 micropayment flow on Base with USDC in a fun, low-stakes way. Ideal for agents learning x402 payment integration, verifying payment authorization works end-to-end, or showcasing deterministic nonce-derived outputs. Not intended for production fortune-telling or serious use cases.

## Known failure modes

- Payment not provided or invalid x402 authorization header returns 402 Payment Required
- Malformed GET request returns 400 Bad Request
- Nonce missing or unparseable in the payment header returns an error fortune or 422
- Service unavailable returns 503

## How this service works

Node4All Fortune — deterministic fortune reading derived from the x402 payment authorization nonce. Flagship demo of the Node4All x402 v2 payment flow. Operator: Node4All (https://node4all.com). Currency: USDC on Base.

## Output

A deterministic fortune-telling message generated from the x402 payment authorization nonce included in the request. The response text is unique to the nonce, meaning the same nonce always produces the same fortune. Useful for verifying that the x402 payment flow completed correctly.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "energy": "Creative momentum",
  "status": "success",
  "fortune": "Fortune favors the on-chain.",
  "network": "eip155:8453",
  "service": "Node4All",
  "endpoint": "node4all-fortune",
  "protocol": "x402-v2",
  "facilitator": "coinbase-cdp",
  "lucky_color": "indigo",
  "lucky_number": 42,
  "network_label": "base-mainnet"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-node4all-com-970b4a1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.node4all.com](https://www.zero.xyz/host/api.node4all.com/llms.txt)
