Web API: ADNR
The ADNR (Address Domain Name Resolution) API provides endpoints for managing and resolving human-readable domain names for VFX blockchain addresses.
Base URL
Section titled “Base URL”/api/adnr/Endpoints
Section titled “Endpoints”List ADNR Domains
Section titled “List ADNR Domains”GET /api/adnr/Returns a paginated list of all active ADNR domains (deleted domains are excluded), ordered by creation height (newest first).
Query Parameters:
search: Search by domain name or addressordering: Order by a response field, for exampledomainor-domainpage(integer): Page numberlimit(integer): Results per page (default 30, max 500)
Response:
{ "count": 500, "page": 1, "num_pages": 17, "results": [ { "domain": "example.vfx", "address": "R9Ng1rDS2YgB7R2bJMU3RKzVXSriXLRsBR", "is_btc": false, "btc_address": null, "create_transaction": { "hash": "14fd35ecae8705c1f3e699bb6fc6f40546e8a28a2b0175e8ac9dc76d936c3ac2", "height": 7587359, "type": 6, "to_address": "Adnr_Base", "from_address": "R9Ng1rDS2YgB7R2bJMU3RKzVXSriXLRsBR", "total_amount": 5.0, "data": "{\"Function\":\"AdnrCreate()\",\"Name\":\"example\"}" } } ]}Get ADNR Domain Details
Section titled “Get ADNR Domain Details”GET /api/adnr/{domain}/Returns detailed information for a specific ADNR domain.
Parameters:
domain(string): The full domain name including its suffix, for exampleexample.vfxorexample.btc
Response:
{ "domain": "example.vfx", "address": "R9Ng1rDS2YgB7R2bJMU3RKzVXSriXLRsBR", "is_btc": false, "btc_address": null, "create_transaction": { "hash": "14fd35ecae8705c1f3e699bb6fc6f40546e8a28a2b0175e8ac9dc76d936c3ac2", "height": 7587359, "type": 6, "to_address": "Adnr_Base", "from_address": "R9Ng1rDS2YgB7R2bJMU3RKzVXSriXLRsBR", "total_amount": 5.0, "data": "{\"Function\":\"AdnrCreate()\",\"Name\":\"example\"}" }}Status Codes:
200 OK: Domain found404 Not Found: Domain not found
Lookup ADNR by Bitcoin Address
Section titled “Lookup ADNR by Bitcoin Address”GET /api/adnr/btc/{btc_address}/Returns the ADNR domain associated with a Bitcoin address (for Bitcoin-linked domains).
Parameters:
btc_address(string): The Bitcoin address
Response:
{ "btc_address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", "domain": "satoshi.btc"}If no domain is found:
{ "btc_address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", "domain": null}Field Descriptions
Section titled “Field Descriptions”domain: The human-readable domain nameaddress: The associated VFX blockchain addressis_btc: Whether this domain is linked to a Bitcoin addressbtc_address: The associated Bitcoin address (ifis_btcis true)create_transaction: The transaction that created this domain, in the full format described on the Transaction page (abbreviated above)
- ADNR domains provide human-readable names for VFX addresses (e.g., “example.vfx” instead of “R9Ng1rDS2YgB7R2bJMU3RKzVXSriXLRsBR”)
- Some domains can be linked to Bitcoin addresses for cross-chain functionality; those end in
.btc - Domain names are lowercase and the lookup is an exact match:
Example.vfxreturns404 - The suffix is stored in the
domainfield (.vfxor.btc) and must be included in lookups - Results are cached for performance