Catalog npm
Back to packageRELEASE DETAILS

0.2.4

npm

@0xcert/ethereum-scanner

0xcert Etherium blockchain scanner.

0xcertblockblockscontractcontractsethereumparseparserprotocolscanscannersoliditytransactiontransactions
Published3 May 2018
Direct dependencies10
Transitive dependenciesNot calculated

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.

Declared dependencies 11

Native requirements
10 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
rawmodel
Environment
{
  "local_name": "rawmodel",
  "alias": false,
  "peer_metadata": null
}
^1.31.2runtime
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
5.0.0development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
5.0.5development
solc
Environment
{
  "local_name": "solc",
  "alias": false,
  "peer_metadata": null
}
^0.4.21development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^3.3.0development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
^5.7.0development
tslint-config-standard
Environment
{
  "local_name": "tslint-config-standard",
  "alias": false,
  "peer_metadata": null
}
^6.0.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^2.8.0development
web3
Environment
{
  "local_name": "web3",
  "alias": false,
  "peer_metadata": null
}
^1.0.0-beta.33development
web3-typescript-typings
Environment
{
  "local_name": "web3-typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^0.10.2development
web3
Environment
{
  "local_name": "web3",
  "alias": false,
  "peer_metadata": null
}
^1.0.0-beta.34peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-XBkRHeNY6z/rupeSqUr2No9tb7Oo17ki6+F23Ti/o4q0Iuuh6COd9FjL4kUAVI/G5LBvmhoxolM8W9/FYzcIFA==",
  "shasum": "33c74a96719d47f845ad3810fd3f0511d4e78885",
  "tarball": "https://registry.npmjs.org/@0xcert/ethereum-scanner/-/ethereum-scanner-0.2.4.tgz",
  "fileCount": 104,
  "unpackedSize": 298180,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa651jCRA9TVsSAnZWagAAZJsP/jRaaK76IOVKsIx1lNpL\nybHMNFTtRDMV+k7Ozhuv4Ty7eUiac5WgX8ckiV0n7MLfDIT6MZfpWFKBYhrb\n6uZN6GozLppY7Qj9hhWyBWVhKQ0uFUY7FDRwE1JPTHKL7qVDr6XLnkr/WlUc\n5hDmFVENq+ZuAkt/jLTpBU5YGKFMUcJAr9IAwuiWfz1aezUmxOKap1J9hVOx\nTCLEiZYKcOgunJq44oSQDvvaOx5Z/RV1y3rFTuHkNv+geyXNkGevidKV8uNQ\nHpndZ2i7p6oZ9h8mAscB+0Ruoeb1s/CTCDfm8y3QtimIP/6Ik5OMhCILNW3N\nXuWoaG5v9R2lOxH4JRVcoCCTUjRPH/dKNBJ8k895XpgeEEFEPK5STOonh3KF\nv6tXm+nmYtl0Sqk+I/WocCWIymc3PUdqUL/LotC/q2Gb5H2J9Z9QJ8Nyle7x\ngGFm5XgE3djmTFyA6gHACSqr25PjALQtmxvwSwcTTCUebiArQY9I6lQmKEhT\ntNmcL0+oo7eqQJICxxR+JcnHTMo103rooijq1cwYXPIAV45SGvrcGn8XmatH\nzus0A03Qq+1S0VwEhUVxC9Gia23J1fvnS9Ponma24RJzdlB2/Rb3t3JUv3F6\n32W4OBbQcYpiOduHQo1rL+nVncrwRnac7RZC9VMvKZLK6X1tfQH14kiGowUb\n8293\r\n=W577\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCozPyAO8uNJoRia2w7UteJ53d8Hioxd0Eu7G8C73hY8QIgJNxLDOxwngGsvWM6PuL0NCJXpP4hchH1n2336abDwq8="
    }
  ]
}

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_version:11b28487ec2dbd2ce243c7a4954d98f54ebadd366c00430cbf35200fefc7687f

Other collected versions

0.3.322 Jun0.3.219 Jun0.3.118 Jun0.3.018 Jun0.2.68 May0.2.57 MayView all collected versions →