
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
web3-block-helper
Advanced tools
help users quickly find blocks by date
// install
npm install web3-block-helper
// how to use
const provider = ethers.providers.JsonRpcProvider(xxx);
// default block diff timestamp 3s (bsc)
const blockDiffTimestamp = {
value: 3,
unit: 'seconds', // 'seconds' | 'minutes' | 'hours'
}
const blockHelper = new BlockHelper(provider, blockDiffTimestamp);
// default current block number
await blockHelper.init(/* custom block */)
// get next 7 days block
const featBlock = await blockHelper.add(7, 'day');
console.log(featBlock);
// get pre 7 days block
await preBlock = await blockHelper.subtract(7, 'day');
console.log(preBlock);
add
referenc dayjs add
special unit: 'block'
// will returns dayjs instance
const dateObj = await blockHelper.add(1, 'block');
const date = dateObj.format();
subtract
referenc dayjs subtract
special unit: 'block'
// will returns dayjs instance
const dateObj = await blockHelper.subtract(1, 'block');
const date = dateObj.format();
FAQs
help users quickly find blocks by date
The npm package web3-block-helper receives a total of 0 weekly downloads. As such, web3-block-helper popularity was classified as not popular.
We found that web3-block-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.