@kev_nz/etherscanner

Receive all the ethereum transactions that have been included in the block, including 'internal' transactions

Stats

StarsIssuesVersionUpdatedCreatedSize
@kev_nz/etherscanner
103.3.13 years ago3 years agoMinified + gzip package size for @kev_nz/etherscanner in KB

Readme

EtherScanner

Module for parse ethereum transactions or block and get from them all Eth transfers (normal and "internal")

Warning

This module is deprecated, just like Ethereum should be.

Ethereum is junk and you almost certainly do not need a blockchain

Installation

If you must.

npm install @kev_nz/etherscanner

Usage

Please don't

const EtherScanner = require('@kev_nz/etherscanner');

const etherScanner = await EtherScanner(`http://localhost:6082`);
Get all transfers by transaction hash
const result = await etherScanner.scanTransaction('0xc475f8bf9d2721b17f7c09944c2aa32ea943f452cb54ee0aefcb98ead0735274');
console.log(result);

result:

[{
    "hash": "0xc475f8bf9d2721b17f7c09944c2aa32ea943f452cb54ee0aefcb98ead0735274",
    "from": "0x1617d6e2dca84fec5c17f37d4141d2c4ec5c6d05",
    "to": "0xd1a2511bc222f38f463c62c9254faf7b710835e4",
    "value": 10000000000000000,
    "blockNumber": 1818075,
    "blockHash": "0x402a1df2fe61dcc83bec29c1202938e2fd739d97e614dbab351561dc04b01cd3",
    "isInternal": false,
    "type": ""
}, {
    "hash": "0xc475f8bf9d2721b17f7c09944c2aa32ea943f452cb54ee0aefcb98ead0735274",
    "from": "0xd1a2511bc222f38f463c62c9254faf7b710835e4",
    "to": "0x1617d6e2dca84fec5c17f37d4141d2c4ec5c6d05",
    "value": 12468329110548072,
    "blockNumber": 1818075,
    "blockHash": "0x402a1df2fe61dcc83bec29c1202938e2fd739d97e614dbab351561dc04b01cd3",
    "isInternal": true,
    "type": "CALL"
}]

type - "" || CALL || CREATION || SELFDESTRUCT

Get all transfers by block number
etherScanner.scanBlock(1822433, (err, result) => {
    console.log(result);
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.