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