# Solana x402 Transaction History API

> Solana x402 Transaction History API is a paid API for AI agents from solana-x402-xi.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Retrieves on-chain transaction history for a specified blockchain address, filterable by sender, receiver, sort order, and count, with payment via x402 USDC micropayment.

## Facts

- Endpoint: POST https://solana-x402-xi.vercel.app/api/v1/tx-history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-x402-transaction-history-api-5013aa4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eY2KC361l7BhkBFf4kwUq

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 solana-x402-transaction-history-api-5013aa4c -d '<json body>'
```

Example prompt: Pull the last 50 transactions sent to 0xAbC123...def on Base, sorted from newest to oldest.

## When to prefer this

Choose this endpoint when you need on-chain transaction history for EVM-compatible chains (Ethereum, Base, Polygon, Arbitrum) with flexible filtering by sender, receiver, sort order, and count. It is particularly useful when you want micropayment-gated access ($0.01 USDC per call via x402) without a subscription, and when you need fast, per-request lookup of wallet or contract activity rather than streaming or webhook-based monitoring.

## Known failure modes

- Missing required 'chain' query parameter returns a validation error
- Invalid or unsupported chain name results in an error response
- Payment failure or insufficient USDC balance causes x402 payment rejection
- Malformed wallet address yields no results or an error
- maxCount outside the 1-1000 range may be rejected or clamped
- Rate limiting or network congestion may cause timeouts

## How this service works

Blockchain data APIs with x402 payments on Solana + Base via PayAI facilitator. 7 endpoints covering bridge routing, whale alerts, DeFi yields, RPC, NFT, token, and transaction history.

## Output

Returns a list of on-chain transactions matching the specified filters, including sender and receiver addresses, amounts, timestamps, and transaction hashes for the requested chain and address criteria.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain name (e.g. ethereum, base, polygon, arbitrum)"
      },
      "order": {
       "type": "string",
       "description": "Sort order: asc or desc"
      },
      "maxCount": {
       "type": "number",
       "description": "Max results (1-1000)"
      },
      "toAddress": {
       "type": "string",
       "description": "Filter by receiver address"
      },
      "fromAddress": {
       "type": "string",
       "description": "Filter by sender address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-x402-transaction-history-api-5013aa4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from solana-x402-xi.vercel.app](https://www.zero.xyz/host/solana-x402-xi.vercel.app/llms.txt)
