Class SetBlockTimeStampOffset
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.algod.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 Summary
Constructors Constructor Description SetBlockTimeStampOffset(Client client, Long offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<String>
execute()
Execute the query.Response<String>
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 QueryData
getRequestString()
-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
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.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestString
in classQuery
-
-