POST
/
environments
/
{environmentId}
/
nameService
/
{chainName}
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/nameService/{chainName} \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "domain": "An example name",
  "signature": "<string>"
}'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "domain": "An example name",
  "enabledAt": "2023-11-07T05:31:56Z"
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
chainName
enum<string>
required

Shortened chain name

Available options:
ETH,
EVM,
FLOW,
SOL,
ALGO,
STARK,
COSMOS,
BTC,
ECLIPSE

Body

application/json
address
string
required

Valid blockchain wallet address, must be an alphanumeric string without any special characters

Maximum length: 255
domain
string
required
Maximum length: 255
signature
string
required

Response

201
application/json
Successfully created nane service for this environment and chain
id
string
required
Required string length: 36
address
string
required

Valid blockchain wallet address, must be an alphanumeric string without any special characters

Maximum length: 255
domain
string
required
Maximum length: 255
enabledAt
string | null

If the ENS domain is enabled, then this timestamp will be present.