Quick Start
For local testing, we highly recommend something like HTTPIE.
It's much nicer to use than CURL, provides clean json body creation and automatically displays json responses in a clean format.
The examples will reference using the httpie command via the 'http' command.
First, a quick note about the 'view' property in many of the APIs. For efficiency, many API requests have a default 'view' that returns a focused amount of data more appropriate for certain requestors. This view is what will be returned if no view parameter is explicitly set. Typically this is the 'brief' view. Some queries return a special 'thumbnail' view that is meant to to be very simple - often used for interactive 'search by name' types of queries. Thumbnail is basically 'tiny' + avatar links.
Example views differences for an NFD (nfdomains.algo in this example):
Tiny
Thumbnail
Brief
Full
{
"name": "nfdomains.algo",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"properties": {},
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"unverifiedCaAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ",
"OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4"
]
}
{
"name": "nfdomains.algo",
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"properties": {
"userDefined": {
"avatar": "https://images.nf.domains/avatar/9f1940b9-2cf5-43cb-96e5-f3b36385fc90"
}
},
"unverifiedCaAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ",
"OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4"
]
}
{
"appID": 763844423,
"category": "common",
"metaTags": [
"9_letters"
],
"name": "nfdomains.algo",
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"nfdAccount": "FQDCZYHSK6CHLESEN76AGMSZ4JMT2H5BKWSV6NN2YAKDF22NUAJAOZ4ZIY",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"properties": {
"userDefined": {
"avatar": "https://images.nf.domains/avatar/9f1940b9-2cf5-43cb-96e5-f3b36385fc90"
}
},
"saleType": "buyItNow",
"state": "owned",
"unverifiedCaAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ",
"OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4"
]
}
{
"appID": 763844423,
"asaID": 763844429,
"category": "common",
"currentAsOfBlock": 21686682,
"metaTags": [
"9_letters"
],
"name": "nfdomains.algo",
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"nfdAccount": "FQDCZYHSK6CHLESEN76AGMSZ4JMT2H5BKWSV6NN2YAKDF22NUAJAOZ4ZIY",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"properties": {
"internal": {
"asaid": "763844429",
"category": "common",
"commission1": "50",
"commission1Agent": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"contractLocked": "0",
"highestSoldAmt": "1000000",
"name": "nfdomains.algo",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"saleType": "buyItNow",
"seller": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"timeChanged": "1655530642",
"timeCreated": "1654229863",
"timePurchased": "1654233465",
"ver": "1.08"
},
"userDefined": {
"avatar": "https://images.nf.domains/avatar/9f1940b9-2cf5-43cb-96e5-f3b36385fc90",
"banner": "https://images.nf.domains/banner/da11c55f-8b85-416d-9361-612082d26f03",
"bio": "Discord: https://discord.gg/7XcuMTfeZP",
"caalgo": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I,ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ,OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4",
"github": "https://github.com/TxnLab",
"website": "https://app.nf.domains"
},
"verified": {
"twitter": "@nfdomains"
}
},
"saleType": "buyItNow",
"seller": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"state": "owned",
"timeChanged": "2022-06-18T05:37:22Z",
"timeCreated": "2022-06-03T04:17:43Z",
"timePurchased": "2022-06-03T05:17:45Z",
"unverifiedCaAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ",
"OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4"
]
}
To fetch an NFD by explicit name, make an HTTP GET call to the /nfd/{name} endpoint.
No parameters are required. Fetching a name will return the 'brief' view by default which is sufficient for most fetches a wallet would use for example.
Oops, something is missing.
We could not find the original source to display this content.
Please don't use the 'poll' or 'nocache' query parameters, except for specific UI/UX transitions as part of a minting process. Ask in the dev channels for details.
http https://api.nf.domains/nfd/nfdomains.algo
{
"appID": 763844423,
"category": "common",
"metaTags": [
"9_letters"
],
"name": "nfdomains.algo",
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"nfdAccount": "FQDCZYHSK6CHLESEN76AGMSZ4JMT2H5BKWSV6NN2YAKDF22NUAJAOZ4ZIY",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"properties": {
"userDefined": {
"avatar": "https://images.nf.domains/avatar/9f1940b9-2cf5-43cb-96e5-f3b36385fc90"
}
},
"saleType": "buyItNow",
"state": "owned",
"unverifiedCaAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ",
"OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4"
]
}
http 'https://api.nf.domains/nfd/nfdomains.algo?view=full'
{
"appID": 763844423,
"asaID": 763844429,
"category": "common",
"currentAsOfBlock": 21686682,
"metaTags": [
"9_letters"
],
"name": "nfdomains.algo",
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"nfdAccount": "FQDCZYHSK6CHLESEN76AGMSZ4JMT2H5BKWSV6NN2YAKDF22NUAJAOZ4ZIY",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"properties": {
"internal": {
"asaid": "763844429",
"category": "common",
"commission1": "50",
"commission1Agent": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"contractLocked": "0",
"highestSoldAmt": "1000000",
"name": "nfdomains.algo",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"saleType": "buyItNow",
"seller": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"timeChanged": "1655530642",
"timeCreated": "1654229863",
"timePurchased": "1654233465",
"ver": "1.08"
},
"userDefined": {
"avatar": "https://images.nf.domains/avatar/9f1940b9-2cf5-43cb-96e5-f3b36385fc90",
"banner": "https://images.nf.domains/banner/da11c55f-8b85-416d-9361-612082d26f03",
"bio": "Discord: https://discord.gg/7XcuMTfeZP",
"caalgo": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I,ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ,OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4",
"github": "https://github.com/TxnLab",
"website": "https://app.nf.domains"
},
"verified": {
"twitter": "@nfdomains"
}
},
"saleType": "buyItNow",
"seller": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"state": "owned",
"timeChanged": "2022-06-18T05:37:22Z",
"timeCreated": "2022-06-03T04:17:43Z",
"timePurchased": "2022-06-03T05:17:45Z",
"unverifiedCaAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ",
"OMXLQTI5ZSMWTCIZA3O3YBW74BTCOI67SZTOEDHK3ZEDZ34Z3DEOQD4PW4"
]
}
To fetch NFDs that an an address points to, make an HTTP GET call to the /nfd/v2/address?address=xxxxx[&address=yyyyy] endpoint.
Multiple addresses can be passed to the endpoint, with each address specified as an additional address=xxx query parameter.
For a single address, the recommendation is to use limit=1.
For more detailed information on this endpoint, please see some of the details described in Resolving an Algorand address to an NFD name / avatar
Oops, something is missing.
We could not find the original source to display this content.
http 'https://api.nf.domains/nfd/v2/address?address=RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I&limit=1'
{
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I": [
{
"appID": 763844423,
"caAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I"
],
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"name": "nfdomains.algo",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"properties": {},
"state": "owned",
"timeChanged": "2022-08-10T19:52:09Z",
"unverifiedCaAlgo": [
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ"
]
}
]
}
Get the primary NFDs for a single address using "thumbnail" view
(to also get avatars [user defined or verified])
http 'https://api.nf.domains/nfd/address?address=RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I&view=thumbnail&limit=1'
[
{
"appID": 763844423,
"caAlgo": [
"RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I"
],
"depositAccount": "RSV2YCHXA7MWGFTX3WYI7TVGAS5W5XH5M7ZQVXPPRQ7DNTNW36OW2TRR6I",
"name": "nfdomains.algo",
"owner": "NRLA7VZ2YV6WOS2LBS3UK25DB463XRSNG63BYNQI6CSGGROFWVQ2EKBQSI",
"properties": {
"userDefined": {
"avatar": "https://images.nf.domains/avatar/9f1940b9-2cf5-43cb-96e5-f3b36385fc90"
}
},
"state": "owned",
"unverifiedCaAlgo": [
"ABHE544MXL2CWMIZONAIUBNVELWYMKYKWBDNRLOEFQJN3LNF2ZWSMDEKBQ"
]
}
]
Last modified 2d ago