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

# sns\_getSubdomains

Returns a list of currently registered subdomains for a given domain.

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

* **domain** `string` *required*: The domain name.

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

The result will be an RPCResponse JSON object with field:

* **result** `string[]`: The list of currently registered subdomain name account keys, encoded as base58.

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

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

```json
{
  "jsonrpc": "2.0",
  "result": [
    "naming",
    "dex",
    "test"
  ],
  "id": 42
}
```
