# Spraay Gateway Transaction History

> Spraay Gateway Transaction History is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-13).

Retrieves paginated on-chain transaction history for a given wallet address

## Facts

- Endpoint: GET https://gateway.spraay.app/api/v1/analytics/txhistory
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-spraay-app-9b3b1d03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XwVAqF0iOFRtPD8CvF3XA

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 gateway-spraay-app-9b3b1d03
```

Example prompt: Can you pull the last 20 transactions for wallet address 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU so I can see its recent on-chain activity?

## When to prefer this

Use this endpoint when you need a straightforward list of on-chain transactions for a specific wallet address, especially within the Spraay gateway ecosystem that supports x402 micropayments. Prefer this over a full analytics suite when you only need raw transaction records without additional enrichment or tax categorization (use the sibling IRS 8949 endpoint for tax reporting).

## Known failure modes

- Missing required 'address' query parameter returns a 400 or validation error
- Invalid or malformed wallet address may return empty results or an error
- Payment not made (x402 protocol) results in a 402 Payment Required response
- Exceeding rate limits returns a 429 Too Many Requests error
- Address with no history returns an empty transactions array

## How this service works

Transaction history.

## Output

An array of transaction records associated with the queried wallet address, each entry describing on-chain activity such as transfers, swaps, or contract interactions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "limit": {
       "type": "string"
      },
      "address": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "transactions": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-spraay-app-9b3b1d03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
