> 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_getdomainkey.md).

# sns\_getDomainKey

Returns a domain's Solana account public key.

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

* **domain** `string` *required*: The domain name to query for.

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

The result will be an RPCResponse JSON object with field:

* **result** `string`: A base58-encoded Solana public key.

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

```json
{
  "jsonrpc": "2.0",
  "method": "sns_getDomainKey",
  "params": [
    "bonfida.sol"
  ],
  "id": 42
}
```

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

[<br>](https://sns.guide/sns-quicknode/sns_getDomainData.html)
