@ensdomains/ensjs-react
v0.0.3
Published
ENS javascript library for contract interaction
Downloads
35
Keywords
Readme
@ensdomains/ensjs-react
React hooks & utilities to interact with the Ethereum Name Service using ENSjs
Installation
After installing wagmi, simply run
pnpm install @ensdomains/ensjs-react
Hooks
useEnsAvailable
- checks availability (uses getAvailable)useEnsExpiry
- returns expiry of a name (uses getExpiry)useEnsResolverInterfaces
- check supportsInterface on resolver (uses getSupportedInterfaces)useNamesForAddress
- lists names from subgraph (uses getNamesForAddress)useDecodedName
- decodes name using subgraph (uses getDecodedName)useEnsRecordsWrite
- writes records to a name (uses setRecords) (wip)useEnsCredentials
- returns credentials from a name (uses getTextRecord) (lite)