Let’s Talk
#21Web3 / DeFi2026Winner — Hedera Scaffold-HBAR Template Bounty

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.

SolidityNext.jsHardhatFoundryHedera Schedule ServiceSaucerSwap

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?

Recurring Buy home page: the headline Recurring buys on SaucerSwap, no bot, no server, the five steps from the wallet through the Hedera Schedule Service and the contract to the pool, and a reference plan of four buys with transaction and schedule links. (opens the full-size image in a new tab)
The home page of the template's app: the five steps, and a finished plan with each of its four buys linked to its transaction on Hedera testnet.
Start a plan page: spend 25 WHBAR to buy SAUCE every 3 minutes, 4 times, with a 5% price floor, the three transactions to sign with their gas, and the four signing steps. (opens the full-size image in a new tab)
Starting a plan: the user checks the quote, the price floor, the allowance and the gas before signing.
My plans page listing the plans of a test wallet. Plan 8 is expanded: completed, all 4 ticks ran, with the time and amount of each buy and a cumulative chart. (opens the full-size image in a new tab)
My plans, read from the network. Plan 8 ran all 4 buys on schedule. The wallet is our own testnet wallet.

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

Have a similar problem?

30-minute call. Free. We'll tell you honestly if we can help.