Skip to main content
Version: Next

Interface: TimeConfig

Within the config, there are configurable options related to timing such as how often a key can be used.

Properties

end

Optional end: number

Block timestamp that keys must be used before. If this isn't specified, keys can be used indefinitely. Measured in number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC.

Defined in

lib/types/drops.ts:98


interval

Optional interval: number

Interval of time after the start_timestamp that must pass before a key can be used. If multiple intervals pass, the key can be used multiple times. This has nothing to do With the throttle timestamp. It only pertains to the start timestamp and the current timestamp. The last_used timestamp is not taken into account. Measured in number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC.

Defined in

lib/types/drops.ts:111


start

Optional start: number

Minimum block timestamp before keys can be used. If this isn't specified, keys can be used immediately. Measured in number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC.

Defined in

lib/types/drops.ts:92


throttle

Optional throttle: number

Amount of time that must pass in between each key use. If this isn't specified, there is no delay between key uses. Measured in number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC.

Defined in

lib/types/drops.ts:104