Get namespace price

Retrieves the price of a namespace.

GET

/v2/prices/namespaces/{tld}

Retrieves the price of a namespace. The amount given will be in the smallest possible units of the currency.

Path parameters

tld
Required
string

The namespace to fetch price for

Example: "id"
Status codeDescription
200Success
Terminal
curl -X GET "https://api.mainnet.hiro.so/v2/prices/namespaces/id"

Fetch price for namespace.

Example response
{
  "units": "string",
  "amount": "string"
}