Class SearchForBlockHeaders
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.indexer.SearchForBlockHeaders
-
public class SearchForBlockHeaders extends Query
Search for block headers. Block headers are returned in ascending round order. Transactions are not included in the output. /v2/block-headers
-
-
Constructor Summary
Constructors Constructor Description SearchForBlockHeaders(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchForBlockHeadersabsent(List<Address> absent)Accounts marked as absent in the block header's participation updates.SearchForBlockHeadersafterTime(Date afterTime)Include results after the given time.SearchForBlockHeadersbeforeTime(Date beforeTime)Include results before the given time.Response<BlockHeadersResponse>execute()Execute the query.Response<BlockHeadersResponse>execute(String[] headers, String[] values)Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.SearchForBlockHeadersexpired(List<Address> expired)Accounts marked as expired in the block header's participation updates.protected QueryDatagetRequestString()SearchForBlockHeaderslimit(Long limit)Maximum number of results to return.SearchForBlockHeadersmaxRound(Long maxRound)Include results at or before the specified max-round.SearchForBlockHeadersminRound(Long minRound)Include results at or after the specified min-round.SearchForBlockHeadersnext(String next)The next page of results.SearchForBlockHeadersproposers(List<Address> proposers)Accounts marked as proposer in the block header's participation updates.-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Constructor Detail
-
SearchForBlockHeaders
public SearchForBlockHeaders(Client client)
-
-
Method Detail
-
absent
public SearchForBlockHeaders absent(List<Address> absent)
Accounts marked as absent in the block header's participation updates. This parameter accepts a comma separated list of addresses.
-
afterTime
public SearchForBlockHeaders afterTime(Date afterTime)
Include results after the given time. Must be an RFC 3339 formatted string.
-
beforeTime
public SearchForBlockHeaders beforeTime(Date beforeTime)
Include results before the given time. Must be an RFC 3339 formatted string.
-
expired
public SearchForBlockHeaders expired(List<Address> expired)
Accounts marked as expired in the block header's participation updates. This parameter accepts a comma separated list of addresses.
-
limit
public SearchForBlockHeaders limit(Long limit)
Maximum number of results to return. There could be additional pages even if the limit is not reached.
-
maxRound
public SearchForBlockHeaders maxRound(Long maxRound)
Include results at or before the specified max-round.
-
minRound
public SearchForBlockHeaders minRound(Long minRound)
Include results at or after the specified min-round.
-
next
public SearchForBlockHeaders next(String next)
The next page of results. Use the next token provided by the previous results.
-
proposers
public SearchForBlockHeaders proposers(List<Address> proposers)
Accounts marked as proposer in the block header's participation updates. This parameter accepts a comma separated list of addresses.
-
execute
public Response<BlockHeadersResponse> execute() throws Exception
Execute the query.
-
execute
public Response<BlockHeadersResponse> execute(String[] headers, String[] values) throws Exception
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestStringin classQuery
-
-