Earn 5.76% APY staking with Solana Compass + help grow Solana's ecosystem

Stake natively or with our LST compassSOL to earn a market leading APY

Conference Talk Accelerate 25

Scale or Die at Accelerate 2025: Tuk Tuk: On-chain Cron Jobs

Solana 🧭 Compass By Solana 🧭 Compass May 20, 2025 8 min read

Helium's Tuk Tuk brings powerful on-chain automation to Solana, revolutionizing DeFi, governance, and more

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!

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:

  1. Governance: Tuk Tuk can automate the closing of proposals after a set period and clean up voting markers, saving on rent costs.
  2. DeFi: The tool can handle liquidations, Dollar Cost Averaging (DCA) strategies, and pool management tasks.
  3. Token Distribution: As demonstrated in the live example, Tuk Tuk can manage recurring payments and token splits.
  4. 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

  1. "If it's not on Mainnet, it didn't happen."
  2. "Decentralization just means DevOps on somebody else's computer."
  3. "I like my code to be declarative. I don't like my smart contracts having this weird script that's off to the side."
  4. "We wanted to keep this deliberately incredibly simple, because that makes it way easier to run a crank turner."
  5. "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.



Comments

Please login to leave a comment.

Related Content

How Helium Is Leading Crypto's DePIN Revolution | Abhay Kumar

Discover how Helium is pioneering the DePIN space, bringing real-world utility to crypto through decentralized wireless networks and innovative blockchain solutions.

Helium's Wireless Revolution: Can 100M Devices Go On-Chain?

Discover how Helium is leveraging Solana to build the world's largest decentralized wireless network, aiming to connect millions of IoT devices.

Ship or Die at Accelerate 2025: Lightning Talk: Helium

Helium's decentralized wireless network aims to disrupt Big Telco, offering free phone plans and rewards for users

Leading Solana's DePin Future | Amir Haleem

Discover how Helium Mobile is disrupting the telecom industry using Solana blockchain and crypto incentives to build decentralized wireless networks.

Solana Changelog - October 24: NFT Locking, GetHealth, and Open Clockwork

Discover the latest Solana developments including NFT collection locking, GetHealth endpoint improvements, and the Open Clockwork initiative. Stay informed about Breakpoint and recent hackathon projects.

Building StarAtlas, the blockchain game and economy with Michael Wagner, CEO - Solfate Podcast #29

Explore how Star Atlas is building a groundbreaking MMO economy and metaverse on Solana, featuring innovative on-chain game logic and an open IP model.

Solana Changelog - October 24 - NFT Locking, GetHealth, and Open Clockwork

Explore Solana's latest developments including NFT collection locking, GetHealth endpoint improvements, and the community-driven Open Clockwork initiative. Learn about Breakpoint 2023 and exciting hackathon projects.

Star Atlas: The Triple-A Web3 Game

Explore the ambitious vision of Star Atlas, the triple-A Web3 game built on Solana, as CEO Michael Wagner discusses on-chain game logic, economy building, and the future of blockchain gaming.

The Great Online Game with Packy McCormick

Discover how the internet has transformed careers into a global game with exponential upside. Learn how to play and win in the new digital economy.

Product Keynote: Helium

Helium reaches 2.1M daily connections, achieves net deflationary tokenomics, and announces expansion to Mexico and Brazil at Breakpoint 2025.

Breakpoint 2023: Helium - Exploring DePIN, Helium, and Future Opportunities on Solana

Helium Foundation's Abhai Kumar discusses the transition to Solana, DePIN networks, and Helium's role in future crypto use cases.

How To Get A Job In Web3

Learn how to get a job in Web3 with insider tips on building proof of work, leveraging Discord and Twitter, and joining hackathons. Discover why now is the best time to start your crypto career.

Validated | What It Takes to Build a AAA On-Chain with Michael Wagner

Star Atlas CEO Michael Wagner discusses the challenges and opportunities of building AAA blockchain games on Solana, revolutionizing game economies and player ownership.

Breakpoint 2023: How Helium Migrated to Solana

The migration of the Helium network to Solana blockchain.

Solana Changelog May 23 - Lite RPC, Programmable Smart Wallets, and Idle Games

Explore the latest Solana updates including Lite RPC for efficient transactions, programmable smart wallets, and exciting developments in game creation on the blockchain.

Solana tokens

Solana Token Markets

Explore all tokens →