Recurring Buy: Scheduled Token Buys Run by Hedera Itself
Our own product (RetailBox)
Retailbox R&D: our own template, 2026
A scaffold-hbar template that buys a token on SaucerSwap on a schedule, every hour, day or week, with no keeper bot or server: the Hedera network runs every purchase itself.
What was the problem?
Recurring buys (dollar-cost averaging) usually need a bot or server that wakes up on time and holds custody or keys. That's one more thing to host, secure and pay for, and users have to trust it with their funds.
How did Retailbox solve it?
We built a Solidity contract, its tests and a Next.js app as one scaffold-hbar template. The user approves an allowance for the plan's total, and the tokens stay in their wallet. At each scheduled second the Hedera Schedule Service (HIP-1215) calls the contract, which takes one buy's worth, swaps it on SaucerSwap V2 with the user as recipient, skips the buy if the price falls below the user's floor, and schedules the next tick itself. Each plan pays its own gas from a deposit and refunds what's left. A CI gate rebuilds the template from GitHub with create-scaffold-hbar on every push.
The template has run on Hedera testnet. Nothing has run on mainnet yet.
What does it look like?
(opens the full-size image in a new tab)
(opens the full-size image in a new tab)
(opens the full-size image in a new tab)What were the results?
- ✓Winner — Hedera Scaffold-HBAR Template Bounty (October 2026)
- ✓No keeper bot and no server: the network runs every scheduled buy
- ✓Tokens stay in the user's wallet until each buy, protected by a price floor
- ✓Verified on Hedera testnet, with every transaction linked; one command to start a new project from the template