https://github.com/oscgu/lnrjs
A library to deal with lnr domains
https://github.com/oscgu/lnrjs
domains ethereum
Last synced: 3 months ago
JSON representation
A library to deal with lnr domains
- Host: GitHub
- URL: https://github.com/oscgu/lnrjs
- Owner: oscgu
- License: gpl-2.0
- Created: 2022-11-06T20:38:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T12:50:01.000Z (over 3 years ago)
- Last Synced: 2025-10-19T21:01:06.513Z (9 months ago)
- Topics: domains, ethereum
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lnrjs



A small react library with some useful hooks for dealing with LNR domains
## Installation
`yarn add lnrjs`
## Getting started
You can use the hooks as they are, if you dont mind the rate limit of the
public provider being used. See below how to change that.
`_app.tsx`
```typescript
import type { AppProps } from 'next/app'
import { LnrConfigProvider, LnrConfig } from "lnrjs";
export default function App({ Component, pageProps }: AppProps) {
const config: LnrConfig = {
provider: new ethers.providers.AlchemyProvider(1, "your-api-key")
};
return (
)
}
```
## Using the hooks
```typescript
import { useLnrGetName, useLnrGetAddress } from "lnrjs;
const { name } = useLnrGetName("0x...");
const { address } = useLnrGetAddress("name.og");
```