---
title: "Create a new name service for the environment and chain"
method: POST
path: "/environments/{environmentId}/nameService/{chainName}"
tags: ["NameServices"]
---

# Create a new name service for the environment and chain

`POST /environments/{environmentId}/nameService/{chainName}`

## Path parameters

- `environmentId` string, required
- `chainName` 'ETH' | 'EVM' | 'FLOW' | 'SOL' | 'ALGO' | 'STARK' | 'COSMOS' | 'BTC' | 'ECLIPSE' | 'SUI' | 'SPARK' | 'TRON' | 'APTOS' | 'TON' | 'STELLAR', required

## Request body

- NameServiceCreateRequest
  - `address` string, required — Valid blockchain wallet address, must be an alphanumeric string without any special characters
  - `domain` string, required
  - `signature` string, required

## Response `201`

Successfully created nane service for this environment and chain

- NameServiceResponse
  - `id` string, required
  - `address` string, required — Valid blockchain wallet address, must be an alphanumeric string without any special characters
  - `domain` string, required
  - `enabledAt` string, date-time, nullable — If the ENS domain is enabled, then this timestamp will be present.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/revisions/aac826315d90/schema)
