Socket
Socket
Sign inDemoInstall

@moosty/lisk-connection-provider

Package Overview
Dependencies
12
Maintainers
2
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @moosty/lisk-connection-provider

Lisk connection provider component to connect react to Lisk endpoints


Version published
Weekly downloads
138
increased by590%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Lisk Connection Provider

Usage

import { useLiskService } from "@moosty/lisk-connection-provider"

const Component = () => {
  const { serviceClient } = useLiskService()
  
  useEffect(() => {
    const getBlocks = async () => {
      console.log(await serviceClient.get('get.blocks', {limit: 10}))
    }
    if (serviceClient) {
      getBlocks()
    }
  }, [serviceClient])
}

This package exports:

import {
  useLiskService,
  ServiceRPCController,
  ConnectionState,
  ConnectionProviderProps,
  NetworkEndpoint,
} from "@moosty/lisk-connection-provider"

Keywords

FAQs

Last updated on 11 Oct 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc