Beispiel #1
0
 /// <summary>
 ///  Lookup account information.
 /// </summary>
 /// <exception cref="Algorand.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="accountId">account string</param>
 /// <param name="round">Include results for the specified round. (optional)</param>
 /// <returns>AccountResponse</returns>
 public AccountResponse LookupAccountByID(string accountId, long?round = null)
 {
     if (_lookupapi is null)
     {
         _lookupapi = new LookupApi(_config);
     }
     return(_lookupapi.LookupAccountByID(accountId, round));
 }
Beispiel #2
0
 /// <summary>
 /// Lookup a single transaction.
 /// </summary>
 /// <exception cref="Algorand.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="txid"></param>
 /// <returns>TransactionResponse</returns>
 public TransactionResponse LookupTransactions(string txid)
 {
     if (_lookupapi is null)
     {
         _lookupapi = new LookupApi(_config);
     }
     return(_lookupapi.LookupTransactions(txid));
 }
Beispiel #3
0
 /// <summary>
 /// Lookup block.
 /// </summary>
 /// <exception cref="Algorand.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="roundNumber">Round number</param>
 /// <returns>Block</returns>
 public Block LookupBlock(long?roundNumber)
 {
     if (_lookupapi is null)
     {
         _lookupapi = new LookupApi(_config);
     }
     return(_lookupapi.LookupBlock(roundNumber));
 }
Beispiel #4
0
 /// <summary>
 ///  Lookup the list of accounts who hold this asset
 /// </summary>
 /// <exception cref="Algorand.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="assetId"></param>
 /// <param name="limit">Maximum number of results to return. (optional)</param>
 /// <param name="next">The next page of results. Use the next token provided by the previous results. (optional)</param>
 /// <param name="round">Include results for the specified round. (optional)</param>
 /// <param name="currencyGreaterThan">Results should have an amount greater than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used. (optional)</param>
 /// <param name="currencyLessThan">Results should have an amount less than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used. (optional)</param>
 /// <returns>AssetBalancesResponse</returns>
 public AssetBalancesResponse LookupAssetBalances(long?assetId, long?limit = null, string next = null, long?round = null, long?currencyGreaterThan = null, long?currencyLessThan = null)
 {
     if (_lookupapi is null)
     {
         _lookupapi = new LookupApi(_config);
     }
     return(_lookupapi.LookupAssetBalances(assetId, limit, next, round, currencyGreaterThan, currencyLessThan));
 }
Beispiel #5
0
 /// <summary>
 ///  Lookup asset information.
 /// </summary>
 /// <exception cref="Algorand.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="assetId"></param>
 /// <returns>AssetResponse</returns>
 public AssetResponse LookupAssetByID(long?assetId)
 {
     if (_lookupapi is null)
     {
         _lookupapi = new LookupApi(_config);
     }
     return(_lookupapi.LookupAssetByID(assetId));
 }
Beispiel #6
0
 /// <summary>
 ///  Lookup application.
 /// </summary>
 /// <exception cref="Algorand.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="applicationId"></param>
 /// <returns>ApplicationResponse</returns>
 public ApplicationResponse LookupApplicationByID(long?applicationId)
 {
     if (_lookupapi is null)
     {
         _lookupapi = new LookupApi(_config);
     }
     return(_lookupapi.LookupApplicationByID(applicationId));
 }
Beispiel #7
0
 /// <summary>
 ///  Lookup account transactions.
 /// </summary>
 /// <exception cref="Algorand.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="accountId">account string</param>
 /// <param name="limit">Maximum number of results to return. (optional)</param>
 /// <param name="next">The next page of results. Use the next token provided by the previous results. (optional)</param>
 /// <param name="notePrefix">Specifies a prefix which must be contained in the note field. (optional)</param>
 /// <param name="txType"> (optional)</param>
 /// <param name="sigType">SigType filters just results using the specified type of signature: * sig - Standard * msig - MultiSig * lsig - LogicSig (optional)</param>
 /// <param name="txid">Lookup the specific transaction by ID. (optional)</param>
 /// <param name="round">Include results for the specified round. (optional)</param>
 /// <param name="minRound">Include results at or after the specified min-round. (optional)</param>
 /// <param name="maxRound">Include results at or before the specified max-round. (optional)</param>
 /// <param name="assetId">Asset ID (optional)</param>
 /// <param name="beforeTime">Include results before the given time. Must be an RFC 3339 formatted string. (optional)</param>
 /// <param name="afterTime">Include results after the given time. Must be an RFC 3339 formatted string. (optional)</param>
 /// <param name="currencyGreaterThan">Results should have an amount greater than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used. (optional)</param>
 /// <param name="currencyLessThan">Results should have an amount less than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used. (optional)</param>
 /// <param name="rekeyTo">Include results which include the rekey-to field. (optional)</param>
 /// <returns>TransactionsResponse</returns>
 public TransactionsResponse LookupAccountTransactions(string accountId, long?limit = null,
                                                       string next              = null, string notePrefix   = null, string txType      = null, string sigType = null,
                                                       string txid              = null, long?round          = null, long?minRound      = null, long?maxRound  = null,
                                                       long?assetId             = null, DateTime?beforeTime = null, DateTime?afterTime = null,
                                                       long?currencyGreaterThan = null, long?currencyLessThan = null, bool?rekeyTo     = null)
 {
     if (_lookupapi is null)
     {
         _lookupapi = new LookupApi(_config);
     }
     return(_lookupapi.LookupAccountTransactions(accountId, limit, next, notePrefix, txType, sigType,
                                                 txid, round, minRound, maxRound, assetId, beforeTime,
                                                 afterTime, currencyGreaterThan, currencyLessThan, rekeyTo));
 }