MCNScan API
Read address history, internal transfers and token activity with pagination.
MCNScan indexes execution-chain data and provides account transaction history through REST APIs. Use it for wallet history, support tools and reconciliation. Use your execution node to confirm canonical inclusion and finality before crediting funds.
Address history — API v2
# Public MCN deposit-contract address, used only as a read example.
ADDRESS=0x00000000219ab540356cbb839cbe05303d7705fa
curl --fail-with-body -sS \
"https://mcnscan.org/api/v2/addresses/$ADDRESS/transactions" | jq .The response contains items and next_page_params. Each transaction includes fields such as hash, from, to, value, block_number, status and timestamp. Native value is a base-unit integer encoded as a string.
When next_page_params is an object, add its fields as query parameters to the same endpoint for the next page. Stop when it is null. Do not assume the first page contains the full history.
import json
from urllib.parse import urlencode
from urllib.request import urlopen
address = "0x00000000219ab540356cbb839cbe05303d7705fa"
base = f"https://mcnscan.org/api/v2/addresses/{address}/transactions"
params = {}
for _ in range(10): # bounded example; persist a cursor in a production indexer
url = base + ("?" + urlencode(params) if params else "")
with urlopen(url, timeout=15) as response:
page = json.load(response)
for tx in page["items"]:
print(tx["hash"], tx["value"], tx["status"])
params = page.get("next_page_params")
if not params:
breakTransfer categories
Replace {address} with a 20-byte address.
| Data | GET path |
|---|---|
| Address summary | /api/v2/addresses/{address} |
| Ordinary transactions | /api/v2/addresses/{address}/transactions |
| Internal transfers | /api/v2/addresses/{address}/internal-transactions |
| Token transfers | /api/v2/addresses/{address}/token-transfers |
Ordinary transaction history includes calls that transferred no MCN. Check native value, recipient, receipt status and finality. Do not add token amounts or overlapping internal movements to the top-level amount without an explicit accounting rule. An explorer's confirmation count is not a substitute for the execution finalized tag.
Etherscan-compatible API
ADDRESS=0x00000000219ab540356cbb839cbe05303d7705fa
curl --fail-with-body -sS --get https://mcnscan.org/api \
--data-urlencode module=account \
--data-urlencode action=txlist \
--data-urlencode "address=$ADDRESS" \
--data-urlencode page=1 \
--data-urlencode offset=100 \
--data-urlencode sort=asc | jq .Here pagination uses page and offset; do not mix it with the v2 cursor. Check the API-level status, message and result, in addition to HTTP status. For internal transactions use action=txlistinternal. Refer to MCNScan API documentation for the available schemas.
Indexer lag and recovery
The explorer can lag behind the chain. An empty history result does not prove a zero balance or absence of a transaction. Cross-check with eth_getBalance, eth_getTransactionByHash and eth_getTransactionReceipt as appropriate. Retry bounded requests with backoff on 429 or transient errors; no numerical public rate-limit guarantee is published here.
For an exchange scanner, persist block height and hash, process pages idempotently and reconcile against finalized blocks.