Silverback

Silverback is a way to create Python bots to act and react to on-chain events.

What is Silverback?

Silverback is a framework for building event-driven Python bots that listen and react to blockchain activity. Built on top of the Ape ecosystem, it gives you the full power of Python to automate on-chain workflows.

Core Capabilities

Everything you need to build intelligent on-chain bots.

Event-Driven Architecture

React to contract events, new blocks, and pending transactions with simple Python decorators.

Built on Ape

Leverage the full Ape plugin ecosystem for multi-chain support, account management, and contract interaction.

Production Ready

Deploy bots that run reliably with built-in error handling, retries, and monitoring hooks.

Multi-Chain Support

Run bots against any network supported by Ape, from local forks to production Ethereum environments.

Python-Native

Write bots in clean, idiomatic Python. Use any library from the Python ecosystem alongside your bot logic.

Operational Workflows

Package repeatable on-chain operations into bots that can be tested locally and deployed with confidence.

How It Works

Define handlers, subscribe to events, deploy your bot.

1. Define Your Bot

bot.py
from silverback import SilverbackBot bot = SilverbackBot()

2. Handle Events

bot.py
@bot.on_(contract.Transfer) def handle_transfer(log): print(f"Transfer: {log.amount}")

3. Run It

Terminal
silverback run --network ethereum:mainnet

Use Cases

Silverback powers a wide range of on-chain automation.

DeFi Monitoring

Track liquidity changes, large swaps, and protocol health metrics in real-time.

Alerting & Notifications

Send alerts to Slack, webhooks, or email when specific on-chain conditions are met.

Data Pipelines

Stream decoded on-chain data into databases, dashboards, or analytics platforms.

Keeper Bots

Automate recurring protocol maintenance, liquidations, rebalances, and other time-sensitive actions.

Automated Actions

Execute transactions automatically in response to on-chain events and conditions.

Protocol Operations

Coordinate admin workflows, treasury movements, and safety checks with auditable Python logic.

Get Started with Silverback

Start building your first on-chain bot in minutes.