open-index/open-npm huggingface dataset:
npm package: @pnsdomains/pnsjs-react
Description: PNS javascript library for contract interaction
Author: Lucemans
Latest version: 1.0.13

# @pnsdomains/pnsjs-react

React hooks & utilities to interact with the PulseChain Name Service using PNSjs

## Installation

After installing [wagmi](https://wagmi.sh), simply run

```sh
pnpm install @pnsdomains/pnsjs-react
```

## Hooks

- `usePnsAvailable` - checks availability (uses [getAvailable](/docs/public/function.getAvailable.md))
- `usePnsExpiry` - returns expiry of a name (uses [getExpiry](/docs/public/function.getExpiry.md))
- `usePnsResolverInterfaces` - check supportsInterface on resolver (uses [getSupportedInterfaces](/docs/public/function.getSupportedInterfaces.md))
- `useNamesForAddress` - lists names from subgraph (uses [getNamesForAddress](/docs/subgraph/function.getNamesForAddress.md))
- `useDecodedName` - decodes name using subgraph (uses [getDecodedName](/docs/subgraph/function.getDecodedName.md))
- `usePnsRecordsWrite` - writes records to a name (uses [setRecords](/docs/wallet/function.setRecords.md)) (wip)
- `usePnsCredentials` - returns credentials from a name (uses [getTextRecord](/docs/public/function.getTextRecord.md)) (lite)