open-index/open-npm huggingface dataset:
npm package: @moosty/lisk-connection-provider
Description: Lisk connection provider component to connect react to Lisk endpoints
Author: Moosty
Latest version: 0.0.137

# Lisk Connection Provider

# Usage
```jsx
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:

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