Sparkscan API

Welcome to the Sparkscan API

Sparkscan is a public explorer and analytics suite for Spark.
Our REST API gives you programmatic access to addresses, transactions, tokens, and real-time network activity so you can build wallets, dashboards, bots, and data pipelines with ease.

Current API version: 1.2.2 (OpenAPI 3.0.2)

Base URL

Code
https://api.sparkscan.io

All endpoints are prefixed with the API version (/v1), e.g. /v1/address/{address}.

Key Features

  • Address
    • Get an address summary (/v1/address/{address})
    • List address transactions with pagination (/v1/address/{address}/transactions)
    • List tokens held by an address (/v1/address/{address}/tokens)
  • Transactions
    • Fetch the latest network-wide transactions (/v1/tx/latest)
    • Retrieve detailed information for a single tx (/v1/tx/{txid})
  • Tokens
    • Lookup token metadata or search by name/ticker (/v1/tokens/{identifier})
    • Token holders and transaction history
    • Batch metadata lookup for up to 100 tokens
  • Network Statistics
    • Leaderboards for wallets and tokens
  • Bitcoin Utilities
    • Latest on-chain txid for up to 100 BTC addresses

For a full list of paths and schema definitions, check the automatically generated reference in the sidebar or download the OpenAPI spec.

Quick Start

TerminalCode
# Get the latest 5 Spark transactions on MAINNET curl "https://api.sparkscan.io/v1/tx/latest?network=MAINNET&limit=5" # Fetch an address summary curl "https://api.sparkscan.io/v1/address/sp1pg...zst?network=MAINNET"

Networks

Most endpoints accept a network query parameter:

ValueDescription
MAINNETThe live Spark network (production)
REGTESTLocal or staging network for development

Response Metadata

Paginated endpoints return a meta object with totalItems, limit, and offset so you can implement infinite scroll or traditional paging with minimal effort.

Need help?

• Browse the detailed endpoint docs in the sidebar.
• Open an issue on GitHub or reach out to dev@sparkscan.io.

Happy building on Spark! ✨

Last modified on