You can call this operation to query the wallet address associated with an Ethereum name service (ENS) domain name.
Debugging
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:
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.