Skip to content

Namespace: indexer

@algorandfoundation/algokit-utils / index / indexer

index.indexer

Table of contents

Type Aliases

Functions

Type Aliases

SearchForTransactions

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

Defined in

src/indexer-lookup.ts:4

Functions

executePaginatedRequest

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

Type parameters

NameType
TResultTResult
TRequestextends Object

Parameters

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

Returns

Promise<TResult[]>

Defined in

src/indexer-lookup.ts:145


lookupAccountByAddress

lookupAccountByAddress(accountAddress, indexer): Promise<AccountResponse>

Parameters

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

Returns

Promise<AccountResponse>

The result of the look-up

Deprecated

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

Defined in

src/indexer-lookup.ts:26


lookupAccountCreatedApplicationByAddress

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.

Parameters

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

Returns

Promise<algosdk.indexerModels.Application[]>

The list of application results

Defined in

src/indexer-lookup.ts:38


lookupAssetHoldings

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

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

Parameters

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

Returns

Promise<algosdk.indexerModels.MiniAssetHolding[]>

The list of application results

Defined in

src/indexer-lookup.ts:72


lookupTransactionById

lookupTransactionById(transactionId, indexer): Promise<TransactionResponse>

Parameters

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

Returns

Promise<TransactionResponse>

The result of the look-up

Deprecated

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

Defined in

src/indexer-lookup.ts:15


searchTransactions

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

Allows transactions to be searched for the given criteria.

Parameters

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

Returns

Promise<algosdk.indexerModels.TransactionsResponse>

The search results

Defined in

src/indexer-lookup.ts:111