Interactive NFD lookup
Last updated
Last updated
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.
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.
Search NFDs via various filters
/nfd/v2/search
name or partial match of NFD name to filter on
The parent NFD Application ID to find. Used for fetching segments of an NFD
1000000
Length of NFD
Traits of NFD
An Algorand Account address
4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU
^[A-Z2-7]{57}[AEIMQUY4]$
An Algorand Account address
4F5OA5OQC5TBHMCUDJWGKMUZAQE7BGWCKSJJSJEMJO5PURIFT5RW3VHNZU
^[A-Z2-7]{57}[AEIMQUY4]$
Should NFDs reserved for an account (transfers for example or unclaimed winning auctions) be excluded
The start of an NFD name, fetching multiple NFDs that have that prefix
Part of an NFD name, fetching multiple NFDs that have that substring (minimum 3 characters)
Verified property name to search on - specify value with vvalue
telegram
discord
, telegram
, twitter
, github
, email
, domain
, nostrpubkey
Value to find in the vproperty field specified with the vproperty parameter
abc123
Whether to explicitly filter on segments being locked or unlocked. Typically only valuable when filtering on unlocked
false
Whether to explicitly filter on NFD roots or segments. True to only see roots, False to only see segments.
false
Minimum price of NFD
Maximum price of NFD
Minimum price of NFD Segment in USD (cents)
Maximum price of NFD Segment in USD (cents)
Fetch NFDs that changed after the specified timestamp
1970-01-01T00:00:01Z
Return only NFDs with an expiration time at or before the specified timestamp
1970-01-01T00:00:01Z
Limit the number of results returned - max 200
Starting document in large list. Fetch 1-100 [limit 100], pass offset 100 to fetch 100-200
What to sort on
createdDesc
, timeChangedDesc
, soldDesc
, priceAsc
, priceDesc
, highestSaleDesc
, saleTypeAsc
, nameAsc
, expiresAsc
, expiresDesc
View of data to return, tiny (name, owner, caAlgo, unverifiedCaAlgo only), brief (default), or full
tiny
, thumbnail
, brief
, full
etag