ENUM
rule_variable
enum rule_variableSimilar to accounts.rule_variable, but it adds two more variables that only make sense
in the context of login auth descriptors:
relative_block_timeis the difference in timestamp between the auth descriptor creation and its expirationrelative_block_heightis the difference in block number between the auth descriptor creation and its expiration
These two variables are not useful for normal auth descriptors, as those are created at the same time of definition. In the case of login auth descriptors, the definition happens during the dapp development, while they're created anytime a user logs in. This allows the developer to define rules like a time to live for the login sessions.
See Also
- [core.accounts.rule_variable] — for more information on rule variables
- [core.accounts.rule_expression] — for more information on expiration rules
Entries
block_height
block_time
op_count
relative_block_height
relative_block_time
© 2024 Chromia