Skip to content

Namespace: indexer

@algorandfoundation/algokit-utils / index / indexer

index.indexer

Ƭ SearchForTransactions: ReturnType<Indexer["searchForTransactions"]>

src/indexer-lookup.ts:4

executePaginatedRequest<TResult, TRequest>(extractItems, buildRequest): Promise<TResult[]>

NameType
TResultTResult
TRequestextends Object
NameType
extractItems(response: any) => TResult[]
buildRequest(nextToken?: string) => TRequest

Promise<TResult[]>

src/indexer-lookup.ts:145


lookupAccountByAddress(accountAddress, indexer): Promise<AccountResponse>

NameTypeDescription
accountAddressstring | AddressThe address of the account to look up
indexerIndexerClientAn indexer client

Promise<AccountResponse>

The result of the look-up

Deprecated

Use indexer.lookupAccountByID(accountAddress).do(). Looks up an account by address using Indexer.

src/indexer-lookup.ts:26


lookupAccountCreatedApplicationByAddress(indexer, address, getAll?, paginationLimit?): Promise<algosdk.indexerModels.Application[]>

Looks up applications that were created by the given address; will automatically paginate through all data.

NameTypeDefault valueDescription
indexerIndexerClientundefinedAn indexer instance
addressstring | AddressundefinedThe address of the creator to look up
getAllundefined | booleanundefinedWhether or not to include deleted applications
paginationLimit?numberundefinedThe number of records to return per paginated request, default 1000

Promise<algosdk.indexerModels.Application[]>

The list of application results

src/indexer-lookup.ts:38


lookupAssetHoldings(indexer, assetId, options?, paginationLimit?): Promise<algosdk.indexerModels.MiniAssetHolding[]>

Looks up asset holdings for the given asset; will automatically paginate through all data.

NameTypeDescription
indexerIndexerClientAn indexer instance
assetIdnumber | bigintThe ID of the asset to look up holdings for
options?LookupAssetHoldingsOptionsOptional options to control the lookup
paginationLimit?numberThe number of records to return per paginated request, default 1000

Promise<algosdk.indexerModels.MiniAssetHolding[]>

The list of application results

src/indexer-lookup.ts:72


lookupTransactionById(transactionId, indexer): Promise<TransactionResponse>

NameTypeDescription
transactionIdstringThe ID of the transaction to look up
indexerIndexerClientAn indexer client

Promise<TransactionResponse>

The result of the look-up

Deprecated

Use indexer.lookupTransactionByID(transactionId).do(). Looks up a transaction by ID using Indexer.

src/indexer-lookup.ts:15


searchTransactions(indexer, searchCriteria, paginationLimit?): Promise<algosdk.indexerModels.TransactionsResponse>

Allows transactions to be searched for the given criteria.

NameTypeDescription
indexerIndexerClientAn indexer client
searchCriteria(s: default) => defaultThe criteria to search for
paginationLimit?numberThe number of records to return per paginated request, default 1000

Promise<algosdk.indexerModels.TransactionsResponse>

The search results

src/indexer-lookup.ts:111