Ethereum-transaction-status.js extract Token Contract-metadata from the ethereum-blockchain by using the etherscan api.
//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.
node fetch-stats.js 'contractAddress'
node fetch-stats.js 'contractAddress' 'startblock'
or
//fetch-stats.js
var startblock = startblock;
node fetch-stats.js 'contractAddress' -no
or
node fetch-stats.js 'contractAddress' 'startblock' -no
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)
satrt the local server
npm run web
and open http://localhost:8080/index.html