otxn_generation
Behaviour
Section titled “Behaviour”- Return the generation of the originating transaction or
1if no generation field is present.
- Retrieve the generation number of the originating transaction.
- Returns the generation number as a number.
Definition
Section titled “Definition”int64_t otxn_generation ( void);function otxn_generation(): numberExample
Section titled “Example”int64_t generation = otxn_generation();const generation = otxn_generation()Parameters
Section titled “Parameters”None
Return Code
Section titled “Return Code”| Type | Description |
|---|---|
| number | Returns the generation number as a number. |
| Type | Description |
|---|---|
| int64_t | The generation of the originating transaction, or 1 if no generation was present on the originating transaction. |