All Projects → ethereumjs → Ethereumjs Blockchain

ethereumjs / Ethereumjs Blockchain

Project is in active development and has been moved to the EthereumJS VM monorepo.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ethereumjs Blockchain

Learn Solidity With Examples
A repo full of smart contracts written in Solidity
Stars: ✭ 106 (-10.92%)
Mutual labels:  blockchain, ethereum
Vscode Azure Blockchain Ethereum
Blockchain extension for VS Code
Stars: ✭ 111 (-6.72%)
Mutual labels:  blockchain, ethereum
Truffle
A tool for developing smart contracts. Crafted with the finest cacaos.
Stars: ✭ 11,909 (+9907.56%)
Mutual labels:  blockchain, ethereum
Indy Leaderboard
Example game leaderboard dApp utilizing EbakusDB on Ebakus blockchain
Stars: ✭ 103 (-13.45%)
Mutual labels:  blockchain, ethereum
Cryptocurrencyawesome
Cryptocurrency study materials resources
Stars: ✭ 118 (-0.84%)
Mutual labels:  blockchain, ethereum
Diadata
DIAdata.org platform
Stars: ✭ 103 (-13.45%)
Mutual labels:  blockchain, ethereum
Backend Ico Dashboard
Free & open-source dashboard for your next ICO, crowdsale or tokensale
Stars: ✭ 110 (-7.56%)
Mutual labels:  blockchain, ethereum
Solidity
Solidity, the Smart Contract Programming Language
Stars: ✭ 13,691 (+11405.04%)
Mutual labels:  blockchain, ethereum
Eth Cli
CLI swiss army knife for Ethereum developers
Stars: ✭ 109 (-8.4%)
Mutual labels:  blockchain, ethereum
Hydro Scaffold Dex
A Decentralized Exchange Scaffold - launch a DEX in minutes
Stars: ✭ 112 (-5.88%)
Mutual labels:  blockchain, ethereum
Awesome Cryptocurrency Security
😎 Curated list about cryptocurrency security (reverse / exploit / fuzz..)
Stars: ✭ 102 (-14.29%)
Mutual labels:  blockchain, ethereum
Cyb Archeology
🌎 Personal immortal robot for the The Great Web
Stars: ✭ 117 (-1.68%)
Mutual labels:  blockchain, ethereum
Masterblockchain
Stars: ✭ 100 (-15.97%)
Mutual labels:  blockchain, ethereum
Smart Contract Sanctuary
🐦🌴🌴🌴🦕 A home for ethereum smart contracts. 🏠
Stars: ✭ 99 (-16.81%)
Mutual labels:  blockchain, ethereum
Superblocks Lab
Superblocks Lab for DApp development
Stars: ✭ 100 (-15.97%)
Mutual labels:  blockchain, ethereum
Ergo
The Language for Smart Legal Contracts
Stars: ✭ 108 (-9.24%)
Mutual labels:  blockchain, ethereum
Uniswap Interface
🦄 An open source interface for the Uniswap protocol
Stars: ✭ 1,337 (+1023.53%)
Mutual labels:  blockchain, ethereum
Eth Indexer
An Ethereum project to crawl blockchain states into database
Stars: ✭ 98 (-17.65%)
Mutual labels:  blockchain, ethereum
Blockapi
A general framework for blockchain analytics
Stars: ✭ 111 (-6.72%)
Mutual labels:  blockchain, ethereum
Desktop
The official Musicoin Desktop Wallet Application
Stars: ✭ 112 (-5.88%)
Mutual labels:  blockchain, ethereum

SYNOPSIS

NPM Package Actions Status Coverage Status Gitter or #ethereumjs on freenode

A module to store and interact with blocks.

INSTALL

npm install ethereumjs-blockchain

API

./docs/

EXAMPLE

The following is an example to iterate through an existing Geth DB (needs level to be installed separately).

This module performs write operations. Making a backup of your data before trying it is recommended. Otherwise, you can end up with a compromised DB state.

const level = require('level')
const Blockchain = require('ethereumjs-blockchain').default
const utils = require('ethereumjs-util')

const gethDbPath = './chaindata' // Add your own path here. It will get modified, see remarks.
const db = level(gethDbPath)

new Blockchain({ db: db }).iterator(
  'i',
  (block, reorg, cb) => {
    const blockNumber = utils.bufferToInt(block.header.number)
    const blockHash = block.hash().toString('hex')
    console.log(`BLOCK ${blockNumber}: ${blockHash}`)
    cb()
  },
  err => console.log(err || 'Done.'),
)

WARNING: Since ethereumjs-blockchain is also doing write operations on the DB for safety reasons only run this on a copy of your database, otherwise this might lead to a compromised DB state.

EthereumJS

See our organizational documentation for an introduction to EthereumJS as well as information on current standards and best practices.

If you want to join for work or do improvements on the libraries have a look at our contribution guidelines.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].