Sparkscan API
Sparkscan API

Tokens

Endpoint:https://api.sparkscan.io

Operations related to tokens


Get Token Details by Pubkey or Search Tokens

GET
https://api.sparkscan.io
/v1/tokens/{identifier}

If the path segment is a 64-character hex token identifier or a Bech32 token address, returns its details. Otherwise the segment is treated as a search query over token name, ticker or address.

Get Token Details by Pubkey or Search Tokenspath Parameters

  • identifierstring · required

Get Token Details by Pubkey or Search Tokensquery Parameters

  • networkstring · enum · required
    Enum values:
    REGTEST
    MAINNET
  • limitinteger · min: 1 · max: 100

    Limit for search results if identifier is a query string

    Limit for search results if identifier is a query string

    Default: 25
  • offsetinteger · min: 0

    Offset for search results if identifier is a query string

    Offset for search results if identifier is a query string

    Default: 0

Get Token Details by Pubkey or Search Tokens Responses

Successful Response

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object · requires: metadata, totalSupply, marketCapUsd +1 more
type = array
Properties for TokenDetailsResponse:
  • metadataobject · required
  • totalSupplyinteger · required
  • marketCapUsdnumber · float · required
  • volume24hUsdnumber · float · required

Get Token Transactions

GET
https://api.sparkscan.io
/v1/tokens/{identifier}/transactions

Get Token Transactionspath Parameters

  • identifierstring · required

Get Token Transactionsquery Parameters

  • networkstring · enum · required
    Enum values:
    REGTEST
    MAINNET
  • limitinteger · min: 1 · max: 100
    Default: 25
  • offsetinteger · min: 0
    Default: 0

Get Token Transactions Responses

Successful Response

  • metaobject · required
  • dataobject[] · required

Get Token Holders

GET
https://api.sparkscan.io
/v1/tokens/{identifier}/holders

Get Token Holderspath Parameters

  • identifierstring · required

Get Token Holdersquery Parameters

  • networkstring · enum · required
    Enum values:
    REGTEST
    MAINNET
  • limitinteger · min: 1 · max: 100
    Default: 25
  • offsetinteger · min: 0
    Default: 0

Get Token Holders Responses

Successful Response

  • metaobject · required
  • dataobject[] · required

Get Token Metadata in Batch

POST
https://api.sparkscan.io
/v1/tokens/metadata/batch

Retrieve metadata for up to 100 tokens at once. Uses Redis cache and RPC nodes as fallback, following the same logic as individual token endpoints.

Get Token Metadata in Batchquery Parameters

  • networkstring · enum · required
    Enum values:
    REGTEST
    MAINNET

Get Token Metadata in Batch Request Body

  • token_addressesstring[] · minItems: 1 · maxItems: 100 · required

    List of 66-character hex token addresses

Get Token Metadata in Batch Responses

Successful Response

  • metadataobject[] · required

    List of token metadata objects

  • total_countinteger · required

    Total number of tokens processed


Lookup token ↔ issuer pubkey

POST
https://api.sparkscan.io
/v1/tokens/issuer-lookup

Convert issuer public keys to their token identifier/address or vice-versa. Accepts up to 100 items per request.

Lookup token ↔ issuer pubkeyquery Parameters

  • networkstring · enum · required
    Enum values:
    REGTEST
    MAINNET

Lookup token ↔ issuer pubkey Request Body

  • pubkeysarray | null · maxItems: 100
  • tokensarray | null · maxItems: 100

Lookup token ↔ issuer pubkey Responses

Successful Response

  • resultsobject[] · required