Giter Club home page Giter Club logo

web3js-tracker-example's Introduction

Blockchain tracker example

Tracks Ether and Token transfers for given wallets and amount. Read more on Medium.

Requirements

Setup

git clone [email protected]:dsemenovsky/blockchain-tracker-example.git
cd blockchain-tracker-example
yarn install

Fill .env from .env.example with the token contract address, wallets and amount. Pluton token contract is provided for this example.

NODE_ENV=development

INFURA_URL=https://rinkeby.infura.io/CUNjkZ8qg6WZHqeFNJyL
INFURA_WS_URL=wss://rinkeby.infura.io/ws

ETH_BLOCK_TIME=30

TOKEN_CONTRACT_ADDRESS=0xb4e95c65c23cab8c4fcaf15e4936c392e6ab21bf

WALLET_FROM=
WALLET_TO=
AMOUNT=

Running

Simply start the service and make a transfer from one wallet to another on Rindkeby testnet.

yarn start

web3js-tracker-example's People

Contributors

dsemenovsky avatar lnikell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

web3js-tracker-example's Issues

Transfert is not a function ?

Hi, thank you for sample !
do you understand why i have this error ? :
TypeError: tokenContract.events.Transfert is not a function

i'm using etherscan.io to get the ABI, is it right ?

Error when start forever

Hello

Please help me to check this issue
I have used your code for auto getting eth transaction.But after some time not getting transaction.
Could you help to check this

Thank You sir

Don't handle chain-reorg

I'm looking for some open source projects which monitor transactions (like centralized exchange) properly.
But I think your method don't handle chain reorg situation? in which case the transaction maybe rolled back, but still get confirmed?

Memory Issue

Hi,

this is very helpful for many developer but i am facing memory leak issue. service start consuming almost 80% cpu and 2GB memory just because of recursive call. How can i fix this. is there any alternate of recursive call.

i have almost 20 erc20 token and ETH in list.

Thanks in advance.

Error when build your code

Hello

Please help me to check this issue
I tried to build your source
But I get txHash is alway null
Could you help to check this

My config is:

NODE_ENV=development

INFURA_URL=https://rinkeby.infura.io/v3/ef5539a42f1a419e87193393fe40f893
INFURA_WS_URL=wss://rinkeby.infura.io/ws

ETH_BLOCK_TIME=30

TOKEN_CONTRACT_ADDRESS=0x2958d4c19c6bc69ec1fee3ae643ef85a7bcfb1f6

WALLET_FROM=0xe5bf8b2419242287b071731d3f59858cf74c2c90
WALLET_TO=0x2958d4c19c6bc69ec1fee3ae643ef85a7bcfb1f6
AMOUNT=0.2

Please help to check this

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.