mattgstevens / ethereum-transaction-status

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ethereum-Transaction-Status

Ethereum-transaction-status.js extract Token Contract-metadata from the ethereum-blockchain by using the etherscan api.

Before Use

//fetch-stats.js 
const Etherscan = require('etherscan-api').init('YourApiKey');

Update your getMeaningOfInput.js

//getMeaningOfInput.js
case "60606040":
			return "ContractCreation"

It uses the 3-10 characters from the Input of the Transactions to identify the function.

Use

node fetch-stats.js 'contractAddress'

Parameters

Change The Startblock

node fetch-stats.js 'contractAddress' 'startblock'

or

//fetch-stats.js 
var startblock = startblock;

Less Command line-Output

node fetch-stats.js 'contractAddress' -no

or

node fetch-stats.js 'contractAddress' 'startblock' -no

Savedata

The collected data will be saved in ./data/saveFile.json

fs.writeFileSync('./data/saveFile.json', json, 'utf8');
//index.html
fetch('http://localhost:8080/data/saveFile.json').then(res => res.json()).then(prepareCharts)

Presentation of Data

satrt the local server

npm run web

and open http://localhost:8080/index.html

About


Languages

Language:JavaScript 51.7%Language:HTML 48.3%