start_interval
start_interval | code
/**
* LiquidScheduler uses the timer_callback to run the cron logic within the consumer contract
*
* @param {name} timer - account name to scope the timer within
* @param {std::vector<char>} payload - payload to be accessed within the timer_callback function in the consumer contract
* @param {uint32_t} seconds - seconds to repeat the cron
*
* Example:
*
* @code
* // test setting interval
* [[eosio::action]] void testinterval(uint32_t interval) {
* // optional payload for data to be passed to timer_callback
* std::vector<char> payload;
* start_interval(_self, payload, interval);
* }
* @endcode
*/
Last updated