> For the complete documentation index, see [llms.txt](https://docs.sns.id/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sns.id/dev/sns-api/sns-quicknode-api/sns_getfavouritedomain.md).

# sns\_getFavouriteDomain

Returns a user wallet's favourite (i.e. primary) domain.

### Parameters <a href="#parameters" id="parameters"></a>

* **owner** `string` *required*: The base58-encoded Solana public key of the wallet to query for.

### Result <a href="#result" id="result"></a>

The result will be an RPCResponse JSON object with field:

* **result** `Domain`: A `Domain` object describig the requested domain name.

The `Domain` Object contains two fields :

* **name** `string`: The domain name
* **key** `string`: The domain's base-58 encoded public key

### Example <a href="#example" id="example"></a>

```json
{
  "jsonrpc": "2.0",
  "method": "sns_getFavouriteDomain",
  "params": [
    "HKKp49qGWXd639QsuH7JiLijfVW5UtCVY4s1n2HANwEA"
  ],
  "id": 42
}
```

```json
{
  "jsonrpc": "2.0",
  "result": {
    "key": "Crf8hzfthWGbGbLTVCiqRqV5MVnbpHB1L9KQMd6gsinb",
    "name": "bonfida"
  },
  "id": 42
}
```
