/sdk-bot-example

An example bot built using the Radar Relay SDK.

Primary LanguageTypeScriptMIT LicenseMIT

SDK Bot Example

This repository contains the Radar Relay Bot example used in the Building a Bot tutorial.

bot_screenshot

Setup

  1. npm install

  2. export RADAR_WALLET_PASSWORD=yourpassword

  3. Run: npm start

The first time you run the bot it will output the wallet address and wait to receive Kovan ETH. Enter the address into a Kovan Faucet to obtain Kovan ETH.

  1. Once the ETH is received the bot will:
    1. Set WETH token allowance
    2. Wrap ETH
    3. Subscribe to the ZRX/WETH book websocket
    4. Place a ZRX/WETH limit order