@awesome-algorand/nfd-fetch
v0.0.1-experimental.3
Published
Generated fetch library for NF Domains
Downloads
16
Readme
@awesome-algorand/nfd-fetch
Experimental package for fetching data from NF Domains api.
Building the client
Generate the TypeScript client using HeyApi
npm run generateBuild the library using
npm run buildUsage
Install the library
npm install @awesome-algorand/nfd-fetch @hey-api/client-fetch --saveimport {nfdBrowse, type NfdRecordCollection} from "@awesome-algorand/nfd-fetch";
await nfdBrowse({limit: 10, offset: 0, sort: "asc", order: "id"}).then((data: NfdRecordCollection) => {
console.log(data);
}, {baseUrl: "https://api.nf.domains"});