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

# sns\_getDomainRecordKey

Returns a domain record's Solana account public key. Supported record identifier include SOL, ETH and IPFS. The get\_supported\_records method returns a list of all supported records.

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

* **domain** `string` *required*: The domain name to query for.
* **record** `string` *required*: The record identifier 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_getDomainRecordKey",
  "params": [
    "bonfida.sol",
    "github"
  ],
  "id": 42
}
```

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