Just the fetchd script of btcrelay
Python
Switch branches/tags
Nothing to show
Clone or download
ethers Merge pull request #14 from achempion/patch-1
let's make fetchd script work again
Latest commit d24a430 Nov 3, 2017

README.md

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.