Skip to content

Indexer Client

← Back to Examples Overview

Blockchain data queries using the IndexerClient.

ExampleDescription
Indexer Health Check

This example demonstrates how to check indexer health status using the IndexerClient healthCheck() method.

Account Lookup

This example demonstrates how to lookup account information using the IndexerClient lookupAccountById() and searchForAccounts() methods.

Account Assets

This example demonstrates how to query account asset holdings using the IndexerClient lookupAccountAssets() and lookupAccountCreatedAssets() methods.

Account Applications

This example demonstrates how to query account application relationships using the IndexerClient lookupAccountCreatedApplications() and lookupAccountAppLocalStates() methods.

Account Transactions

This example demonstrates how to query an account’s transaction history using the IndexerClient lookupAccountTransactions() method.

Transaction Lookup

This example demonstrates how to lookup a single transaction by ID using the IndexerClient lookupTransactionById() method.

Transaction Search

This example demonstrates how to search for transactions with various filters using the IndexerClient searchForTransactions() method.

Asset Lookup

This example demonstrates how to lookup and search for assets using the IndexerClient lookupAssetById() and searchForAssets() methods.

Asset Balances

This example demonstrates how to lookup all holders of an asset using the IndexerClient lookupAssetBalances() method.

Asset Transactions

This example demonstrates how to lookup transactions for a specific asset using the IndexerClient lookupAssetTransactions() method.

Application Lookup

This example demonstrates how to lookup and search for applications using the IndexerClient lookupApplicationById() and searchForApplications() methods.

Application Logs Lookup

This example demonstrates how to lookup application logs using the IndexerClient lookupApplicationLogsById() method.

Application Boxes Lookup

This example demonstrates how to query application boxes using the IndexerClient searchForApplicationBoxes() and lookupApplicationBoxByIdAndName() methods.

Block Lookup

This example demonstrates how to lookup block information using the IndexerClient lookupBlock() method.

Block Headers Search

This example demonstrates how to search for block headers using the IndexerClient searchForBlockHeaders() method.

Pagination

This example demonstrates how to properly handle pagination across multiple indexer endpoints using limit and next parameters. It includes a generic pagination helper function and shows iteration through all pages of results.

Run any example from the repository’s examples directory:

Terminal window
cd examples
npm run example indexer_client/01-*.ts