Giter Site home page Giter Site logo

godd0t / bitbridge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 55 KB

A modern Python interface to the Bitcoin Core RPC, offering both synchronous and asynchronous support.

License: MIT License

Makefile 1.38% Python 97.83% Shell 0.79%
bitcoin bitcoin-core bitcoin-core-rpc python python-bitcoin

bitbridge's Introduction

BitBridge ๐ŸŒ‰

BitBridge offers a seamless Python interface to the Bitcoin Core RPC, simplifying interactions with the Bitcoin protocol. With support for both synchronous and asynchronous operations, BitBridge is perfectly suited for diverse applications - from web platforms and backend services to data analytics tools.

๐ŸŒŸ Features

  • Dual Mode Operations: Supports both synchronous and asynchronous operations, giving you the flexibility to choose based on your application's needs.

  • Modularity at Core: Designed with a modular architecture, BitBridge can easily be extended and integrated into a variety of systems.

  • Complete RPC Integration: Comprehensive coverage of all RPC methods offered by Bitcoin Core, ensuring you have everything you need for Bitcoin interactions in one place.

๐Ÿš€ Installation

pip install BitBridge

๐ŸŽฏ Quick Start

Synchronous Mode:

from bitbridge import BitBridgeFacade, BitBridgeConfig

# Configure RPC server details
config = BitBridgeConfig(url="http://127.0.0.1:8332", username="your_username", password="your_password")
bridge = BitBridgeFacade(config)

def fetch_best_block():
    # Retrieve the best block hash
    best_block_hash = bridge.blockchain.get_best_block_hash()
    # Additional operations...

Asynchronous Mode:

from bitbridge import AsyncBitBridgeFacade, BitBridgeConfig

# Configure RPC server details
config = BitBridgeConfig(url="http://127.0.0.1:8332", username="your_username", password="your_password")
bridge = AsyncBitBridgeFacade(config)

async def fetch_best_block():
    # Retrieve the best block hash
    best_block_hash = await bridge.blockchain.get_best_block_hash()
    # Additional operations...

๐Ÿ›  Status

๐Ÿšง Development Phase: Please note that BitBridge is still in its initial development phase. Some features might be experimental.

๐Ÿ“œ License

BitBridge is open-sourced under the MIT License.

bitbridge's People

Contributors

godd0t avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.