Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xlnt/scry-one

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xlnt/scry-one

An Ethereum event watcher that's really resilient and nice.

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

scry-one

A Magic the Gathering themed ethereum event awaiter that supports confirmations and is very resilient against geth/parity irregularities.

Usage

npm install --save @xlnt/scry-one
new Watcher(
    'http://127.0.0.1:8545',  // your
    [/* An array of ABIs that you might be searching against. */],
    2,   // how many confirmations do you need?
    500  // the interval with which you'd like to poll your node
)

and then give it a txHash somehow

const log = await watcher.scry(txHash, 'MyEvent')

console.log(`
    Found log:      ${log.fullName}
    with arguments: ${JSON.stringify(log.args)}
    in txHash:      ${txHash}
`)

... that's about it.

See examples/test.js for more info.

FAQs

Package last updated on 08 May 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc