You can call this operation to query the wallet address associated with an Ethereum name service (ENS) domain name.

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 QueryEnsAssociation

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

DomainName String Yes test.luxe

The domain name with which the Ethereum wallet address is 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 initiate the query.

Response parameters

Parameter Type Example Description
Address String 0x123456789012345678901234567890123456****

The wallet address in the ENS system.

RequestId String 3ECD5439-39A2-477D-9A19-64FCA1F77EEB

The ID of the request.

Examples

Sample requests


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

Sample success responses

XML format

<QueryEnsAssociationResponse>
    <Address>0x123456789012345678901234567890123456****</Address>
    <RequestId>D60028B6-4ED1-486C-BA6E-E0B0A8284BE4</RequestId>
</QueryEnsAssociationResponse>

JSON format

{
	"RequestId":"3ECD5439-39A2-477D-9A19-64FCA1F77EEB",
	"Address":"0x123456789012345678901234567890123456****"
}

Error codes

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