# 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-14).

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

## Facts

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

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-06646b59
```

Example prompt: Give me a fortune reading from the Node4All x402 demo — I want to see a deterministic fortune generated from my payment nonce, along with a lucky number and lucky color.

## When to prefer this

Use this endpoint when you want to demo or test the x402 v2 micropayment protocol on Base mainnet using Coinbase CDP as the facilitator, and want a lightweight, fun, non-destructive paid API call. It is ideal for validating that your x402 payment stack works end-to-end for just $0.002 USDC. Not suitable for production fortune-telling or serious data needs.

## Known failure modes

- Payment not authorized: x402 handshake fails if USDC balance is insufficient or wallet is not connected — returns 402 Payment Required
- Invalid payment nonce: if the nonce cannot be resolved deterministically, fortune generation may fail
- Network mismatch: endpoint expects Base mainnet (eip155:8453); wrong network returns an error
- Rate limiting or node downtime: service may return 503 or timeout if the Node4All backend is unavailable

## How this service works

Node4All provides everything you need to build payment-ready AI agents with x402, including step-by-step documentation, testing tools, code examples, and ready-to-use services.

## Output

A JSON object containing a fortune string (e.g. 'Your seed phrase is safe. Your secrets, less so.'), an energy descriptor (e.g. 'Gentle persistence'), a lucky number (integer), a lucky color, the network label (base-mainnet), the protocol version (x402-v2), the facilitator (coinbase-cdp), and service metadata like endpoint name and website URL.

## 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-06646b59/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)
