
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
ethwatch-client
Advanced tools
Watch Ethereum/EVM log events in a secure, robust, and scalable way
EthWatch is a decentralized distribution network for EVM smart contract events. It allows apps to listen to events in a scalable and secure way, instead of polling a blockchain node via RPC or other centralized API.
EthWatch is great for oracles, bridges, and other blockchain-adjacent backends, as well as DEXes, DeFi pools, and other dapp frontends that wish to improve UX by displaying chain events in realtime.
EthWatch is currently heavily WIP. It shouldn't be relied on by anything valuable.
Check out a live demo here.
This is the JS library that web and node.js-based apps can use to subscribe to smart contract events via EthWatch.
npm install ethwatch-client
import { EthWatch } from 'ethwatch-client'
const ethWatch = new EthWatch({
chain: 'ethereum'
})
ethWatch.watch(contractAddress, abi).then((contract) => {
contract.on('event', (event) => {
console.log(event.parsed)
})
})
The EthWatch
constructor options and their default values:
const ethWatch = new EthWatch({
chain: 'ethereum', // Name of the chain to connect to
quorum: 0.5, // Between 0 and 1, this is the ratio of seed nodes that must report an event before it's passed to the application
})
TODO: tests TODO: handle changes in seed node set TODO: ability to wait N block confirmations on top of events TODO: optimize web package size (by only bringing in relevant modules of ethers?)
FAQs
Watch Ethereum/EVM log events in a secure, robust, and scalable way
The npm package ethwatch-client receives a total of 5 weekly downloads. As such, ethwatch-client popularity was classified as not popular.
We found that ethwatch-client 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
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.