Tracking indexing

Once a collection is registered it will need to be indexed before it can be used in the Marketplace API system. The duration needed for the indexation will be directly correlated to:

  • The total number of transactions that ever happened on the collection

  • The number of blocks between the current block and the collection deployment block

Tracking a collection indexing

const collectionProgress =
    await marketplaceSdk.collection.getCollectionProgress(MY_COLLECTION_ADDRESS)

const {
    progressBlockNumber,
    progressPercentage,
    updatedAt,
    latestBlockNumber
} = collectionProgress

All our API routes are also available without the SDK. See the get collection progress route.

Tracking a transaction transfers indexing

 const transactionProgress =
    await marketplaceSdk.transfer.getTransactionTransfersIndexingState(
      'transaction_hash'
  )

const { 
    transactionHash, 
    transfersCount, 
    isIndexed 
} = transactionProgress

All our API routes are also available without the SDK. See the indexing state route.

Last updated