Interactive NFD lookup
'Looking up' an NFD interactively (debounce)
If you want to provide interactive search features for an NFD. You can use the NFD 'search' endpoint using the prefix query parameter.
The endpoint is the /nfd/v2/search endpoint. It takes many query parameters but only certain types should be specified at one time.
ie: prefix, but not owner or reservedFor.
Example
The thumbnail view will return verified and userDefined avatars for names. This way, the UI can show avatars with choices as well, as seen here in this NFDomains search UI example:
Note the verified.avatarasaid property in this example (same exists for banner, bannerasaid when fetching with other views). For integrations that manage their own ASA caching, this may make it easier to reference already cached versions of the NFT image if the ASA id is used instead of IPFS CID references.
Last updated