Technical reference for querying blockchain datasets via the Pinax API.

Install

mkdir -p .claude/skills/pinax-api && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18064" && unzip -o skill.zip -d .claude/skills/pinax-api && rm skill.zip

Installs to .claude/skills/pinax-api

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Query Pinax API datasets, including Token API for EVM/SVM/TVM token data, prediction markets, and perp exchange data. Use when: integrating with Pinax API, choosing endpoints, building API requests, handling pagination, or discovering supported networks.
254 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Query token data for EVM, SVM, and TVM networks
  • Access prediction market data
  • Retrieve perp exchange data
  • Discover supported blockchain networks and protocols
  • Handle API pagination for large datasets
  • Authenticate API requests with Bearer tokens or API keys

How it works

This skill queries the Pinax API to retrieve various blockchain-related datasets, including token information, market data, and network status, using HTTP requests.

Inputs & outputs

You give it
GET /v1/evm/balances?network=mainnet&address=0x<wallet>&contract=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
You get back
The current balance of WETH for the specified wallet on the Ethereum mainnet.

When to use pinax-api

  • Fetch token price data
  • Access prediction market data
  • Query DEX exchange statistics
  • Integrate blockchain network data

About this skill

Pinax API

Quick reference for AI agents using Pinax API. The authoritative machine-readable contract is GET /openapi.

  • Base URL: https://api.pinax.network
  • OpenAPI spec: GET /openapi — authoritative reference, use for schema details
  • x402 discovery: GET /.well-known/x402 — payment discovery metadata; x402 enforcement is handled at the proxy layer
  • Docs: https://app.pinax.network/docs
  • FAQ: https://app.pinax.network/help
  • Canonical skill file: GET /SKILL.md

All responses are JSON: { "data": [...], ... } for data endpoints, or a top-level object for monitoring. Errors follow { "status": <code>, "code": "<slug>", "message": "<text>" }.

Authentication

Most endpoints require a Bearer token from The Graph Market:

Authorization: Bearer <your-token>

An X-Api-Key: <your-api-key> header is accepted as an alternative.

Unauthenticated endpoints (no header required, no usage charge):

  • GET /llms.txt
  • GET /openapi
  • GET /.well-known/x402
  • GET /SKILL.md
  • GET /v1/health
  • GET /v1/version
  • GET /v1/networks
  • GET /v1/evm/dexes
  • GET /v1/svm/dexes
  • GET /v1/tvm/dexes
  • GET /v1/polymarket/markets
  • GET /v1/hyperliquid/dexes
  • GET /v1/hyperliquid/markets

Errors

Error responses share a common envelope:

{
  "status": 400,
  "code": "bad_query_input",
  "message": "Invalid network ID"
}

Common codes: bad_query_input (400), authentication_failed (401), route_not_found (404), bad_database_response (500), database_connection_failed (503).

Capabilities

Map a goal to the relevant dataset and endpoint family:

  • Token API: look up wallet balances and transfer history/v1/{evm,svm,tvm}/balances, /v1/{evm,svm,tvm}/transfers
  • Token API: track balance changes over time/v1/evm/balances/historical, /v1/evm/balances/historical/native
  • Token API: resolve token metadata/v1/{evm,svm,tvm}/tokens, /v1/{evm,svm,tvm}/tokens/native
  • Token API: find holders of a token/v1/{evm,svm}/holders, /v1/evm/holders/native, /v1/evm/nft/holders
  • Token API: trace DEX swaps and liquidity pools/v1/{evm,svm,tvm}/swaps, /v1/{evm,svm,tvm}/pools, /v1/{evm,svm,tvm}/dexes
  • Token API: get OHLC time-series/v1/{evm,svm,tvm}/pools/ohlc
  • Token API: list a wallet's NFT holdings and activity/v1/evm/nft/ownerships, /v1/evm/nft/transfers, /v1/evm/nft/sales, /v1/evm/nft/items, /v1/evm/nft/collections
  • Prediction Markets: discover markets, OI, and per-user PNL/v1/polymarket/markets, /v1/polymarket/markets/ohlc, /v1/polymarket/markets/oi, /v1/polymarket/markets/activity, /v1/polymarket/users, /v1/polymarket/users/positions, /v1/hyperliquid/outcomes, /v1/hyperliquid/outcomes/ohlc, /v1/hyperliquid/outcomes/trades, /v1/hyperliquid/outcomes/users, /v1/hyperliquid/outcomes/users/positions, /v1/hyperliquid/outcomes/users/activity
  • Perp Exchanges: discover markets, OHLC, OI, liquidations, and per-user PnL/v1/hyperliquid/markets, /v1/hyperliquid/markets/ohlc, /v1/hyperliquid/markets/oi, /v1/hyperliquid/markets/liquidations, /v1/hyperliquid/users, /v1/hyperliquid/users/positions, /v1/hyperliquid/vaults
  • Discover supported chains and protocols (free) — /v1/networks, /v1/{evm,svm,tvm}/dexes, /v1/hyperliquid/dexes

Common patterns

These conventions apply across the data endpoints unless overridden.

Pagination

ParameterTypeDefaultDescription
limitinteger10Items per page. Maximum is plan-restricted (free tier capped lower).
pageinteger1Page number. An empty data array signals end of results.

Batched filters

Any parameter marked "supports multiple" accepts either a repeated query param (?contract=0x..&contract=0x..) or a comma-separated list (?contract=0x..,0x..). This applies to most ID-shaped filters (address, contract, mint, token_id, pool, transaction_id, signature, etc.).

Time ranges

Event and historical endpoints accept either block or time windows:

  • start_time / end_time — ISO 8601 or Unix timestamp (seconds)
  • start_block / end_block — integer block number (slot for SVM)

Intervals

Historical and OHLC endpoints use an interval enum: 1h, 4h, 1d (default), 1w. A few endpoints accept additional values (e.g. /v1/polymarket/users supports 30d); the OpenAPI per-endpoint schema is authoritative.

Network discovery

Call GET /v1/networks first to enumerate supported network IDs (mainnet, base, bsc, solana, tron, …) and see how current each indexer is via indexed_to.

Worked example

Fetch WETH balances for a wallet on Ethereum:

1. GET /v1/networks                              → confirm "mainnet" is indexed
2. GET /v1/evm/tokens?network=mainnet
        &contract=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
                                                 → resolve WETH metadata
3. GET /v1/evm/balances?network=mainnet
        &address=0x<wallet>
        &contract=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
                                                 → current balance
4. GET /v1/evm/balances/historical?network=mainnet
        &address=0x<wallet>
        &contract=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
        &interval=1d&start_time=2026-01-01       → time-series

Monitoring

EndpointRequiredOptionalNotes
GET /v1/health200 when all DBs are up, 503 otherwise
GET /v1/versionVersion, build date, commit
GET /v1/networksnetworkSupported chains + indexed_to per category; network filter is batched

EVM endpoints

Ethereum and compatible chains (Ethereum, Base, BSC, Polygon, Arbitrum, …).

Tokens (ERC-20)

EndpointRequiredOptional
GET /v1/evm/tokensnetwork, contract
GET /v1/evm/tokens/nativenetwork

Balances

EndpointRequiredOptional
GET /v1/evm/balancesnetwork, addresscontract, include_null_balances
GET /v1/evm/balances/nativenetwork, address
GET /v1/evm/balances/historicalnetwork, addresscontract, interval, start_time, end_time
GET /v1/evm/balances/historical/nativenetwork, addressinterval, start_time, end_time

Transfers

EndpointRequiredOptional
GET /v1/evm/transfersnetworktransaction_id, contract, from_address, to_address, start_time, end_time, start_block, end_block
GET /v1/evm/transfers/nativenetworktransaction_id, from_address, to_address, start_time, end_time, start_block, end_block

Holders

EndpointRequiredOptional
GET /v1/evm/holdersnetwork, contract
GET /v1/evm/holders/nativenetwork

DEX / swaps / pools

EndpointRequiredOptional
GET /v1/evm/swapsnetworktransaction_id, transaction_from, factory, pool, caller, user, sender, recipient, input_contract, output_contract, protocol, start_time, end_time, start_block, end_block
GET /v1/evm/dexesnetwork
GET /v1/evm/poolsnetworkfactory, pool, input_token, output_token, protocol
GET /v1/evm/pools/ohlcnetwork, poolinterval, start_time, end_time

Swap response includes several address fields:

  • transaction_from — onchain transaction initiator
  • caller — account or contract that invokes the swap
  • user — normalized user-oriented swap address; prefer this for new integrations
  • sender, recipient — legacy fields, slated for deprecation in a future major release

NFTs

EndpointRequiredOptional
GET /v1/evm/nft/collectionsnetwork, contract
GET /v1/evm/nft/itemsnetwork, contracttoken_id
GET /v1/evm/nft/holdersnetwork, contract
GET /v1/evm/nft/ownershipsnetwork, addresscontract, token_id, token_standard (ERC721 | ERC1155), include_null_balances
GET /v1/evm/nft/transfersnetworktype (BURN | MINT | TRANSFER), transaction_id, contract, token_id, address, from_address, to_address, start_time, end_time, start_block, end_block
GET /v1/evm/nft/salesnetworktransaction_id, contract, token_id, address, from_address, to_address, start_time, end_time, start_block, end_block

SVM endpoints

Solana Virtual Machine chains.

Tokens (SPL)

EndpointRequiredOptional
GET /v1/svm/tokensnetwork, mint
GET /v1/svm/tokens/nativenetwork

Balances

EndpointRequiredOptional
GET /v1/svm/balancesnetwork, ownertoken_account, mint, program_id, include_null_balances
GET /v1/svm/balances/nativenetwork, addressinclude_null_balances

Transfers

EndpointRequiredOptional
GET /v1/svm/transfersnetworksignature, source, destination, authority, mint, program_id, start_time, end_time, start_block, end_block
GET /v1/svm/transfers/nativenetworksignature, source, destination, start_time, end_time, start_block, end_block

Holders

EndpointRequiredOptional
GET /v1/svm/holdersnetwork, mint
GET /v1/svm/holders/nativenetwork

In /v1/svm/holders, th


Content truncated.

When not to use it

  • When needing to perform blockchain transactions
  • When needing to manage blockchain wallets or accounts

Limitations

  • Most endpoints require a Bearer token for authentication.
  • Free tier has limitations on items per page for pagination.

How it compares

This skill provides a unified API interface for diverse blockchain data across multiple networks, unlike querying individual blockchain nodes or disparate data sources.

Compared to similar skills

pinax-api side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
pinax-api (this skill)01moNo flagsIntermediate
MOODY 艺术家大满贯录入 Skill04moReviewBeginner
estoque-inventory01moReviewBeginner
motherduck-partner-delivery01moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

MOODY 艺术家大满贯录入 Skill

zhangjing02

一键通过 iTunes API 录入指定艺术家的完整名录(专辑、歌曲骨架),支持自定义分类与抓取区。

00

estoque-inventory

migueldsants

Gerencia o inventário do mini-ERP Estoque — listar/buscar itens, criar/editar, ajustar quantidade, sinalizar estoque baixo e somar totais via a API REST local.

00

motherduck-partner-delivery

motherduckdb

Deliver repeatable MotherDuck architectures across multiple clients. Use when a consultancy, agency, or multi-client product team needs to standardize isolation, provisioning, regional deployment, sharing boundaries, and client-specific exceptions across client engagements.

00

azure-data-explorer

vinodrex

Expert knowledge for Azure Data Explorer development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when configuring ADX clusters, KQL/T-SQL queries, ingestion p

00

data

salazarsebas

Querying Stellar chain data via Stellar RPC (preferred) and Horizon (legacy). Covers RPC JSON-RPC methods, Horizon REST endpoints, streaming, pagination, historical queries, Hubble/Galexie for deep history, and the RPC/Horizon migration story. Use when reading balances, transactions, operations, led

00

backend-development

skillcreatorai

Backend API design, database architecture, microservices patterns, and test-driven development. Use for designing APIs, database schemas, or backend system architecture.

1731

Search skills

Search the agent skills registry