Class LookupBlock
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.indexer.LookupBlock
-
public class LookupBlock extends Query
Lookup block. /v2/blocks/{round-number}
-
-
Constructor Summary
Constructors Constructor Description LookupBlock(Client client, Long roundNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<Block>execute()Execute the query.Response<Block>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.protected QueryDatagetRequestString()LookupBlockheaderOnly(Boolean headerOnly)Header only flag.-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Method Detail
-
headerOnly
public LookupBlock headerOnly(Boolean headerOnly)
Header only flag. When this is set to true, returned block does not contain the transactions
-
execute
public Response<Block> 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
-
-