The on-chain scheduler allows you to hook automated contract execution into the end of every N-th block. These are instantiated via governance, as they add computational load and gas costs to every block, and thus must be managed.
Current scheduled tasks can be queried via or kujirad query scheduler list-hooks
And a proposal for hook can be submitted as so:
kujirad tx gov submit-proposal create-hook <contract-addr> <executor-addr> \
'{"count": 0}' \
<frequency> \ # i.e. every Nth block
1000ukuji \ # funds to provide with each execution
--title "Instantiate CW-Template" \
--description "A more detailed description of this proposal" \
--from <local-account> \
--fees 250ukuji
Copy link
Edit on GitHub