# ethereumjs-block

> Provides Block serialization and help functions

Latest version **2.2.2** (published 2019-12-17) · MPL-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ethereumjs-block
pnpm add ethereumjs-block
yarn add ethereumjs-block
bun add ethereumjs-block
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.2.2 |
| Published | 2019-12-17 |
| First published | 2015-07-17 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 46 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | mjbecze |
| Maintainers | axic, holgerd77, jwasinger, kumavis, null_radix, sinamahmoodi, vpulim |
| Keywords | ethereum, block |

## Links

- npm: https://www.npmjs.com/package/ethereumjs-block
- Repository: https://github.com/ethereumjs/ethereumjs-block
- Homepage: https://github.com/ethereumjs/ethereumjs-block#readme
- Issues: https://github.com/ethereumjs/ethereumjs-block/issues
- npm.io page: https://npm.io/package/ethereumjs-block

## Dependencies (5)

- [async](https://npm.io/package/async.md) ^2.0.1
- [ethereumjs-tx](https://npm.io/package/ethereumjs-tx.md) ^2.1.1
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^5.0.0
- [ethereumjs-common](https://npm.io/package/ethereumjs-common.md) ^1.5.0
- [merkle-patricia-tree](https://npm.io/package/merkle-patricia-tree.md) ^2.1.2

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 2.2.2 (latest) — 2019-12-17
- 2.2.1 — 2019-11-14
- 2.2.0 — 2019-02-06
- 2.1.0 — 2018-10-19
- 2.0.1 — 2018-08-08
- 2.0.0 — 2018-06-25
- 1.7.1 — 2018-02-15
- 1.7.0 — 2017-10-11
- 1.6.0 — 2017-07-12
- 1.5.1 — 2017-06-03
- 1.5.0 — 2017-01-31
- 1.4.1 — 2017-01-03
- 1.4.0 — 2016-12-15
- 1.3.1 — 2016-10-14
- 1.3.0 — 2016-10-11
- … 21 more at https://npm.io/package/ethereumjs-block/versions

## README

# SYNOPSIS  
[![NPM Package](https://img.shields.io/npm/v/ethereumjs-block.svg?style=flat-square)](https://www.npmjs.org/package/ethereumjs-block)
[![Build Status](https://img.shields.io/travis/ethereumjs/ethereumjs-block.svg?branch=master&style=flat-square)](https://travis-ci.org/ethereumjs/ethereumjs-block)
[![Coverage Status](https://img.shields.io/coveralls/ethereumjs/ethereumjs-block.svg?style=flat-square)](https://coveralls.io/r/ethereumjs/ethereumjs-block)
[![Gitter](https://img.shields.io/gitter/room/ethereum/ethereumjs-lib.svg?style=flat-square)]() or #ethereumjs on freenode  

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)  


Implements schema and functions related to Ethereum's block. 

# INSTALL
`npm install ethereumjs-block`

# BROWSER  
This module work with `browserify`.

# API
[./docs](./docs/index.md)

# TESTING
Tests in the ``tests`` directory are partly outdated and testing is primarily done by running the ``BlockchainTests`` from within the [ethereumjs-vm](https://github.com/ethereumjs/ethereumjs-vm) repository.

Relevant test folders:
- ``bcTotalDifficultyTest``
- TODO

# LICENSE
[MPL-2.0](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2))

---
_Source: https://npm.io/package/ethereumjs-block · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
