ConsenSys/btcrelay-fetchd

Name: btcrelay-fetchd

Owner: ConsenSys

Description: Just the fetchd script of btcrelay

Created: 2015-09-30 08:38:29.0

Updated: 2018-01-13 07:46:21.0

Pushed: 2017-11-02 19:36:00.0

Homepage: null

Size: 13

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

 my_project_folder
rtualenv venv
urce venv/bin/activate

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

License

See full MIT License including:

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.