ledger_nonce
Generate a 32 byte nonce for use in an emitted transaction
Behaviour
Write a 32 byte random value to the write_ptr
Definition
C
Example
Parameters
Name
Type
Description
write_ptr
uint32_t
Pointer to a buffer of a suitable size to store the output. Should be at least 32 bytes.
write_len
uint32_t
Length of the output buffer.
Return Code
Type
Description
ErrorCode | ByteArray
Returns an error code if an error occurs, or an array representing the nonce of the current ledger. specified outside of hook memory.
Last updated
Was this helpful?