Git Product home page Git Product logo

btcrelay-fetchd's Introduction

Why be a relayer for BTC Relay?

Everytime that a transaction is verified that's in a block header that you submit, you can earn some fees. See BTC Relay Incentives for Relayers.

Quick Start

  1. pip install -r requirements.txt

  2. Run an Ethereum client, unlock an account with some Ether, and enable RPC (localhost and port 8545).

  3. Get the address of the BTC Relay contract

  4. python fetchd.py -s <YourUnlockedAccount> -r <BTCRelayAddress> -n btc --rpcPort 8545 --fetch -d --gasPrice 200000000000 use YourUnlockedAccount

If you want to set a fee, which is specified in units of wei, add --fee <weiAmount>

The -d runs in daemon mode, so remove it if undesired.

Recommended

Before pip install -r requirements.txt you may want to use a virtualenv and may need to do the following:

  1. sudo apt-get install python-pip python-dev libssl-dev
  2. pip install virtualenv

Then these steps:

$ cd my_project_folder
$ virtualenv venv
$ source venv/bin/activate

http://docs.python-guide.org/en/latest/dev/virtualenvs/

License

See full MIT License including:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

btcrelay-fetchd's People

Contributors

achempion avatar ethers 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.