Estimate mint params
curl --request GET \
--url https://mint-manager.namespace.ninja/api/v1/mint/estimateimport requests
url = "https://mint-manager.namespace.ninja/api/v1/mint/estimate"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mint-manager.namespace.ninja/api/v1/mint/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mint-manager.namespace.ninja/api/v1/mint/estimate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mint-manager.namespace.ninja/api/v1/mint/estimate"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mint-manager.namespace.ninja/api/v1/mint/estimate")
.asString();require 'uri'
require 'net/http'
url = URI("https://mint-manager.namespace.ninja/api/v1/mint/estimate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"canMint": true,
"estimatedPriceEth": 0.01,
"estimatedFeeEth": 0.002,
"isStandardFee": true,
"validationErrors": [
"SUBNAME_TAKEN",
"MINTER_NOT_WHITELISTED"
]
}Mint API
Estimate mint params
deprecated
Estimate the price, fee, and eligibility for an ENS subname mint.
GET
/
api
/
v1
/
mint
/
estimate
Estimate mint params
curl --request GET \
--url https://mint-manager.namespace.ninja/api/v1/mint/estimateimport requests
url = "https://mint-manager.namespace.ninja/api/v1/mint/estimate"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mint-manager.namespace.ninja/api/v1/mint/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mint-manager.namespace.ninja/api/v1/mint/estimate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mint-manager.namespace.ninja/api/v1/mint/estimate"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mint-manager.namespace.ninja/api/v1/mint/estimate")
.asString();require 'uri'
require 'net/http'
url = URI("https://mint-manager.namespace.ninja/api/v1/mint/estimate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"canMint": true,
"estimatedPriceEth": 0.01,
"estimatedFeeEth": 0.002,
"isStandardFee": true,
"validationErrors": [
"SUBNAME_TAKEN",
"MINTER_NOT_WHITELISTED"
]
}The Mint API is deprecated. It keeps working for onchain listings on ENSv1 names. For new integrations, use offchain subnames, or issue onchain subnames from the Namespace App. See ENSv2 and Namespace.
Query Parameters
Response
Estimated price, fee, and validation status for requested subname.
Was this page helpful?

