Class SetBlockTimeStampOffset


  • public class SetBlockTimeStampOffset
    extends Query
    Sets the timestamp offset (seconds) for blocks in dev mode. Providing an offset of 0 will unset this value and try to use the real clock for the timestamp. /v2/devmode/blocks/offset/{offset}
    • Constructor Detail

      • SetBlockTimeStampOffset

        public SetBlockTimeStampOffset​(Client client,
                                       Long offset)
        Parameters:
        offset - The timestamp offset for blocks in dev mode.
    • Method Detail

      • execute

        public Response<String> 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