Get the generation of the originating transaction
Behaviour
- Return the generation of the originating transaction or 1if no generation field is present.
Definition
int64_t otxn_generation (
    void
);
Example
int64_t generation = 
  otxn_generation();
Parameters
None
Return Code
| Type | Description | 
|---|---|
| int64_t | The generation of the originating transaction, or 1if no generation was present on the originating transaction. |