start_interval

start_interval | code​

1
/**
2
* LiquidScheduler uses the timer_callback to run the cron logic within the consumer contract
3
*
4
* @param {name} timer - account name to scope the timer within
5
* @param {std::vector<char>} payload - payload to be accessed within the timer_callback function in the consumer contract
6
* @param {uint32_t} seconds - seconds to repeat the cron
7
*
8
* Example:
9
*
10
* @code
11
* // test setting interval
12
* [[eosio::action]] void testinterval(uint32_t interval) {
13
* // optional payload for data to be passed to timer_callback
14
* std::vector<char> payload;
15
* start_interval(_self, payload, interval);
16
* }
17
* @endcode
18
*/
Copied!
Last modified 4mo ago
Copy link