Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
github.com/star2478/go-ethereum-blockchain-parser
go get github.com/ethereum/go-ethereum
go get github.com/deckarep/golang-set
geth --rpc
启动geth的http服务器go run synBlockTime.go
,将本地所有block的编号和时间写入blocktime文件。当我们使用后面功能时,脚本会从blocktime中读取出生成于[timeFrom]到[timeTo]间的所有block编号,再根据block编号获取block详细信息。因此,如果不执行该操作,blocktime文件可能未记录最新block,使用后面功能时就无法获取最新block的详细信息go run getAccount.go [timeFrom] [timeTo]
, 比如go run getAccount.go 2018-01-01-00-00-00 2018-02-01-00-00-00
。结果会存到accounts目录下,文件名为[timeFrom]-[timeTo]go run getBalance.go [timeFrom] [timeTo]
, 比如go run getBalance.go 2018-01-01-00-00-00 2018-02-01-00-00-00
。结果会存到balance目录下,文件名为[timeFrom]-[timeTo]。注意:执行此命令前需要先执行go run getAccount.go [timeFrom] [timeTo]
go run getTxByTime.go [timeFrom] [timeTo]
, 比如go run getTxByTime.go 2018-01-01-00-00-00 2018-02-01-00-00-00
。结果会存到tx目录下,文件名为[timeFrom]-[timeTo]。同时还会产生另外两个文件[timeFrom]-[timeTo]-from-sort和[timeFrom]-[timeTo]-to-sort,分别存放以交易卖出账户和买进账户排序后的结果go run getTxTimelineGroupByAccount.go [timeFrom] [timeTo]
, 比如go run getTxTimelineGroupByAccount.go 2018-01-01-00-00-00 2018-02-01-00-00-00
。结果会存到tx目录下,文件名为[timeFrom]-[timeTo]-timeline。注意:执行此命令前需要先执行go run getTxByTime.go [timeFrom] [timeTo]
go run getTxCountGroupByAccount.go [timeFrom] [timeTo]
, 比如go run getTxCountGroupByAccount.go 2018-01-01-00-00-00 2018-02-01-00-00-00
。结果会存到tx目录下,文件名为[timeFrom]-[timeTo]-count。注意:执行此命令前需要先执行go run getTxByTime.go [timeFrom] [timeTo]
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.