Class LookupBlock


  • public class LookupBlock
    extends Query
    Lookup block. /v2/blocks/{round-number}
    • Constructor Detail

      • LookupBlock

        public LookupBlock​(Client client,
                           Long roundNumber)
        Parameters:
        roundNumber - Round number
    • 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.
        Specified by:
        execute in class Query
        Parameters:
        headers - an array of header keys
        values - an array of header values
        Returns:
        the query response object.
        Throws:
        Exception