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

@moosty/lisk-service-events

Package Overview
Dependencies
Maintainers
2
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moosty/lisk-service-events

Lisk service events

  • 0.0.135
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
136
increased by3300%
Maintainers
2
Weekly downloads
 
Created
Source

Lisk Service Events

Service events provider, you can access last block, forgers, fee estimates, transactions and round, through the useServiceEvents() hook.

+ import { ServiceEventsProvider } from "@moosty/lisk-service-events"

const App = () => {
  
  return (
    <LiskServiceProvider endpoints={targetNetwork}>
+      <ServiceEventsProvider>
        <... />
+      </ServiceEventsProvider>
    </LiskServiceProvider>)
}

Usage

import { useServiceEvents } from "@moosty/lisk-service-events"

const Component = () => {
  const {block, forgers, feeEstimates, transactions, round} = useServiceEvents()
}

This package exports:

import {
  ServiceEventsProvider, // Provider
  useServiceEvents, // Hook
  ServiceEventsProps, // Hook return interface
  BlockType, 
  FeeEstimatesType,
  ForgersType,
  RoundType,
  TransactionsType
} from "@moosty/lisk-service-events"

Keywords

FAQs

Package last updated on 11 Oct 2021

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