Smarter Contracts: Permissionless on-chain automation for self-executing smart contracts
Smarter Contracts is a fully permissionless, on-chain automation layer for the 0G ecosystem that enables smart contracts to actively react to external conditions without relying on centralized operators like Gelato or Chainlink Automation.
Instead of depending on off-chain keepers, Smarter Contracts introduces a decentralized solver network that monitors registered contracts and executes their trigger conditions trustlessly. Contracts define their own execution logic and funding via a native token balance held in a registry, which is used to incentivize execution. Anyone can act as a solver and trigger contracts when conditions are met, making the system censorship-resistant and economically self-sustaining.
We implemented two example automatable contracts to demonstrate the system’s capabilities:
A simple interval-based counter that increments autonomously over time A trend-following trading strategy that reacts to price movements of the 0G token and dynamically adjusts its position
Additionally, we built both a solver implementation and a user interface that allows users to deploy, fund, and trigger automatable contracts seamlessly.
Smarter Contracts transforms smart contracts from passive components into autonomous, reactive agents. It complements the 0G AI agent stack by enabling deterministic, on-chain automation, forming the foundation for hybrid systems where AI agents define strategies and smart contracts execute them trustlessly on-chain.
Smarter Contracts is built around a modular on-chain/off-chain architecture designed to remain fully permissionless while enabling reliable automation.
At the core are Solidity smart contracts deployed on the 0G chain. We implemented a central registry contract where developers can register automatable contracts. Each registered contract maintains a balance of native tokens inside the registry, which is used to incentivize execution. Automatable contracts follow a simple interface: a view function that determines whether execution conditions are met, and a state-changing function that performs the actual action when triggered.
On the execution side, we built a decentralized solver system. Solvers continuously monitor registered contracts by calling their read methods and, when conditions are satisfied, submit transactions to execute them and collect rewards. Participation is fully open—anyone can run a solver.
We implemented a reference solver in Python, designed for simplicity and extensibility, and containerized it for easy deployment. This allows anyone to spin up a solver node quickly and participate in the network. The system is intentionally designed so that even manual triggering via the UI is possible, ensuring liveness even with minimal infrastructure.
The frontend is built with Next.js and provides an interface to register contracts, fund them, and manually trigger executions. It also acts as a lightweight alternative solver.
A notable design choice is that all automation logic is contract-defined and on-chain verifiable, avoiding the need for trusted off-chain scheduling. This keeps the system composable, transparent, and aligned with the permissionless nature of 0G.
All components (contracts, solver, and UI) are fully open source.

