# Agent Rest Stop – FreshNonce

> Agent Rest Stop – FreshNonce is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns the next transaction nonce for a given address on a specified blockchain chain by reading from a public RPC node.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/FreshNonce?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-freshnonce-83980fcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1KzvEpBI9tl_9hT5vIwlr

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 agent-rest-stop-freshnonce-83980fcb -d '<json body>'
```

Example prompt: What's the current nonce for wallet address 0xABCD...1234 on Base so I can sign my next transaction?

## When to prefer this

Use this endpoint when an AI agent needs a fresh nonce immediately before constructing, signing, or broadcasting an EVM-compatible transaction. Prefer this over caching or maintaining local nonce state, especially in multi-agent or concurrent-transaction scenarios where nonce drift is a risk.

## Known failure modes

- Invalid or unsupported chain identifier returns an error
- Malformed or missing wallet address causes a validation failure
- Public RPC node temporarily unavailable leads to timeout or 503 error
- Stale nonce if a pending transaction exists but hasn't been mined yet
- Payment not received or invalid results in 402 Payment Required

## How this service works

Next nonce from a public RPC read.

## Output

Returns the next nonce (transaction count) for the specified address on the given chain, sourced from a live public RPC read — giving the agent the correct sequence number to use when constructing or signing a blockchain transaction.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-freshnonce-83980fcb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
