Skip to main content
Version: testnet (v0.73)

EthTimeTrigger

Trigger for an Ethereum call based on the Ethereum block timestamp. Can be one-off or repeating.

type EthTimeTrigger {
initial: Timestamp
every: Int
until: Timestamp
}

Fields

EthTimeTrigger.initial ● Timestamp scalar

Trigger when the Ethereum time is greater or equal to this time, in Unix seconds.

EthTimeTrigger.every ● Int scalar

Repeat the call every n seconds after the initial call. If no time for initial call was specified, begin repeating immediately.

EthTimeTrigger.until ● Timestamp scalar

If repeating, stop once Ethereum time is greater than this time, in Unix seconds. If not set, then repeat indefinitely.

Implemented by

TriggerKind union