【文件属性】:
文件名称:ethereumjs-blockchain:项目正在积极开发中,并已移至EthereumJS VM monorepo
文件大小:33KB
文件格式:ZIP
更新时间:2021-02-05 08:26:13
ethereum blockchain blocks EthereumTypeScript
概要
或freenode上的#ethereumjs
用于存储块并与块进行交互的模块。
安装
npm install ethereumjs-blockchain
API
例
下面是一个示例,用于循环访问现有的Geth DB(需要单独安装的level )。
该模块执行写操作。 建议先尝试备份数据。 否则,您可能会遇到数据库状态受损的情况。
const level = require ( 'level' )
const Blockchain = require ( 'ethereumjs-blockchain' ) . default
const utils = require ( '
【文件预览】:
ethereumjs-blockchain-master
----.travis.yml(429B)
----docs()
--------classes()
--------interfaces()
--------README.md(163B)
----tsconfig.prod.json(188B)
----package.json(2KB)
----tslint.json(45B)
----.github()
--------workflows()
--------contributing.md(781B)
----test()
--------testdata.json(7KB)
--------index.ts(32KB)
--------util.ts(4KB)
----.prettierignore(51B)
----.nycrc(77B)
----prettier.config.js(56B)
----src()
--------dbManager.ts(4KB)
--------cache.ts(695B)
--------callbackify.ts(3KB)
--------index.ts(30KB)
--------util.ts(1KB)
----tsconfig.json(180B)
----.gitignore(1008B)
----CHANGELOG.md(10KB)
----README.md(2KB)