Skip to main content

Ape SDK for the Silverback platform

Project description

Quick Start

Silverback lets you create and deploy your own Python bots that respond to on-chain events. The Silverback library leverages the Ape development framework as well as it's ecosystem of plugins and packages to enable you to develop simple-yet-sophisticated automated applications that can listen and respond to live chain data.

Silverback applications are excellent for use cases that involve continuously monitoring and responding to on-chain events, such as newly confirmed blocks or contract event logs.

Some examples of these types of applications:

  • Monitoring new pool creations, and depositing liquidity
  • Measuring trading activity of popular pools
  • Listening for large swaps to update a telegram group

Documentation

Read the development userguide to learn more how to develop an application.

Dependencies

  • python3 version 3.8 or greater, python3-dev

Installation

Silverback relies heavily on the Ape development framework, so it's worth it to familarize yourself with how to install Ape and it's plugins using the Ape installation userguide.

via pip

You can install the latest release via pip:

pip install silverback

via setuptools

You can clone the repository and use setuptools for the most up-to-date version:

git clone https://github.com/ApeWorX/silverback.git silverback
cd silverback
python3 setup.py install

Quick Usage

Checkout the example to see how to use the library.

To run your bot against a live network, this SDK includes a simple runner you can use via:

$ silverback run "example:app" --network :mainnet:alchemy

Docker Usage

$ docker run --volume $PWD:/home/harambe/project --volume ~/.tokenlists:/home/harambe/.tokenlists apeworx/silverback:latest run "example:app" --network :mainnet:alchemy

Development

This project is in development and should be considered a beta. Things might not be in their final state and breaking changes may occur. Comments, questions, criticisms and pull requests are welcomed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

silverback-0.2.1.tar.gz (76.3 kB view details)

Uploaded Source

Built Distribution

silverback-0.2.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file silverback-0.2.1.tar.gz.

File metadata

  • Download URL: silverback-0.2.1.tar.gz
  • Upload date:
  • Size: 76.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for silverback-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7d948b7098013742f3e9726217d71e7b8953794231e3e2c8806b9a0599b7c49a
MD5 20a02eeb5cf2630e76900fce6a0c678a
BLAKE2b-256 59b474e64768db708101f757b502a4688891160b6f7803b5833ae384645dd95a

See more details on using hashes here.

File details

Details for the file silverback-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: silverback-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for silverback-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a81e536e9ab5bf4807573d3fe83bdf13a8b9f50865d19b8620b4f38888586ef
MD5 1c162d9ad90df3a0df37ac1bfbb04c9f
BLAKE2b-256 176e25965f9a8a8af87333f5e99c2857b4dcf2f1132fbcf7b19539e696df0ea1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page