• Api Documentation
Show / Hide Table of Contents
  • Algorand
    • Address
    • ApiException
    • ApiException<TResult>
    • Digest
    • HttpClientConfigurator
    • LogicsigSignature
    • MultisigAddress
    • MultisigSignature
    • MultisigSubsig
    • ParticipationPublicKey
    • Signature
    • TEALProgram
    • TxGroup
    • VRFPublicKey
  • Algorand.Algod
    • DefaultApi
    • DefaultApi.ObjectResponseResult<T>
    • IDefaultApi
  • Algorand.Algod.Model
    • Account
    • AccountApplicationResponse
    • AccountAssetResponse
    • AccountBalanceRecord
    • AccountDeltas
    • AccountParticipation
    • AccountSigType
    • AccountStateDelta
    • AccountTotals
    • Application
    • ApplicationLocalState
    • ApplicationParams
    • ApplicationStateSchema
    • AppResourceRecord
    • Asset
    • AssetHolding
    • AssetParams
    • AssetResourceRecord
    • Block
    • BlockHashResponse
    • Box
    • BoxDescriptor
    • BoxesResponse
    • BuildVersion
    • CertifiedBlock
    • CompileResponse
    • DisassembleResponse
    • DryrunRequest
    • DryrunResponse
    • DryrunSource
    • DryrunState
    • DryrunTxnResult
    • ErrorResponse
    • EvalDelta
    • EvalDeltaKeyValue
    • FileParameter
    • Format
    • GetSyncRoundResponse
    • KvDelta
    • LedgerStateDelta
    • LightBlockHeaderProof
    • ModifiedApp
    • ModifiedAsset
    • NodeStatusResponse
    • ParticipationKey
    • PendingTransactions
    • PostTransactionsResponse
    • ProofResponse
    • SimulateResponse
    • SimulateTransactionGroupResult
    • SimulateTransactionResult
    • StateDelta
    • StateProof
    • StateProofMessage
    • SupplyResponse
    • TealKeyValue
    • TealValue
    • TransactionParametersResponse
    • TransactionProofResponse
    • TxLease
    • Version
  • Algorand.Algod.Model.Transactions
    • ApplicationCallTransaction
    • ApplicationClearStateTransaction
    • ApplicationCloseOutTransaction
    • ApplicationCreateTransaction
    • ApplicationDeleteTransaction
    • ApplicationNoopTransaction
    • ApplicationOptInTransaction
    • ApplicationUpdateTransaction
    • AssetAcceptTransaction
    • AssetChangeTransaction
    • AssetClawbackTransaction
    • AssetConfigurationTransaction
    • AssetCreateTransaction
    • AssetDestroyTransaction
    • AssetFreezeTransaction
    • AssetMovementsTransaction
    • AssetTransferTransaction
    • AssetUpdateTransaction
    • IReturnableTransaction
    • KeyRegisterOfflineTransaction
    • KeyRegisterOnlineTransaction
    • KeyRegistrationTransaction
    • OnCompletion
    • PaymentTransaction
    • SignedTransaction
    • StateSchema
    • Transaction
  • Algorand.Algod.Test
    • TestHttpMessageHandler
  • Algorand.Crypto
    • KeyPair
  • Algorand.Indexer
    • CommonApi
    • CommonApi.ObjectResponseResult<T>
    • ICommonApi
    • ILookupApi
    • ISearchApi
    • LookupApi
    • LookupApi.ObjectResponseResult<T>
    • SearchApi
    • SearchApi.ObjectResponseResult<T>
  • Algorand.Indexer.Model
    • Account
    • AccountParticipation
    • AccountResponse
    • AccountsResponse
    • AccountStateDelta
    • Application
    • ApplicationLocalState
    • ApplicationLocalStatesResponse
    • ApplicationLogData
    • ApplicationLogsResponse
    • ApplicationParams
    • ApplicationResponse
    • ApplicationsResponse
    • ApplicationStateSchema
    • Asset
    • AssetBalancesResponse
    • AssetHolding
    • AssetHoldingsResponse
    • AssetParams
    • AssetResponse
    • AssetsResponse
    • Block
    • BlockRewards
    • BlockUpgradeState
    • BlockUpgradeVote
    • ErrorResponse
    • EvalDelta
    • EvalDeltaKeyValue
    • HealthCheck
    • MiniAssetHolding
    • StateSchema
    • TealKeyValue
    • TealValue
    • Transaction
    • TransactionApplication
    • TransactionAssetConfig
    • TransactionAssetFreeze
    • TransactionAssetTransfer
    • TransactionKeyreg
    • TransactionPayment
    • TransactionResponse
    • TransactionSignature
    • TransactionSignatureLogicsig
    • TransactionSignatureMultisig
    • TransactionSignatureMultisigSubsignature
    • TransactionsResponse
  • Algorand.KMD
    • Api
    • Api.ObjectResponseResult<T>
    • ApiException
    • ApiException<TResult>
    • APIV1DELETEKeyResponse
    • APIV1DELETEMultisigResponse
    • APIV1GETWalletsResponse
    • APIV1POSTKeyExportResponse
    • APIV1POSTKeyImportResponse
    • APIV1POSTKeyListResponse
    • APIV1POSTKeyResponse
    • APIV1POSTMasterKeyExportResponse
    • APIV1POSTMultisigExportResponse
    • APIV1POSTMultisigImportResponse
    • APIV1POSTMultisigListResponse
    • APIV1POSTMultisigProgramSignResponse
    • APIV1POSTMultisigTransactionSignResponse
    • APIV1POSTProgramSignResponse
    • APIV1POSTTransactionSignResponse
    • APIV1POSTWalletInfoResponse
    • APIV1POSTWalletInitResponse
    • APIV1POSTWalletReleaseResponse
    • APIV1POSTWalletRenameResponse
    • APIV1POSTWalletRenewResponse
    • APIV1POSTWalletResponse
    • APIV1Wallet
    • APIV1WalletHandle
    • CreateWalletRequest
    • DeleteKeyRequest
    • DeleteMultisigRequest
    • ExportKeyRequest
    • ExportMasterKeyRequest
    • ExportMultisigRequest
    • GenerateKeyRequest
    • IApi
    • ImportKeyRequest
    • ImportMultisigRequest
    • InitWalletHandleTokenRequest
    • ListKeysRequest
    • ListMultisigRequest
    • MultisigSig
    • MultisigSubsig
    • ReleaseWalletHandleTokenRequest
    • RenameWalletRequest
    • RenewWalletHandleTokenRequest
    • SignMultisigRequest
    • SignProgramMultisigRequest
    • SignProgramRequest
    • SignTransactionRequest
    • VersionsResponse
    • WalletInfoRequest
  • Algorand.Utils
    • ByteConstBlock
    • BytesConverter
    • Digester
    • Encoder
    • IntConstBlock
    • Logic
    • Logic.Uvarint
    • Mnemonic
    • MultisigAddressConverter
    • OrderedContractResolver
    • ProgramData
    • ReturnedTransactionConverter
    • Utils
    • VarintResult
    • Wordlist
  • Algorand.Utils.Crypto
    • FixedSecureRandom

Class SearchApi

Inheritance
object
SearchApi
Implements
ISearchApi
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Algorand.Indexer
Assembly: Algorand.dll
Syntax
public class SearchApi : ISearchApi

Constructors

| Improve this Doc View Source

SearchApi(HttpClient)

Declaration
public SearchApi(HttpClient httpClient)
Parameters
Type Name Description
System.Net.Http.HttpClient httpClient

Properties

| Improve this Doc View Source

JsonSerializerSettings

Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type Description
Newtonsoft.Json.JsonSerializerSettings
| Improve this Doc View Source

ReadResponseAsString

Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type Description
bool

Methods

| Improve this Doc View Source

ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)

Declaration
protected virtual Task<SearchApi.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
Type Name Description
System.Net.Http.HttpResponseMessage response
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><string, System.Collections.Generic.IEnumerable<T><string>> headers
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<TResult><SearchApi.ObjectResponseResult<T>>
Type Parameters
Name Description
T
| Improve this Doc View Source

searchForAccountsAsync(ulong?, ulong?, Address?, ulong?, ulong?, string?, bool?, ulong?, string?, ulong?)

Search for accounts.

Declaration
public Task<AccountsResponse> searchForAccountsAsync(ulong? applicationId = null, ulong? assetId = null, Address? authAddr = null, ulong? currencyGreaterThan = null, ulong? currencyLessThan = null, string? exclude = null, bool? includeAll = null, ulong? limit = null, string? next = null, ulong? round = null)
Parameters
Type Name Description
ulong? applicationId
ulong? assetId
Address authAddr
ulong? currencyGreaterThan
ulong? currencyLessThan
string exclude

Exclude additional items such as asset holdings, application local data stored for this account, asset parameters created by this account, and application parameters created by this account.

bool? includeAll
ulong? limit

Maximum number of results to return. There could be additional pages even if the limit is not reached.

string next

The next page of results. Use the next token provided by the previous results.

ulong? round

Include results for the specified round. For performance reasons, this parameter may be disabled on some configurations.

Returns
Type Description
System.Threading.Tasks.Task<TResult><AccountsResponse>
Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

searchForAccountsAsync(CancellationToken, ulong?, ulong?, Address?, ulong?, ulong?, string?, bool?, ulong?, string?, ulong?)

Declaration
public Task<AccountsResponse> searchForAccountsAsync(CancellationToken cancellationToken, ulong? applicationId = null, ulong? assetId = null, Address? authAddr = null, ulong? currencyGreaterThan = null, ulong? currencyLessThan = null, string? exclude = null, bool? includeAll = null, ulong? limit = null, string? next = null, ulong? round = null)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
ulong? applicationId
ulong? assetId
Address authAddr
ulong? currencyGreaterThan
ulong? currencyLessThan
string exclude
bool? includeAll
ulong? limit
string next
ulong? round
Returns
Type Description
System.Threading.Tasks.Task<TResult><AccountsResponse>
| Improve this Doc View Source

searchForApplicationsAsync(ulong?, string?, bool?, ulong?, string?)

Search for applications

Declaration
public Task<ApplicationsResponse> searchForApplicationsAsync(ulong? applicationId = null, string? creator = null, bool? includeAll = null, ulong? limit = null, string? next = null)
Parameters
Type Name Description
ulong? applicationId
string creator

Filter just applications with the given creator address.

bool? includeAll
ulong? limit

Maximum number of results to return. There could be additional pages even if the limit is not reached.

string next

The next page of results. Use the next token provided by the previous results.

Returns
Type Description
System.Threading.Tasks.Task<TResult><ApplicationsResponse>
Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

searchForApplicationsAsync(CancellationToken, ulong?, string?, bool?, ulong?, string?)

Declaration
public Task<ApplicationsResponse> searchForApplicationsAsync(CancellationToken cancellationToken, ulong? applicationId = null, string? creator = null, bool? includeAll = null, ulong? limit = null, string? next = null)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
ulong? applicationId
string creator
bool? includeAll
ulong? limit
string next
Returns
Type Description
System.Threading.Tasks.Task<TResult><ApplicationsResponse>
| Improve this Doc View Source

searchForAssetsAsync(ulong?, string?, bool?, ulong?, string?, string?, string?)

Search for assets.

Declaration
public Task<AssetsResponse> searchForAssetsAsync(ulong? assetId = null, string? creator = null, bool? includeAll = null, ulong? limit = null, string? name = null, string? next = null, string? unit = null)
Parameters
Type Name Description
ulong? assetId
string creator

Filter just assets with the given creator address.

bool? includeAll
ulong? limit

Maximum number of results to return. There could be additional pages even if the limit is not reached.

string name

Filter just assets with the given name.

string next

The next page of results. Use the next token provided by the previous results.

string unit

Filter just assets with the given unit.

Returns
Type Description
System.Threading.Tasks.Task<TResult><AssetsResponse>
Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

searchForAssetsAsync(CancellationToken, ulong?, string?, bool?, ulong?, string?, string?, string?)

Declaration
public Task<AssetsResponse> searchForAssetsAsync(CancellationToken cancellationToken, ulong? assetId = null, string? creator = null, bool? includeAll = null, ulong? limit = null, string? name = null, string? next = null, string? unit = null)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
ulong? assetId
string creator
bool? includeAll
ulong? limit
string name
string next
string unit
Returns
Type Description
System.Threading.Tasks.Task<TResult><AssetsResponse>
| Improve this Doc View Source

searchForTransactionsAsync(Address?, string?, string?, ulong?, ulong?, string?, ulong?, ulong?, bool?, ulong?, ulong?, ulong?, string?, string?, bool?, ulong?, string?, string?, string?)

Search for transactions. Transactions are returned oldest to newest unless the address parameter is used, in which case results are returned newest to oldest.

Declaration
public Task<TransactionsResponse> searchForTransactionsAsync(Address? address = null, string? addressRole = null, string? afterTime = null, ulong? applicationId = null, ulong? assetId = null, string? beforeTime = null, ulong? currencyGreaterThan = null, ulong? currencyLessThan = null, bool? excludeCloseTo = null, ulong? limit = null, ulong? maxRound = null, ulong? minRound = null, string? next = null, string? notePrefix = null, bool? rekeyTo = null, ulong? round = null, string? sigType = null, string? txType = null, string? txid = null)
Parameters
Type Name Description
Address address

Only include transactions with this address in one of the transaction fields.

string addressRole
string afterTime
ulong? applicationId
ulong? assetId
string beforeTime
ulong? currencyGreaterThan
ulong? currencyLessThan
bool? excludeCloseTo
ulong? limit

Maximum number of results to return. There could be additional pages even if the limit is not reached.

ulong? maxRound
ulong? minRound
string next

The next page of results. Use the next token provided by the previous results.

string notePrefix
bool? rekeyTo
ulong? round

Include results for the specified round.

string sigType
string txType
string txid

Lookup the specific transaction by ID.

Returns
Type Description
System.Threading.Tasks.Task<TResult><TransactionsResponse>
Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

searchForTransactionsAsync(CancellationToken, Address?, string?, string?, ulong?, ulong?, string?, ulong?, ulong?, bool?, ulong?, ulong?, ulong?, string?, string?, bool?, ulong?, string?, string?, string?)

Declaration
public Task<TransactionsResponse> searchForTransactionsAsync(CancellationToken cancellationToken, Address? address = null, string? addressRole = null, string? afterTime = null, ulong? applicationId = null, ulong? assetId = null, string? beforeTime = null, ulong? currencyGreaterThan = null, ulong? currencyLessThan = null, bool? excludeCloseTo = null, ulong? limit = null, ulong? maxRound = null, ulong? minRound = null, string? next = null, string? notePrefix = null, bool? rekeyTo = null, ulong? round = null, string? sigType = null, string? txType = null, string? txid = null)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Address address
string addressRole
string afterTime
ulong? applicationId
ulong? assetId
string beforeTime
ulong? currencyGreaterThan
ulong? currencyLessThan
bool? excludeCloseTo
ulong? limit
ulong? maxRound
ulong? minRound
string next
string notePrefix
bool? rekeyTo
ulong? round
string sigType
string txType
string txid
Returns
Type Description
System.Threading.Tasks.Task<TResult><TransactionsResponse>

Implements

ISearchApi
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾