# registration.getParameters

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

Reads the .eth registration settings: contracts, commitment window, minimum duration, grace period and accepted payment tokens.

Source: https://ensforge.com/docs/reference/sdk/registration/get-parameters

<ApiMeta kind="Read" stability="stable" since="1.0.0" source="packages/sdk/src/actions/registration/getParameters/index.ts#L49" batchable />

Reads the `.eth` registration settings: contracts, commitment window, minimum duration, grace
period and accepted payment tokens.

## When to use [#when-to-use]

Use to build registration UIs: the commitment wait, the shortest duration, and which tokens
to offer.

## Signature [#signature]

```ts
function getParameters(
  client: Like,
  options?: getParameters.Options,
): Promise<getParameters.ReturnType>
```

Call it as `ens.registration.getParameters(options)` on a client, or `Actions.registration.getParameters(client, options)`.

`registration.getParameters.request(options)` builds a deferred read for `Actions.batch`. See [Look up many at once](/docs/sdk/look-up-many-at-once).

## Parameters [#parameters]

Also takes the [read options](/docs/reference/sdk/client#read-options).

## Returns [#returns]

Resolves to `getParameters.ReturnType`. Registration settings; durations and ages are in seconds.

| Field | Type | Description |
| --- | --- | --- |
| `registrar` | `Address` |  |
| `renewer` | `Address` |  |
| `priceOracle` | `Address` |  |
| `minCommitmentAge` | `bigint` |  |
| `maxCommitmentAge` | `bigint` |  |
| `minDuration` | `bigint` |  |
| `gracePeriod` | `bigint` |  |
| `paymentTokens` | `readonly TokenInfo[]` | Tokens listed for the deployment that the price oracle currently accepts. |

## Errors [#errors]

| Error | Codes | When |
| --- | --- | --- |
| [`UnsupportedError`](/docs/reference/errors/unsupported-error) | [`UNSUPPORTED_ON_DEPLOYMENT`](/docs/reference/errors/UNSUPPORTED_ON_DEPLOYMENT) | without ENSv2. |
| [`NetworkError`](/docs/reference/errors/network-error) | [`RPC_REQUEST_FAILED`](/docs/reference/errors/RPC_REQUEST_FAILED), [`RPC_TIMEOUT`](/docs/reference/errors/RPC_TIMEOUT), [`RATE_LIMITED`](/docs/reference/errors/RATE_LIMITED) | the RPC request fails. |

It can also fail with the errors every read can (`Errors.CommonError`: `ConfigError`, `ContractRevertError`, `InternalError`, `NetworkError`).

See [How errors work](/docs/sdk/errors-explained).

## Examples [#examples]

<Tabs groupId="api" items={["Client","Standalone","Effect"]} persist>
<Tab>
```ts title="Reading the settings"
const { minCommitmentAge, paymentTokens } = await ens.registration.getParameters()
```
</Tab>

<Tab>
```ts title="Reading with a standalone call"
import { Actions } from "@ensforge/sdk"

const parameters = await Actions.registration.getParameters(publicClient)
```
</Tab>

<Tab>
```ts title="Reading in an Effect program"
import { Actions } from "@ensforge/sdk/effect"

const parameters = yield* Actions.registration.getParameters(ens)
```
</Tab>
</Tabs>

## Example response [#example-response]

Recorded from Ethereum mainnet on 2026-11-18 at block 26443964. Values change as the chain does.

```ts
await ens.registration.getParameters({})
```

```json
{
  "registrar": "0xD6D8369e55c94Ae8AFA714E6cF7AB5bE54D5CC81",
  "renewer": "0x56c447F308F463A01121C41E72b0E7e7557fCb68",
  "priceOracle": "0x76F29609A363a8A1a2a6abe2e859C0F8916Af469",
  "minCommitmentAge": "60n",
  "maxCommitmentAge": "86400n",
  "minDuration": "2419200n",
  "gracePeriod": "2419200n",
  "paymentTokens": [
    {
      "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
      "symbol": "DAI",
      "decimals": 18
    },
    {
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "symbol": "USDC",
      "decimals": 6
    }
  ]
}
```

## See also [#see-also]

- [`registration.register`](/docs/reference/sdk/registration/register) to register