{"name":"@ethereumjs/block","version":"10.1.2","keywords":["ethereum","block"],"author":{"url":"mb@ethdev.com","name":"mjbecze"},"license":"MPL-2.0","_id":"@ethereumjs/block@10.1.2","maintainers":[{"name":"axic","email":"alex@rtfs.hu"},{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},{"name":"acolytec3","email":"metroman374@gmail.com"},{"name":"g11tech","email":"gajinder@g11.in"}],"homepage":"https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/block#readme","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+block%22"},"dist":{"shasum":"8489f1da780a08b42925215e783b43635bdb7ef2","tarball":"http://registry-npm.ywwl.com/@ethereumjs/block/download/@ethereumjs/block-10.1.2.tgz","fileCount":133,"integrity":"sha512-VNH6sRKsHacsOFiizeY98L6eQhMw7bRavbacUUwcFIXe6IgeKLT0y3QCcS55dJGJDGtb/TsJnas1dt411K2Vzw==","signatures":[{"sig":"MEQCIBdzhQFKYZvo7m36bngSWmB7kIw4bfOS7bU9sJVPhmsoAiBfs52yh5VjRXokKXancmlVTslIbaPJkEnQjFBSkBKkYg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":645732,"size":120701,"noattachment":false,"key":"/@ethereumjs/block/-/@ethereumjs/block-10.1.2.tgz"},"main":"dist/cjs/index.js","type":"module","types":"./dist/cjs/index.d.ts","module":"dist/esm/index.js","engines":{"node":">=20"},"exports":{".":{"import":{"default":"./dist/esm/index.js","typescript":"./src/index.ts"},"require":"./dist/cjs/index.js"}},"gitHead":"28d6a165971964f239b77004196c6c0e87697835","scripts":{"sc":"npm run spellcheck","tsc":"../../config/cli/ts-compile.sh","lint":"npm run biome && eslint  --config ./eslint.config.mjs .","test":"npm run test:node && npm run test:browser","biome":"npx @biomejs/biome check","build":"../../config/cli/ts-build.sh","clean":"../../config/cli/clean-package.sh","coverage":"DEBUG=ethjs npx vitest run -c ../../config/vitest.config.coverage.mts","examples":"tsx ../../scripts/examples-runner.ts -- block","lint:fix":"npm run biome:fix && eslint  --fix --config ./eslint.config.mjs .","biome:fix":"npx @biomejs/biome check --write","test:node":"npx vitest run -c ../../config/vitest.config.mts","docs:build":"typedoc --options typedoc.mjs","spellcheck":"npm run spellcheck:ts && npm run spellcheck:md","test:browser":"npx vitest run --config=../../config/vitest.config.browser.mts","spellcheck:md":"npx cspell --gitignore -c ../../config/cspell-md.json \"**.md\" --cache --show-suggestions --show-context","spellcheck:ts":"npx cspell --gitignore -c ../../config/cspell-ts.json \"./**/*.ts\" --cache --show-suggestions --show-context","examples:build":"npx embedme README.md","prepublishOnly":"../../config/cli/prepublish.sh","coverage:istanbul":"DEBUG=ethjs npx vitest run -c ../../config/vitest.config.coverage.istanbul.mts"},"_npmUser":{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},"repository":{"url":"git+https://github.com/ethereumjs/ethereumjs-monorepo.git","type":"git"},"_npmVersion":"11.12.1","description":"Provides Block serialization and help functions","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"@noble/curves":"^2.0.1","@noble/hashes":"^2.0.1","@ethereumjs/tx":"^10.1.2","@ethereumjs/mpt":"^10.1.2","@ethereumjs/rlp":"^10.1.2","@ethereumjs/util":"^10.1.2","@ethereumjs/common":"^10.1.2"},"_hasShrinkwrap":false,"devDependencies":{"micro-eth-signer":"^0.15.0","@ethereumjs/testdata":"1.0.0","@paulmillr/trusted-setups":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/block_10.1.2_1780056677185_0.4885927054612875","host":"s3://npm-registry-packages-npm-production"},"readme":"# @ethereumjs/block `v10`\n\n[![NPM Package][block-npm-badge]][block-npm-link]\n[![GitHub Issues][block-issues-badge]][block-issues-link]\n[![Actions Status][block-actions-badge]][block-actions-link]\n[![Code Coverage][block-coverage-badge]][block-coverage-link]\n[![Discord][discord-badge]][discord-link]\n\n| Implements schema and functions related to Ethereum blocks. |\n| ----------------------------------------------------------- |\n\n- 🦄 All block features till **Osaka**\n- 🌴 Tree-shakeable API\n- 👷🏼 Controlled dependency set (4 external + `@noble` crypto)\n- 🔮 `EIP-4844` Shard Blob Txs\n- 🔮 `EIP-7594` PeerDAS Blob Transactions\n- 💸 `EIP-4895` Beacon Chain Withdrawals\n- 📨 `EIP-7685` Consensus Layer Requests\n- 📋 `EIP-7928` Block Level Access List Hash (Amsterdam, experimental)\n- 🕐 `EIP-7843` Slot Number header field (Amsterdam, experimental)\n- 🛵 324KB bundle size (81KB gzipped)\n- 🏄🏾‍♂️ WASM-free default + Fully browser ready\n\nRunnable examples live in [`examples/`](./examples/).\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n- [Creating Blocks](#creating-blocks)\n- [EIP-1559 Base Fee](#eip-1559-base-fee)\n- [EIP-4895 Withdrawals](#eip-4895-withdrawals)\n- [EIP-4844 Blob Blocks](#eip-4844-blob-blocks)\n- [EIP-7685 CL Requests](#eip-7685-cl-requests)\n- [EIP-7928 Block Access List Hash](#eip-7928-block-access-list-hash)\n- [EIP-7843 Slot Number](#eip-7843-slot-number)\n- [Consensus Types](#consensus-types)\n- [Browser](#browser)\n- [API](#api)\n- [Testing](#testing)\n- [EthereumJS](#ethereumjs)\n- [License](#license)\n\n## Installation\n\n```shell\nnpm install @ethereumjs/block\n```\n\n**Note:** For `EIP-4844` blob blocks you need a KZG setup on `Common` — see [@ethereumjs/tx KZG setup](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/tx#kzg-setup).\n\n## Getting Started\n\n`Block` and `BlockHeader` objects are created via standalone factory functions (not `new Block()`). Properties are frozen by default (`freeze: false` to opt out).\n\n```ts\n// ./examples/createBlockHeader.ts\n\nimport { createBlockHeader } from '@ethereumjs/block'\nimport { bytesToHex } from '@ethereumjs/util'\n\nimport type { HeaderData } from '@ethereumjs/block'\n\nconst headerData: HeaderData = {\n  number: 15,\n  parentHash: '0x6bfee7294bf44572b7266358e627f3c35105e1c3851f3de09e6d646f955725a7',\n  gasLimit: 8000000,\n  timestamp: 1562422144,\n}\nconst header = createBlockHeader(headerData)\nconsole.log(`Created block header with hash=${bytesToHex(header.hash())}`)\n```\n\nMain constructors:\n\n| Factory | Purpose |\n| --- | --- |\n| `createBlock()` | Full block from `BlockData` |\n| `createEmptyBlock()` | Block with header only |\n| `createBlockFromRLP()` | Decode serialized block bytes |\n| `createBlockFromRPC()` / `createBlockFromJSONRPCProvider()` | From JSON-RPC block object |\n| `createBlockFromExecutionPayload()` / `createBlockFromBeaconPayloadJSON()` | From CL execution payload |\n| `createBlockHeader()` | Header-only variants of the above |\n\nTrie helpers: `genTransactionsTrieRoot()`, `genWithdrawalsTrieRoot()`, `genRequestsRoot()`.\n\n## Creating Blocks\n\n### With transactions\n\n```ts\n// ./examples/createBlockWithTxs.ts\n\nimport { createBlock, genTransactionsTrieRoot } from '@ethereumjs/block'\nimport { Common, Mainnet } from '@ethereumjs/common'\nimport { createFeeMarket1559Tx } from '@ethereumjs/tx'\nimport { bytesToHex, createAddressFromString, hexToBytes } from '@ethereumjs/util'\n\nconst main = async () => {\n  const common = new Common({ chain: Mainnet })\n  const privateKey = hexToBytes('0xe331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109')\n\n  const tx = createFeeMarket1559Tx(\n    {\n      type: 2,\n      nonce: 0n,\n      gasLimit: 21_000n,\n      maxFeePerGas: 100n,\n      maxPriorityFeePerGas: 1n,\n      to: createAddressFromString('0xcccccccccccccccccccccccccccccccccccccccc'),\n      value: 1n,\n    },\n    { common },\n  ).sign(privateKey)\n\n  const block = createBlock({ transactions: [tx] }, { common, skipConsensusFormatValidation: true })\n  const transactionsRoot = await genTransactionsTrieRoot(block.transactions)\n\n  console.log(`Block with ${block.transactions.length} transaction(s)`)\n  console.log(`Transactions root: ${bytesToHex(transactionsRoot)}`)\n}\n\nvoid main()\n```\n\n### RLP round-trip\n\n```ts\n// ./examples/blockFromRLP.ts\n\nimport { createBlock, createBlockFromRLP } from '@ethereumjs/block'\nimport { Common, Mainnet } from '@ethereumjs/common'\nimport { bytesToHex } from '@ethereumjs/util'\n\nconst common = new Common({ chain: Mainnet })\n\nconst block = createBlock(\n  {\n    header: {\n      number: 1n,\n      gasLimit: 30_000_000n,\n    },\n  },\n  { common, skipConsensusFormatValidation: true },\n)\n\nconst serialized = block.serialize()\nconst decoded = createBlockFromRLP(serialized, { common })\n\nconsole.log(`Serialized ${serialized.length} bytes`)\nconsole.log(`Round-trip hash match: ${bytesToHex(decoded.hash()) === bytesToHex(block.hash())}`)\n```\n\nCall `await block.validateData()` to run consensus and transaction checks. Use `skipConsensusFormatValidation: true` in examples and tests when header fields are intentionally incomplete.\n\n## EIP-1559 Base Fee\n\nBlocks created with default Mainnet `Common` are [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) compatible. `BlockHeader.calcNextBaseFee()` computes the base fee for the child block.\n\n```ts\n// ./examples/1559.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Mainnet } from '@ethereumjs/common'\nimport { createTx } from '@ethereumjs/tx'\nconst common = new Common({ chain: Mainnet })\n\nconst block = createBlock(\n  {\n    header: {\n      baseFeePerGas: BigInt(10),\n      gasLimit: BigInt(100),\n      gasUsed: BigInt(60),\n    },\n  },\n  { common },\n)\n\n// Base fee will increase for next block since the\n// gas used is greater than half the gas limit\nconsole.log(Number(block.header.calcNextBaseFee())) // 11\n\n// So for creating a block with a matching base fee in a certain\n// chain context you can do:\nconst blockWithMatchingBaseFee = createBlock(\n  {\n    header: {\n      baseFeePerGas: block.header.calcNextBaseFee(),\n      gasLimit: BigInt(100),\n      gasUsed: BigInt(60),\n    },\n  },\n  { common },\n)\n\nconsole.log(Number(blockWithMatchingBaseFee.header.baseFeePerGas)) // 11\n\n// successful validation does not throw error\nawait blockWithMatchingBaseFee.validateData()\n\n// failed validation throws error\nconst tx = createTx(\n  { type: 2, maxFeePerGas: BigInt(20) },\n  { common: new Common({ chain: Mainnet }) },\n)\nblockWithMatchingBaseFee.transactions.push(tx)\nconsole.log(blockWithMatchingBaseFee.getTransactionsValidationErrors()) // invalid transaction added to block\ntry {\n  await blockWithMatchingBaseFee.validateData()\n} catch (err) {\n  console.log(`Expected validation failure: ${(err as Error).message.split('\\n')[0]}`)\n}\n```\n\n## EIP-4895 Withdrawals\n\nShanghai+ blocks carry beacon-chain withdrawals. Provide `withdrawals` and a matching `withdrawalsRoot`:\n\n```ts\n// ./examples/withdrawals.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Mainnet } from '@ethereumjs/common'\nimport { Address, hexToBytes } from '@ethereumjs/util'\n\nimport type { WithdrawalData } from '@ethereumjs/util'\n\nconst common = new Common({ chain: Mainnet })\n\nconst withdrawal: WithdrawalData = {\n  index: BigInt(0),\n  validatorIndex: BigInt(0),\n  address: new Address(hexToBytes(`0x${'20'.repeat(20)}`)),\n  amount: BigInt(1000),\n}\n\nconst block = createBlock(\n  {\n    header: {\n      withdrawalsRoot: hexToBytes(\n        '0x69f28913c562b0d38f8dc81e72eb0d99052444d301bf8158dc1f3f94a4526357',\n      ),\n    },\n    withdrawals: [withdrawal],\n  },\n  {\n    common,\n  },\n)\n\nconsole.log(`Block with ${block.withdrawals!.length} withdrawal(s) created`)\n```\n\nValidate the withdrawals trie with `await block.withdrawalsTrieIsValid()`.\n\n## EIP-4844 Blob Blocks\n\nCancun+ blocks include `excessBlobGas` and `blobGasUsed`. Blob txs require KZG on `Common`:\n\n```ts\n// ./examples/eip4844Block.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Hardfork, Mainnet } from '@ethereumjs/common'\nimport { createBlob4844Tx } from '@ethereumjs/tx'\nimport { createAddressFromPrivateKey } from '@ethereumjs/util'\nimport { randomBytes } from '@noble/hashes/utils.js'\nimport { trustedSetup } from '@paulmillr/trusted-setups/fast-peerdas.js'\nimport { KZG as microEthKZG } from 'micro-eth-signer/kzg.js'\n\nconst main = async () => {\n  const kzg = new microEthKZG(trustedSetup)\n\n  const common = new Common({\n    chain: Mainnet,\n    customCrypto: {\n      kzg,\n    },\n    hardfork: Hardfork.Cancun,\n  })\n  const blobTx = createBlob4844Tx(\n    { blobsData: ['myFirstBlob'], to: createAddressFromPrivateKey(randomBytes(32)) },\n    { common },\n  )\n\n  const block = createBlock(\n    {\n      header: {\n        excessBlobGas: 0n,\n      },\n      transactions: [blobTx],\n    },\n    {\n      common,\n      skipConsensusFormatValidation: true,\n    },\n  )\n\n  console.log(\n    `4844 block header with excessBlobGas=${block.header.excessBlobGas} created and ${\n      block.transactions.filter((tx) => tx.type === 3).length\n    } blob transactions`,\n  )\n}\n\nvoid main()\n```\n\nBlob gas pricing from the header:\n\n```ts\n// ./examples/blobGasPrice.ts\n\nimport { createBlockHeader } from '@ethereumjs/block'\nimport { Common, Hardfork, Mainnet } from '@ethereumjs/common'\n\nconst common = new Common({ chain: Mainnet, hardfork: Hardfork.Cancun })\nconst header = createBlockHeader({ excessBlobGas: 1_000_000n }, { common })\n\nconsole.log(`Blob gas price at excessBlobGas=1_000_000: ${header.getBlobGasPrice()}`)\n```\n\n## EIP-7685 CL Requests\n\nPrague+ blocks carry a `requestsHash` over sorted consensus-layer requests. Use `genRequestsRoot()` and `@ethereumjs/util` request types:\n\n```ts\n// ./examples/clrequests.ts\n\nimport { createBlock, genRequestsRoot } from '@ethereumjs/block'\nimport { Common, Hardfork, Mainnet } from '@ethereumjs/common'\nimport { bytesToHex, createCLRequest, hexToBytes } from '@ethereumjs/util'\nimport { sha256 } from '@noble/hashes/sha2.js'\n\nconst common = new Common({ chain: Mainnet, hardfork: Hardfork.Prague })\n\nconst depositData = hexToBytes(\n  '0x00ac842878bb70009552a4cfcad801d6e659c50bd50d7d03306790cb455ce7363c5b6972f0159d170f625a99b2064dbefc010000000000000000000000818ccb1c4eda80270b04d6df822b1e72dd83c3030040597307000000a747f75c72d0cf0d2b52504c7385b516f0523e2f0842416399f42b4aee5c6384a5674f6426b1cc3d0827886fa9b909e616f5c9f61f986013ed2b9bf37071cbae951136265b549f44e3c8e26233c0433e9124b7fd0dc86e82f9fedfc0a179d7690000000000000000',\n)\nconst withdrawalData = hexToBytes(\n  '0x01000000000000000000000000000000000000000001000000000000000000000de0b6b3a7640000',\n)\nconst consolidationData = hexToBytes('0x020000000100000000000000000000000000000000000001')\n\n// Requests must be sorted by type (Deposit=0, Withdrawal=1, Consolidation=2)\nconst requests = [\n  createCLRequest(depositData),\n  createCLRequest(withdrawalData),\n  createCLRequest(consolidationData),\n]\n\nconst requestsHash = genRequestsRoot(requests, sha256)\nconst block = createBlock({ header: { requestsHash } }, { common })\n\nconsole.log(`Created ${requests.length} CL requests`)\nconsole.log(`requestsHash: ${bytesToHex(requestsHash)}`)\nconsole.log(`Block hash: ${bytesToHex(block.hash())}`)\n```\n\n## EIP-7928 Block Access List Hash\n\nSee the [canonical Amsterdam overview](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/vm#amsterdam-hardfork-experimental) in `@ethereumjs/vm` for release ↔ spec tracking.\n\nWhen [EIP-7928](https://eips.ethereum.org/EIPS/eip-7928) is active (`Hardfork.Amsterdam`, experimental), blocks carry a `blockAccessListHash` header field. Compute it with `@ethereumjs/util` or obtain it from `runBlock({ generate: true })` in the VM.\n\n```ts\n// ./examples/blockAccessListHash.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Hardfork, Mainnet } from '@ethereumjs/common'\nimport { bytesToHex, createBlockLevelAccessListFromJSON } from '@ethereumjs/util'\n\nconst main = () => {\n  const common = new Common({ chain: Mainnet, hardfork: Hardfork.Amsterdam })\n\n  const balJson = [\n    {\n      address: '0x0000000000000000000000000000000000000001',\n      storageChanges: [],\n      storageReads: [],\n      balanceChanges: [{ blockAccessIndex: '0x01', postBalance: '0x03e8' }],\n      nonceChanges: [],\n      codeChanges: [],\n    },\n  ]\n\n  const bal = createBlockLevelAccessListFromJSON(balJson)\n  const block = createBlock(\n    {\n      header: {\n        blockAccessListHash: bal.hash(),\n      },\n    },\n    { common, skipConsensusFormatValidation: true },\n  )\n\n  console.log(`blockAccessListHash: ${bytesToHex(block.header.blockAccessListHash!)}`)\n  console.log(`matches BAL hash: ${bytesToHex(bal.hash())}`)\n  console.log(`hash length: ${block.header.blockAccessListHash!.length} bytes`)\n}\n\nvoid main()\n```\n\n## EIP-7843 Slot Number\n\nWhen [EIP-7843](https://eips.ethereum.org/EIPS/eip-7843) is active (`Hardfork.Amsterdam`, experimental), blocks carry a `slotNumber` header field. Set it explicitly when constructing blocks, or let `buildBlock()` default it from `parent.slotNumber + 1`. `runBlock({ generate: true })` does not invent a consensus slot. The EVM `SLOTNUM` opcode (`0x4b`) reads this field — see [`@ethereumjs/evm` SLOTNUM](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/evm#eip-7843-slotnum-opcode-amsterdam).\n\n```ts\n// ./examples/blockSlotNumber.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Hardfork, Mainnet } from '@ethereumjs/common'\n\nconst main = () => {\n  const common = new Common({ chain: Mainnet, hardfork: Hardfork.Amsterdam })\n\n  const block = createBlock(\n    {\n      header: {\n        slotNumber: 42n,\n      },\n    },\n    { common, skipConsensusFormatValidation: true },\n  )\n\n  console.log(`slotNumber: ${block.header.slotNumber}`)\n}\n\nvoid main()\n```\n\n## Consensus Types\n\n### Proof-of-Stake (default)\n\nPost-merge blocks (`Hardfork.Paris` and higher) use PoS header rules — difficulty `0`, no ommers, and related [EIP-3675](https://eips.ethereum.org/EIPS/eip-3675) changes:\n\n```ts\n// ./examples/pos.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Mainnet } from '@ethereumjs/common'\n\nconst common = new Common({ chain: Mainnet })\n\nconst block = createBlock(\n  {\n    // Provide your block data here or use default values\n  },\n  { common },\n)\n\nconsole.log(`Proof-of-Stake (default) block created with hardfork=${block.common.hardfork()}`)\n```\n\n### Ethash / PoW\n\nPre-merge or dedicated PoW chains:\n\n```ts\n// ./examples/pow.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Hardfork, Mainnet } from '@ethereumjs/common'\n\nconst common = new Common({ chain: Mainnet, hardfork: Hardfork.Chainstart })\n\nconsole.log(common.consensusType()) // 'pow'\nconsole.log(common.consensusAlgorithm()) // 'ethash'\n\ncreateBlock({}, { common })\nconsole.log(`Old Proof-of-Work block created`)\n```\n\nPass `calcDifficultyFromHeader` with the parent header to auto-compute difficulty.\n\n### Clique / PoA\n\nFor historical PoA testnet blocks (e.g. Goerli). Use `createSealedCliqueBlock()` with a `cliqueSigner` key to seal on instantiation:\n\n```ts\n// ./examples/clique.ts\n\nimport { createBlock } from '@ethereumjs/block'\nimport { Common, Hardfork } from '@ethereumjs/common'\nimport { goerliChainConfig } from '@ethereumjs/testdata'\n\nconst common = new Common({ chain: goerliChainConfig, hardfork: Hardfork.Chainstart })\n\nconsole.log(common.consensusType()) // 'poa'\nconsole.log(common.consensusAlgorithm()) // 'clique'\n\ncreateBlock({ header: { extraData: new Uint8Array(97) } }, { common })\nconsole.log(`Old Clique Proof-of-Authority block created`)\n```\n\nClique utility functions (`cliqueSigner`, `cliqueVerifySignature`, …) throw outside a PoA context.\n\n## Browser\n\nWe provide hybrid ESM/CJS builds for all our libraries. With the v10 breaking release round from Spring 2025, all libraries are \"pure-JS\" by default and we have eliminated all hard-wired WASM code. Additionally we have substantially lowered the bundle sizes, reduced the number of dependencies, and cut out all usages of Node.js-specific primitives (like the Node.js event emitter).\n\nIt is easily possible to run a browser build of one of the EthereumJS libraries within a modern browser using the provided ESM build. For a setup example see [./examples/browser.html](./examples/browser.html).\n\n## API\n\nGenerated TypeDoc [documentation](./docs/README.md).\n\nEvery `Block` / `BlockHeader` is built with a `Common` instance that determines the active hardfork, EIP set, and validation rules. See [@ethereumjs/common](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/common) for chain configuration.\n\nWASM crypto backends can be plugged in via `Common.customCrypto` — see the [common README](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/common#custom-cryptography-wasm--kzg).\n\n## Testing\n\nTests in the `tests` directory are partly outdated; primary coverage comes from `BlockchainTests` in [@ethereumjs/vm](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/vm).\n\nTo wrap [ethereum/tests](https://github.com/ethereum/tests) JSON fixtures locally, use [wrap-ethereum-test.sh](./scripts/wrap-ethereum-test.sh).\n\n## EthereumJS\n\nThe `EthereumJS` GitHub organization and its repositories are managed by members of the former Ethereum Foundation JavaScript team and the broader Ethereum community. If you want to join for work or carry out improvements on the libraries see the [developer docs](../../DEVELOPER.md) for an overview of current standards and tools and review our [code of conduct](../../CODE_OF_CONDUCT.md).\n\n## License\n\n[MPL-2.0](<https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2)>)\n\n[discord-badge]: https://img.shields.io/static/v1?logo=discord&label=discord&message=Join&color=blue\n[discord-link]: https://discord.gg/TNwARpR\n[block-npm-badge]: https://img.shields.io/npm/v/@ethereumjs/block.svg\n[block-npm-link]: https://www.npmjs.com/package/@ethereumjs/block\n[block-issues-badge]: https://img.shields.io/github/issues/ethereumjs/ethereumjs-monorepo/package:%20block?label=issues\n[block-issues-link]: https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aopen+is%3Aissue+label%3A\"package%3A+block\"\n[block-actions-badge]: https://github.com/ethereumjs/ethereumjs-monorepo/workflows/Block/badge.svg\n[block-actions-link]: https://github.com/ethereumjs/ethereumjs-monorepo/actions?query=workflow%3A%22Block%22\n[block-coverage-badge]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/branch/master/graph/badge.svg?flag=block\n[block-coverage-link]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/tree/master/packages/block\n","publish_time":1780056677361,"_cnpm_publish_time":1780056677361,"dist-tags":{"alpha":"6.0.0-alpha.1","beta":"4.0.0-beta.3","latest":"10.1.3","nightly":"10.1.1-nightly.2","rc":"10.0.0-rc.1"}}