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

@digicat/ethereum-extract-contract-events

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digicat/ethereum-extract-contract-events

Extracts events from a particular contract from block or transaction logs

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@digicat/ethereum-extract-contract-events

Extracts events from a particular contract from block or transaction logs. Requires Node.js 8.6 or newer.

Usage

const extractContractEvents = require('@digicat/ethereum-extract-contract-events')

// Let's assume you can get a transaction receipt. It may include logs:
const receipt = await getTransactionReceipt('0xe9d7d2bc7b98b1e5090b9363453836ab89b290415e997acb8d773e4f46440c09')

const events = extractContractEvents({
  // ABI array of the contract (required).
  contractAbi: […],
  // Address of the contract. You'll get events emitted by this contract.
  contractAddress: '0xef3b47f7e4865c72565f448cc162945ea5bcdc1e',
  // Logs from a transaction receipt, or a block.
  logs: receipt.logs
})

Keywords

FAQs

Package last updated on 17 Oct 2017

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