GetHalvingYearInfo
GetHalvingYearInfo returns the configured halving interval containing timestamp.
Parameters:
- timestamp: Unix timestamp to classify against the inclusive emission schedule
Returns:
- year: halving year in [1, 12], or 0 outside the schedule
- startTimestamp: inclusive start timestamp of year, or 0 when timestamp is outside the schedule
- endTimestamp: inclusive end timestamp of year, or 0 when timestamp is outside the schedule
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/gns.GetHalvingYearInfo()"
Result