Optional
historicalAn object that provides access to the maps of the Key-Value Store of CCF.
Fields are map names and values are KvMap
objects.
Parse JSON from an ArrayBuffer.
Equivalent to JSON.parse(ccf.bufToStr(v))
.
Convert an ArrayBuffer into a string.
Note that this function does not perform any encoding validation, and may produce an invalid JS string if the input is not valid UTF-8.
Toggles whether common metrics (including the path, the response status, and the execution time) should be logged when this execution completes. By default this is enabled. If the request pattern should not be visible to an operator, then this behaviour should be disabled.
Returns the previous value, allowing a global default to be maintained.
If false, then no built-in logging will be emitted describing this execution
Toggles implementation of Date global API between using untrusted host time (when enabled)and returning 0 (when disabled). By default this is disabled.
Returns the previous value, allowing a global default to be maintained.
If true, then subsequent calls to Date.now() will return untrusted host time
Optional
exponent: numberSerialize a value to JSON and convert it to an ArrayBuffer.
Equivalent to ccf.strToBuf(JSON.stringify(v))
.
Convert a string into an ArrayBuffer.
State associated with a specific historic transaction. Only defined for endpoints with "mode" set to "historical".