List every permissioned domain owned by an account.
domain.list(
params?: DomainListParams
): Promise<DomainListResult>| Parameter | Type | Required | Description |
|---|---|---|---|
account | string | No | The owner whose domains to list. Defaults to the primary signer's account. |
Resolves to a DomainListResult, where domains[i] corresponds to data[i]:
| Field | Type | Description |
|---|---|---|
domains | readonly string[] | The domain id of each owned domain. |
data | readonly DomainData[] | The shaped domains. See domain.retrieve for DomainData. |
Read-only — no signer is required and nothing is submitted. Queries the ledger with account_objects.
const { data } = await client.domain.list()
for (const domain of data) {
console.log(domain.domainID)
}