open-index/open-npm huggingface dataset:
npm package: @pezkuwi/networks
Description: A list of all available Bizinikiwi networks and their applicable prefixes
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/networks

A list of all available Bizinikiwi networks and their applicable prefixes.

This list is periodically checked against the master list available at https://github.com/paritytech/ss58-registry/blob/main/ss58-registry.json
npm package: @pezkuwi/phishing
Description: Simple phishing scripts from a central source
Author: Dijital Kurdistan Tech Inst
Latest version: 0.25.28

# @pezkuwi/phishing

To check for sites that are on the list -

```js
import { checkIfDenied } from '@pezkuwi/phishing';

const isOnDeny = await checkIfDenied(window.location.host);

console.log(`isOnDeny=${isOnDeny}`);
```

To check for addresses that are on the list -

```js
import { checkAddress } from '@pezkuwi/phishing';

const info = await checkAddress('1b....');

if (info) {
  console.log(`The address is reported as ${info}`);
} else {
  console.log('Not reported');
}
```
npm package: @pezkuwi/react-identicon
Description: Renders an SVG picture representing an address
Author: Jaco Greeff
Latest version: 3.17.2

# @pezkuwi/react-identicon

A generic identity icon that can render icons based on the theme, be it Substrate or Polkadot

## Usage Examples

To install the component, do `yarn add @pezkuwi/react-identicon`

Inside a React component, you can now render any account with the associated icon -

```javascript
import Identicon from '@pezkuwi/react-identicon';

...
render () {
  // address is an ss58-encoded address or publicKey (hex string or Uint8Array)
  const { address } = this.props;
  // size (optional) is a number, indicating the size (in pixels, 64 as default)
  const size = 32;
  // theme (optional), depicts the type of icon, one of
  // 'polkadot', 'substrate' (default), 'beachball' or 'jdenticon'
  const theme = 'polkadot';

  // standard className & style props are also available
  return (
    <Identicon
      value={address}
      size={size}
      theme={theme}
    />
  );
}
...
```
npm package: @pezkuwi/react-qr
Description: Generates and reads QR codes
Author: Jaco Greeff
Latest version: 3.17.2

# @pezkuwi/react-qr

A Qr-code component that allows for the transfer of addresses and transaction payloads to and from external readers. It implements the [Universal Offline Signatures](https://github.com/maciejhirsz/uos) specification to read and generated QR codes.
npm package: @pezkuwi/reactnative-identicon
Description: Renders an SVG picture representing an address
Author: Jaco Greeff
Latest version: 3.17.2

# @pezkuwi/reactnative-identicon

A generic identity icon that can render icons based on an address.

## Usage Examples

To install the component, do `yarn add @pezkuwi/reactnative-identicon`

Inside a React component, you can now render any account with the associated icon -

```javascript
import Identicon from '@pezkuwi/reactnative-identicon';

...
render () {
  // address is an ss58-encoded address or publicKey (hex string or Uint8Array)
  const { address } = this.props;
  // size (optional) is a number, indicating the size (in pixels, 64 as default)
  const size = 32;

  // standard className & style props are also available
  return (
    <Identicon
      value={address}
      size={size}
    />
  );
}
...
```
npm package: @pezkuwi/rpc-provider
Description: Transport providers for the API
Author: PezkuwiChain
Latest version: 16.5.36

# @pezkuwi/rpc-provider

Generic transport providers to handle the transport of method calls to and from Pezkuwi clients from applications interacting with it. It provides an interface to making RPC calls and is generally, unless you are operating at a low-level and taking care of encoding and decoding of parameters/results, it won't be directly used, rather only passed to a higher-level interface.

## Provider Selection

There are three flavours of the providers provided, one allowing for using HTTP as a transport mechanism, the other using WebSockets, and the third one uses bizinikiwi light-client through @bizinikiwi/connect. It is generally recommended to use the [[WsProvider]] since in addition to standard calls, it allows for subscriptions where all changes to state can be pushed from the node to the client.

All providers are usable (as is the API), in both browser-based and Node.js environments. Polyfills for unsupported functionality are automatically applied based on feature-detection.

## Usage

Installation -

```
yarn add @pezkuwi/rpc-provider
```

WebSocket Initialization -

```javascript
import { WsProvider } from '@pezkuwi/rpc-provider';

// this is the actual default endpoint
const provider = new WsProvider('ws://127.0.0.1:9944');
const version = await provider.send('client_version', []);

console.log('client version', version);
```

HTTP Initialization -

```javascript
import { HttpProvider } from '@pezkuwi/rpc-provider';

// this is the actual default endpoint
const provider = new HttpProvider('http://127.0.0.1:9933');
const version = await provider.send('chain_getBlockHash', []);

console.log('latest block Hash', hash);
```

@bizinikiwi/connect Initialization -

Instantiating a Provider for the Pezkuwi Relay Chain:
```javascript
import { ScProvider } from '@pezkuwi/rpc-provider';
import * as Sc from '@bizinikiwi/connect';

const provider = new ScProvider(Sc, Sc.WellKnownChain.pezkuwi);

await provider.connect();

const version = await provider.send('chain_getBlockHash', []);
```

Instantiating a Provider for a Pezkuwi teyrchain:
```javascript
import { ScProvider } from '@pezkuwi/rpc-provider';
import * as Sc from '@bizinikiwi/connect';

const pezkuwiProvider = new ScProvider(Sc, Sc.WellKnownChain.pezkuwi);
const teyrchainProvider = new ScProvider(Sc, teyrchainSpec, pezkuwiProvider);

await teyrchainProvider.connect();

const version = await teyrchainProvider.send('chain_getBlockHash', []);
```