# rootClaim

> **rootClaim**(`owner`, `input`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<\{ `chain`: [`ClaimChain`](/reference/filoz/keysmith/interfaces/claimchain/); `nodeKey`: [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array); \}\>

Defined in: [claims.ts:256](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/keysmith/src/claims.ts#L256)

The root of a chain, signed by the owner's wallet: one EIP-712 prompt.
Derives the bearer's node key from the group key, so the root cannot
commit to a wrong one, and hands it back to wrap for the bearer.
When the bearer is a session key, set `expires` to the session key's expiry.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `owner` | [`ClaimSigner`](/reference/filoz/keysmith/interfaces/claimsigner/) |
| `input` | \{ `bearer`: `` `0x${string}` ``; `chainId`: `bigint`; `expires`: `number`; `groupKey`: [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array); `groupKeyId`: `` `0x${string}` ``; `maxDepth`: `number`; `node`: `string`; `now?`: `number`; `owner`: `` `0x${string}` ``; `piece?`: [`PieceLabels`](/reference/filoz/keysmith/type-aliases/piecelabels/); `pieceCid?`: [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)\<`ArrayBufferLike`\>; \} |
| `input.bearer` | `` `0x${string}` `` |
| `input.chainId` | `bigint` |
| `input.expires` | `number` |
| `input.groupKey` | [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) |
| `input.groupKeyId` | `` `0x${string}` `` |
| `input.maxDepth` | `number` |
| `input.node` | `string` |
| `input.now?` | `number` |
| `input.owner` | `` `0x${string}` `` |
| `input.piece?` | [`PieceLabels`](/reference/filoz/keysmith/type-aliases/piecelabels/) |
| `input.pieceCid?` | [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)\<`ArrayBufferLike`\> |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<\{ `chain`: [`ClaimChain`](/reference/filoz/keysmith/interfaces/claimchain/); `nodeKey`: [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array); \}\>

## Throws

If `signer` is not the owner.