Scale or Die at Accelerate 2025: Tuk Tuk: On-chain Cron Jobs
By accelerate-25
Published on 2025-05-20
Noah Prince introduces Tuk Tuk, an on-chain automation engine for Solana, offering efficient and decentralized cron job functionality.
Solana developers, get ready for a game-changer! Helium's new on-chain automation engine, Tuk Tuk, is set to revolutionize how we handle scheduled tasks and recurring operations on the blockchain. This powerful tool brings the convenience of cron jobs to the decentralized world, opening up a world of possibilities for DeFi, governance, and beyond.
Summary
Noah Prince, Head of Protocol Engineering at Helium, introduced Tuk Tuk, an innovative on-chain automation engine designed for the Solana ecosystem. This tool addresses the critical need for reliable, decentralized scheduling of tasks and operations on the blockchain. Tuk Tuk emerged as a response to the closure of Clockwork, a similar service that shut down in 2023, leaving many protocols scrambling for alternatives.
Tuk Tuk's architecture is designed to be both efficient and cost-effective, overcoming the challenges that led to Clockwork's demise. By using a clever system of PDAs (Program Derived Addresses) and bitmaps, Tuk Tuk can operate with minimal resources, making it accessible to a wide range of projects and developers.
The system's flexibility allows for various applications, from simple scheduled token transfers to complex governance operations and DeFi strategies. Noah demonstrated Tuk Tuk's capabilities with a live example on Solana's mainnet, showcasing its ability to handle recurring payments and token distributions.
Prince emphasized the importance of on-chain automation in creating more efficient and user-friendly blockchain applications. By eliminating the need for manual interventions and reducing reliance on potentially unreliable off-chain solutions, Tuk Tuk aims to enhance the overall experience for both developers and end-users in the Solana ecosystem.
Key Points:
On-Chain Automation Engine
Tuk Tuk is presented as an on-chain automation engine, which is essentially a sophisticated system for executing cron jobs on the Solana blockchain. This tool allows developers to schedule and automate various tasks directly on-chain, eliminating the need for external, off-chain scheduling systems.
The importance of this cannot be overstated. In traditional blockchain applications, many recurring tasks either required manual intervention or relied on centralized, off-chain solutions that could be unreliable. Tuk Tuk brings these operations on-chain, enhancing reliability, transparency, and decentralization.
Efficient Architecture
One of the most innovative aspects of Tuk Tuk is its efficient architecture. Noah Prince explained that the system uses Program Derived Addresses (PDAs) and bitmaps to manage tasks efficiently. This approach allows Tuk Tuk to operate with minimal computational resources, making it cost-effective to run.
The use of bitmaps is particularly clever. Each bit in the bitmap represents a task, with a 1 indicating an active task and a 0 indicating no task. This allows crank turners (the entities executing the tasks) to quickly identify which tasks need to be executed without having to scan through numerous accounts.
Wide Range of Applications
Tuk Tuk's versatility is one of its strongest selling points. Noah outlined several potential use cases for the tool, demonstrating its applicability across various blockchain operations:
- Governance: Tuk Tuk can automate the closing of proposals after a set period and clean up voting markers, saving on rent costs.
- DeFi: The tool can handle liquidations, Dollar Cost Averaging (DCA) strategies, and pool management tasks.
- Token Distribution: As demonstrated in the live example, Tuk Tuk can manage recurring payments and token splits.
- Oracle Interactions: For protocols like Helium that rely on oracle data, Tuk Tuk can automate the process of querying oracles and executing follow-up actions.
These applications just scratch the surface of what's possible with on-chain automation, and developers are likely to find many more innovative uses for Tuk Tuk.
Ease of Use and Integration
A key focus for the Tuk Tuk team was making the tool as user-friendly as possible. Noah emphasized that if a developer can construct a normal Solana transaction, they can use Tuk Tuk. The system provides helpers and SDKs in both TypeScript and Rust, making it accessible to a wide range of developers.
Moreover, Tuk Tuk's design allows for declarative programming within smart contracts. This means developers can specify scheduling requirements directly in their contract code, leading to cleaner, more maintainable codebases.
Decentralization and DevOps Simplification
One of the more humorous, yet insightful, points Noah made was about decentralization essentially being "DevOps on somebody else's computer." This highlights a significant advantage of Tuk Tuk: it removes the need for complex DevOps setups to manage scheduled tasks.
By leveraging the decentralized nature of the blockchain, Tuk Tuk allows developers to set up automated tasks without worrying about server management, uptime, or scaling issues. This not only simplifies development but also enhances the reliability of scheduled operations.
Facts + Figures
- Tuk Tuk was developed by Helium in response to the shutdown of Clockwork in 2023
- The system uses Program Derived Addresses (PDAs) and bitmaps for efficient task management
- Tuk Tuk can handle tasks costing as little as 5,000 lamports (approximately double the cost of a standard Solana transaction)
- The live demo showcased a recurring payment of 0.02 HNT every hour
- Tuk Tuk supports various triggering mechanisms, including time-based schedules and on-chain events
- The system can handle remote transactions, allowing for complex interactions with off-chain systems like oracles
- Tuk Tuk is designed to be highly affordable, addressing the thin profit margins that challenged previous solutions
- The tool supports recursive tasks, enabling true cron-like functionality
- Tuk Tuk offers SDKs for both TypeScript and Rust
- The system can be integrated via CPI (Cross-Program Invocation), command line, or through its SDKs
Top quotes
- "If it's not on Mainnet, it didn't happen."
- "Decentralization just means DevOps on somebody else's computer."
- "I like my code to be declarative. I don't like my smart contracts having this weird script that's off to the side."
- "We wanted to keep this deliberately incredibly simple, because that makes it way easier to run a crank turner."
- "If you can construct a normal Solana transaction, you can construct a Tuk Tuk transaction."
Questions Answered
What is Tuk Tuk?
Tuk Tuk is an on-chain automation engine developed by Helium for the Solana blockchain. It allows developers to schedule and automate various tasks directly on the blockchain, similar to how cron jobs work in traditional computing environments. This tool enables a wide range of applications, from simple recurring payments to complex governance operations and DeFi strategies, all executed reliably and efficiently on-chain.
Why was Tuk Tuk created?
Tuk Tuk was created in response to the shutdown of Clockwork, a similar service that many Solana protocols relied on for automated tasks. When Clockwork closed operations in 2023, it left a significant gap in the ecosystem. Helium, along with other protocols, had to resort to less reliable off-chain solutions. Recognizing the critical need for on-chain automation, the Helium team developed Tuk Tuk to provide a more efficient, cost-effective, and decentralized alternative.
How does Tuk Tuk work?
Tuk Tuk operates using a clever system of Program Derived Addresses (PDAs) and bitmaps. Tasks are assigned to specific PDAs, and their status is tracked using bits in a bitmap. This allows for efficient task management without the need for expensive indexing or scanning of numerous accounts. Crank turners (entities that execute the tasks) can quickly identify which tasks need to be run by checking the bitmap. This architecture makes Tuk Tuk both cost-effective and resource-efficient.
What are some use cases for Tuk Tuk?
Tuk Tuk has a wide range of applications in the Solana ecosystem. It can be used for automating governance processes, such as closing proposals and cleaning up voting markers. In DeFi, it can handle liquidations, Dollar Cost Averaging (DCA) strategies, and pool management. For token economics, it can manage recurring payments and token distributions. It's also useful for interacting with oracles and automating bulk tasks. Essentially, any operation that needs to occur on a schedule or in response to specific on-chain events can benefit from Tuk Tuk.
How does Tuk Tuk compare to off-chain solutions?
Tuk Tuk offers several advantages over off-chain solutions. Firstly, it's more reliable as it doesn't depend on external servers that might go down or experience issues. Being on-chain also means it's fully transparent and auditable. Additionally, Tuk Tuk simplifies DevOps requirements for developers, as they don't need to manage separate infrastructure for scheduled tasks. It's also more cost-effective than many off-chain alternatives, especially for frequent, small tasks.
Is Tuk Tuk difficult to implement?
According to Noah Prince, Tuk Tuk is designed to be user-friendly. If a developer can construct a normal Solana transaction, they should be able to use Tuk Tuk. The system provides helper functions and SDKs for both TypeScript and Rust, making it accessible to a wide range of developers. Tuk Tuk also allows for declarative programming within smart contracts, which can lead to cleaner, more maintainable code.
How does Tuk Tuk handle recurring tasks?
Tuk Tuk handles recurring tasks through a system of recursive task returns. For example, a task scheduled to run every Monday at 10 AM would execute its primary function and then reschedule itself for the following Monday. This approach allows for true cron-like functionality while maintaining the flexibility to adjust or cancel recurring tasks as needed.
What makes Tuk Tuk more sustainable than previous solutions like Clockwork?
Tuk Tuk addresses the sustainability issues that challenged Clockwork by focusing on efficiency and cost-effectiveness. Its architecture, using PDAs and bitmaps, allows it to operate with minimal computational resources. This keeps the cost of running a crank turner (the entity executing tasks) low, addressing the thin profit margins that were problematic for previous solutions. By making it affordable and easy to run crank turners, Tuk Tuk aims to create a more sustainable ecosystem for on-chain automation.
On this page
- Summary
- Key Points:
- Facts + Figures
- Top quotes
-
Questions Answered
- What is Tuk Tuk?
- Why was Tuk Tuk created?
- How does Tuk Tuk work?
- What are some use cases for Tuk Tuk?
- How does Tuk Tuk compare to off-chain solutions?
- Is Tuk Tuk difficult to implement?
- How does Tuk Tuk handle recurring tasks?
- What makes Tuk Tuk more sustainable than previous solutions like Clockwork?
Related Content
Ship or Die at Accelerate 2025: Advancing Solana DeFi Innovation
OKX announces major developments for Solana, including XBTC integration and increased wallet usage
Ship or Die at Accelerate 2025: Tokenizing Trust
Apollo's flagship credit fund tokenizes on Solana, offering enhanced yields through DeFi integration
Ship or Die at Accelerate 2025: Lightning Talk: MetaMask
MetaMask announces native Solana support and multi-chain wallet experience
Ship or Die at Accelerate 2025: Kraken
Kraken and Backed announce X stocks, bringing tokenized equities to Solana with permissionless, self-custody trading
Ship or Die at Accelerate 2025: Lightning Talk: SendAI
SendAI introduces Solana App Kit, revolutionizing mobile app development on Solana
Ship or Die at Accelerate 2025: Time Is Money (Kawz - Time.fun)
Kawz introduces Time.fun, a platform that tokenizes time and creates new capital markets on Solana
Scale or Die at Accelerate 2025: Building The On-Chain NASDAQ
Bullet aims to revolutionize financial markets with a high-performance, on-chain derivatives exchange on Solana
Scale or Die at Accelerate 2025: The State of Solana MEV
An in-depth look at MEV on Solana, focusing on sandwich attacks and their impact on the ecosystem
Scale or Die at Accelerate 2025: Solver Infrastructure
RockawayX Labs' Krystof Kosina discusses the challenges and solutions in developing cross-chain solvers on Solana
Scale or Die at Accelerate 2025: Welcome to Scale or Die: Day 2
Day 2 of Scale or Die event focuses on infrastructure and dev tooling with workshops and summits
Ship or Die at Accelerate 2025: Building User-Centric Products
Simon Amor of Sling Money shares invaluable insights on creating user-centric products in the blockchain space
Ship or Die at Accelerate 2025: Lightning Talk: Centrifuge
Centrifuge announces launch on Solana, bringing real-world assets and institutional DeFi to the ecosystem
Ship or Die at Accelerate 2025: Hello and Welcome
Solana hosts its first major US conference, focusing on policy, product development, and the future of crypto in America.
Breakpoint 2023: Solana and AWS
AWS announces infrastructure for running Solana nodes and focuses on cost optimization for blockchain applications.
Scale or Die at Accelerate 2025: Writing Optimized Solana Programs
Dean Little from Blueshift delivers an in-depth exploration of Solana program optimization techniques at Accelerate 2025.
- Borrow / Lend
- Liquidity Pools
- Token Swaps & Trading
- Yield Farming
- Solana Explained
- Is Solana an Ethereum killer?
- Transaction Fees
- Why Is Solana Going Up?
- Solana's History
- What makes Solana Unique?
- What Is Solana?
- How To Buy Solana
- Solana's Best Projects: Dapps, Defi & NFTs
- Choosing The Best Solana Validator
- Staking Rewards Calculator
- Liquid Staking
- Can You Mine Solana?
- Solana Staking Pools
- Stake with us
- How To Unstake Solana
- How validators earn
- Best Wallets For Solana