eth-hook

# EthDB

Usage no npm install needed!

<script type="module">
  import ethHook from 'https://cdn.skypack.dev/eth-hook';
</script>

README

README still need updates

EthDB

A project with the goal of facilitating the flow of information out of Ethereum blockchain, making it easy to develop hybrid dapps.

Features

  1. Provide a callback to notify events that happened in Ethereum blockchain.

Requirements

  • Have node >=v8.2.1 (hint nvm rocks)
  • Install dependencies with npm i
  • Have your RPC client of choice, at selected network running and fully in sync.
    • For geth, use flags --rpc --rpcapi="db,eth,net,web3,personal,web3" --ws, if starting fresh, for a faster full node sync you may add the flags --fast --cache=1024

Example:

  • See usage in example.js, for a simple usage with testrpc

Flags

  • SILENT=true mute daemon logs
  • DEBUG=eth-hook for more verbose logs
  • FULL_NODE_URL defaults to "http://localhost:8545"

Development

Using prettier for style lint + pre commit hooks + atom prettier plugin

Tests

Needs to get done, basically a variation of example.js would be a great start.

Roadmap:

  1. Implement tests
  2. List input data issue 3
  3. Detect ERC20 payments