@moosty/lisk-connection-provider
TypeScript icon, indicating that this package has built-in type declarations

0.0.137 • Public • Published

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"

Package Sidebar

Install

npm i @moosty/lisk-connection-provider

Weekly Downloads

4

Version

0.0.137

License

none

Unpacked Size

52.4 kB

Total Files

27

Last publish

Collaborators

  • moostyteam
  • corbifex