Skip to main content

JavaScript SDK API Reference / Domain / getDomainPriceFromName

Function: getDomainPriceFromName()

getDomainPriceFromName(name): 20 | 160 | 640 | 700 | 750

Defined in: utils/getDomainPriceFromName.ts:14

Retrieves the domain registration price in USD from a domain name.

Parameters

name

string

Domain name without suffix

Returns

20 | 160 | 640 | 700 | 750

Registration price in USD.

Example

const price = getDomainPriceFromName("example");