BCMR Indexer · For developers

A token is a category ID. This is what tells you its name.

Bitcoin Cash tokens carry no name, no logo and no decimals on chain. The BCMR Indexer holds the registry records that supply them, and serves them over a REST API so a wallet or exchange can render a token as something a person recognises.

  • API v1.0
  • Fungible and non-fungible
  • Registry records

The three lookups

One index, three questions it answers.

01

Category metadata

Given a category ID, the index returns the token metadata for fungible tokens and the generic information for NFTs, the name, description and images the registry declares for that category.

02

NFT commitment metadata

An NFT type is only identified by the category plus the commitment value inside the output. The second lookup takes both and returns the metadata for that specific type rather than for the collection as a whole.

03

Latest registry record

Registry records are published as revisions. This lookup returns the latest one for a category, so a client can follow a token whose issuer has corrected or extended its metadata without pinning an old revision.

The specifics

What an integrator is actually calling.

Base URL

`https://bcmr.paytaca.com`: the API and its documentation live on the same host.

Version

API v1.0.

Token metadata

`GET /api/tokens/{category-id}`: returns FT metadata, and generic information for an NFT.

NFT detail

`GET /api/tokens/{category-id}/{commitment-value}`: metadata for one NFT type.

Registry

`GET /api/registries/{category-id}/latest`: the latest registry record for a category.

Token types

Fungible tokens and non-fungible tokens. NFTs are resolved per commitment value, not only per category.

Response

JSON. No card-network or processor account sits in front of the endpoints.

Index size

8,236

Unique categories indexed and served through the registry.

229,659

Individual tokens tracked across those categories.

Reference calls

The whole API is three fetches.

Category metadata

GET
await fetch(
  'https://bcmr.paytaca.com/api/tokens/your-category-id'
).then(r => r.json())

NFT commitment metadata

GET
await fetch(
  'https://bcmr.paytaca.com/api/tokens/your-category-id/commitment-value'
).then(r => r.json())

Latest registry record

GET
await fetch(
  'https://bcmr.paytaca.com/api/registries/your-category-id/latest'
).then(r => r.json())

Resolve the ID before you draw it.

A wallet that shows a raw category ID is asking the holder to trust a string. One call to the index turns it into a name, a logo and a description.