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

@moosty/lisk-service-provider

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-provider

Lisk service provider component to connect react to Lisk service

  • 0.0.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
133
increased by6550%
Maintainers
2
Weekly downloads
 
Created
Source

Lisk Service Provider

With Lisk Service provider, you can access the lisk service apis.

import { LiskServiceProvider } from "@moosty/lisk-service-provider"

const targetNetwork = [
  {
    host: "wss://gateway-testnet.liskscan.com",
    type: "serviceRPC",
  },
]

ReactDOM.render(
  +<LiskServiceProvider endpoints={targetNetwork}>
    <App />
    + </LiskServiceProvider>,
  document.getElementById("root"),
)

Usage

also see @moosty/lisk-connection-provider

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

const Component = () => {
  const {
    endpoints,
    connections,
    serviceClient, // see @moosty/lisk-connection-provider
    coreClient,
  } = useLiskService()
}

This package exports:

import {
  LiskServiceProvider, // Provider
  NetworkEndpoint,
  ConnectionProviderProps,
  ConnectionState,
  LiskClientContext,
  useLiskService,
  ServiceRPCController

} from "@moosty/lisk-service-provider"

Keywords

FAQs

Package last updated on 16 Aug 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