Catalog npm
PACKAGE EXPLORERView in registry

@0xcert/ethereum-scanner

npm

0xcert Etherium blockchain scanner.

0xcertblockblockscontractcontractsethereumparseparserprotocolscanscannersoliditytransactiontransactions
Versions collected21
Direct dependencies10From release 0.3.3
Last observed20 Oct, 22:48 UTC

README

Current package documentation

Build Status npm version Dependency Status

0xcert Ethereum blockchain parser.

This is an open source package for NodeJS written with TypeScript. It allows for scraping of the Ethereum blockchain for 0xcert protocol related contracts and transactions.

This package is actively maintained, well tested and already used in production environments. The source code is available on GitHub where you can also find our issue tracker.

Installation

Run the command below to install the package.

npm install --save web3 @0xcert/ethereum-scanner

This package uses promises thus you need to use Promise polyfill when promises are not supported.

Getting started

Initialize the Web3 provider.

import * as Web3 from 'web3';

const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));

Load and parse data of a particular block.

import { Scanner } from '@0xcert/ethereum-scanner';

const blockNumber = 2996066;
const scanner = new Scanner(web3);

await scanner.parse(blockNumber); // => { transactions: [...], contracts: [...]}

API

Scanner Class

Scanner(web3)

Main class which allows for parsing the Ethereum blockchain.

OptionTypeRequiredDefaultDescription
web3Web3Yes-Instance of a Web3 provider.

NOTICE: The scanner class extends is a RawModel class and thus exposes all related helper methods.

Scanner.prototype.parse(block): Promise(JSON)

Populates the scanner with block data and then returns serialized scanner data.

OptionTypeRequiredDefaultDescription
blockIntegerYes-Block number.

Scanner.prototype.populateByBlock(block): Promise(Scanner)

Loads and parses transactions and new contracts of a particular block on the Ethereum blockchain.

OptionTypeRequiredDefaultDescription
blockIntegerYes-Block number.

License (MIT)

Copyright (c) 2018 0xcert admin@0xcert.org.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 21

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.3Registry latest22 Jun 201810
0.3.219 Jun 201810
0.3.118 Jun 201810
0.3.018 Jun 201810
0.2.68 May 201810
0.2.57 May 201810
0.2.43 May 201810
0.2.320 Apr 201810
0.2.220 Apr 201810
0.2.119 Apr 201810
0.2.019 Apr 201810
0.1.919 Apr 201810
0.1.818 Apr 201810
0.1.712 Apr 201810
0.1.612 Apr 201810
0.1.512 Apr 201810
0.1.412 Apr 201810
0.1.312 Apr 201810
0.1.211 Apr 201810
0.1.111 Apr 201810

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0xcert/ethereum-parser

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xcert/ethereum-scanner

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0478adcf83ff87d9f646aa559e03d9a9b28464571f86e74f2aab0f1e2bae3ed6