Giter Club home page Giter Club logo

cream-track-hacker's Introduction

CREAM Tracking Hacker Transactions

Getting Started

  1. Get an API key from https://streamingfast.io
  2. Download a release from the releases
  3. Start the tracker

Install

Build from source:

GO111MODULE=on go get github.com/streamingfast/cream-track-hacker/cmd/tracker

Or download a self-contained binary for Windows, macOS or Linux.

Usage

export STREAMINGFAST_API_KEY="server_......................"

Then simply launch the tracker:

tracker

The binart starts a never ending stream that receives all Ethereum blocks, analyze their transactions and notify when a transaction is doing a pure Ether Transfer (from/to) or a ERC20 Transfer (from/to) coming from one of the tracked address (defaults to 0x560a8e3b79d23b0a525e15c6f3486c6a293ddad2 and 0x905315602ed9a854e325f692ff82f58799beab57).

The notification is sent to the standard output, can be enhanced to send email, send a Slack or WeChat message, etc.

The file cursor.txt saved in the current directory must be kept and persisted, it's the marker that tells the stream where to start back at. If the file is non existant, the stream starts by default from block #11 878 000. If it starts from that location, it will take sometime for the stream to catch up with live block since it will need to inspect all blocks between the default start block and current head block. Try to save and backup the cursor.txt to avoid long delays before being live and tracking actual real-time transactions.

Flags

Use

go run ./cmd/tracker --help

To list available flags to tweak default start block, tracked addresses, status frequency and cursor file location.

Release

License

Apache 2.0

cream-track-hacker's People

Watchers

James Cloos 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.