Giter Site home page Giter Site logo

bithyve-wrapper's Introduction

BitHyve Wrapper

BitHyve wrapper is a server instance that wraps around electrs to provide some additional functionality on top of electrs as required by hexa

Prerequisites for running BitHyve Wrappe

BitHyve Wrapper requires electrs (https://github.com/Blockstream/electrs) and electrs requires a Bitcoin Core (v0.16+)

Bitcoin Core daemon

Bitcoin Core can be downloaded from https://bitcoincore.org/en/download/

Detailed instructions on installing, configuring and running Bitcoin Core as daemon are available here https://bitcoin.org/en/full-node

Electrs

Electrs can be installed from https://github.com/Blockstream/electrs

Please follow the instructions here https://github.com/Blockstream/electrs#installing--indexing for help in installing and setting up electrs.

Installing and running BitHyve Wrapper

  1. Install golang (replace 1.15.4 with your favorite version)
wget https://dl.google.com/go/go1.15.4.linux-amd64.tar.gz
sudo tar -xvf go1.15.4.linux-amd64.tar.gz
sudo mv go /usr/bin/
  1. Update path
export GOROOT=/usr/bin/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
  1. Download and build
go get github.com/bithyve/bithyve-wrapper
cd ~/go/src/github.com/bithyve/bithyve-wrapper
go get ./...
go build
  1. Run the wrapper
    • Before running the wrapper please ensure that Bitcoin Core daemon and electrs have been setup and and are running as these are required for BitHyve Wrapper.
    • You would need to know the ip number of the machine/server runnig the BitHyand port number where you are running
sudo screen -SL wrapper ./bithyve-wrapper -m
  1. Ensure your server accepts http traffic
sudo screen -SL socat80 socat tcp-listen:80,reuseaddr,fork tcp:localhost:3001

bithyve-wrapper's People

Contributors

alimeer avatar parsh avatar varunram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bithyve-wrapper's Issues

Removing input/output

With wrapper lifting the tx amount computation and categorization, we don't really require the vin-vout objects to be provided as a part of transaction(s) to the app.

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.