# ApeScan

> ApeScan is a block explorer and open API for ApeChain (chain ID 33139). It shows blocks, transactions, addresses, ERC-20 tokens, NFT collections and NFT items from its own index of the chain, with an Etherscan-compatible API and a typed REST API.

This deployment serves ApeChain, the ApeCoin-native Arbitrum Orbit chain (chain ID 33139). Native currency: APE (18 decimals). It settles to Arbitrum One (chain ID 42161), which settles to Ethereum.

- Site: https://explorer.apechain.com/
- API base URL: https://explorer.apechain.com
- OpenAPI 3.1 document: https://explorer.apechain.com/openapi.json
- No API key is needed for reads. Amounts, token IDs and balances are exact decimal strings; never parse them as floating-point numbers.
- Other networks, each its own deployment with the same paths: Curtis testnet (chain ID 33111): https://curtis.apechain.com/llms.txt

## Pages

- [Address](https://explorer.apechain.com/address/0xe3daef07dd158da1fc270dab2e0b0f1a9d40971c): an account or contract. Pattern: /address/{address}. Balance, holdings, NFTs, transactions, verified source.
- [Transaction](https://explorer.apechain.com/tx/0xf933bb51ce3db8af7684463af875f2ef684e0325e47fc8189c9b318719f1df83): Pattern: /tx/{hash}. Status, finality, decoded call, token and NFT transfers, logs, internal calls.
- [Block](https://explorer.apechain.com/block/51357147): Pattern: /block/{number}. Time, gas, base fee and the block's transactions.
- [Token or NFT collection](https://explorer.apechain.com/token/0xbebaa24108d6a03c7331464270b95278bbbe6ff7): Pattern: /token/{address}. Holders, transfers, inventory with trait filters, market stats.
- [NFT item](https://explorer.apechain.com/nft/0xbebaa24108d6a03c7331464270b95278bbbe6ff7/2202): Pattern: /nft/{contract}/{tokenId} (decimal token ID). Owner, metadata, traits, sales and history.
- [Search](https://explorer.apechain.com/search?q=gobs): Pattern: /search?q={text}. Resolves an address, hash, block number, ENS name, NFT item or token name.
- [NFTs](https://explorer.apechain.com/nfts): collections, sales, mints and transfers.
- [Bridge activity](https://explorer.apechain.com/bridges): LayerZero OFT, Stargate and Relay sends and fills on ApeChain. The API is /v1/bridges; missing peer or destination data stays null.
- [NFT shadows](https://explorer.apechain.com/shadows): Ethereum collections mirrored on ApeChain (BAYC, MAYC, BAKC and others). Items follow the Ethereum owner or their delegate.xyz delegate, synced by LayerZero reads. An item page shows the Ethereum owner, the owner here and whether they match. API: /v1/shadows, /v1/shadows/{address}, and `shadow` on /v1/nfts/{address}/{id}.
- [Pulse](https://explorer.apechain.com/pulse): live blocks, NFT sales and mints, APE price and gas.
- [API reference](https://explorer.apechain.com/api-docs): every endpoint with parameters, response fields and a runnable example. One page per operation: /api-docs/{operationId}.

## Markdown views

Add `?format=md` to an address, transaction, block, token/collection or NFT item URL for a compact markdown version of the page (`text/markdown`): the page's key facts, its canonical URL and the API calls behind it. HTML pages link it with `<link rel="alternate" type="text/markdown">`.

- [NFT item as markdown](https://explorer.apechain.com/nft/0xbebaa24108d6a03c7331464270b95278bbbe6ff7/2202?format=md)
- [Transaction as markdown](https://explorer.apechain.com/tx/0xf933bb51ce3db8af7684463af875f2ef684e0325e47fc8189c9b318719f1df83?format=md)
- [Address as markdown](https://explorer.apechain.com/address/0xe3daef07dd158da1fc270dab2e0b0f1a9d40971c?format=md)

## API

- [Full API guide for agents](https://explorer.apechain.com/llms-full.txt): every operation with parameters, a curl example and response fields, plus pagination, errors, rate limits, units and data freshness.
- [OpenAPI document](https://explorer.apechain.com/openapi.json): the machine-readable contract for the native API.
- [Native REST API](https://explorer.apechain.com/v1/stats): typed JSON under https://explorer.apechain.com/v1/. Cursor pagination: pass a page's `next` back as `cursor`.
- [Etherscan-compatible API](https://explorer.apechain.com/api?module=proxy&action=eth_blockNumber): https://explorer.apechain.com/api?module=…&action=… (also /v2/api?chainid=33139). Foundry and Hardhat verification work by changing the URL.
- WebSocket: wss://explorer.apechain.com/ws streams each new block as {"type":"block","data":{...}}.
- Rate limits: per second, per IP without a key; send `X-API-Key` (or `apikey=`) for a higher limit. Read `X-RateLimit-Limit` and `X-RateLimit-Remaining`; on HTTP 429 wait for `Retry-After` seconds.

## Build with AI

- [ApeScan MCP server](https://explorer.apechain.com/mcp): anonymous, read-only Streamable HTTP tools for blocks, transactions, addresses, tokens, NFTs, search, logs, verified contracts and documentation.

Claude or Cursor config:

```json
{
  "mcpServers": {
    "apescan": {
      "url": "https://explorer.apechain.com/mcp"
    }
  }
}
```

## Optional

- [Sitemap](https://explorer.apechain.com/sitemap.xml): canonical collection, token and item pages.
- [Charts](https://explorer.apechain.com/charts): daily chain statistics.
- [Tools](https://explorer.apechain.com/tools): unit converter, input decoder, contract verification, CSV export and more.
- [robots.txt](https://explorer.apechain.com/robots.txt)
