You can call this operation to submit a task for associating an Ethereum name service (ENS) address with a domain name.

You can call the QueryTaskDetailList operation to query the execution result.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SaveSingleTaskForAssociatingEns

The operation that you want to perform. Set the value to SaveSingleTaskForAssociatingEns.

Address String Yes 0x1234567890123456789012345678901234567890

The ENS address to be associated.

DomainName String Yes test.luxe

The domain name to be associated.

Lang String No en

The language of the error message to return. Valid values:

  • zh: Chinese
  • en: English

Default value:en

UserClientIp String No 127.0.0.1

The IP address of the client used by the user to submit the task.

Response parameters

Parameter Type Example Description
RequestId String E2598CAF-DBFE-494E-95EF-B42A33C178AA

The ID of the request.

TaskNo String e893148f-6343-4ae1-9eba-6e2a4116e142

The ID of the task.

Examples

Sample requests


http(s)://[Endpoint]/? Action=SaveSingleTaskForAssociatingEns
&Address=0x1234567890123456789012345678901234567890
&DomainName=test.luxe
&<Common request parameters>

Sample success responses

XML format

<SaveSingleTaskForAssociatingEnsResponse>
    <TaskNo>3cbc5b9f-080d-4b5f-a04b-29f54bffdeab</TaskNo>
    <RequestId>722D0361-93BD-4289-824F-D17B218D8BF4</RequestId>
</SaveSingleTaskForAssociatingEnsResponse>

JSON format

{
	"TaskNo":"e893148f-6343-4ae1-9eba-6e2a4116e142",
	"RequestId":"E2598CAF-DBFE-494E-95EF-B42A33C178AA"
}

Error codes

For a list of error codes, visit the API Error Center.