Get the generation of a hypothetically emitted transaction
Last updated 1 month ago
Was this helpful?
Return the generation an emitted transaction will carry.
int64_t etxn_generation ( void );
function etxn_generation(): ErrorCode | number
int64_t generation = etxn_generation();
const generation = etxn_generation()
None
int64_t
The generation an emitted transaction will need in order to be successfully passed to emit()
emit()
number
Returns An ErrorCode if there is an error, or a number indicating the generation result on success.