function · Browser and Node

# delegate

Issues a child of the chain's leaf, signed by the leaf's subject. The child starts as a copy of the leaf, tightened and extended. If it doesn't narrow, nothing is signed and the problems come back.

`@toip-tools/mandates` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/issue.ts#L59)

Import:

```ts
import { delegate } from "@toip-tools/mandates";
```

## Declaration

Signature:

```ts
delegate(parentChain: Mandate[], delegator: Identity, clock: Clock, o: DelegateOptions): Promise<{
    mandate: Mandate;
} | {
    problems: Reason[];
}>;
```

### Parameters

- **`parentChain` (required)**: `Mandate[]`
- **`delegator` (required)**: `Identity`
- **`clock` (required)**: `Clock`
- **`o` (required)**: `DelegateOptions`

### Returns

`Promise<{ mandate: Mandate; } | { problems: Reason[]; }>`

[Usage guide](https://toip.tools/toolkit/mandates/#usage) · [Error handling](https://toip.tools/toolkit/mandates/#errors) · [All exports](https://toip.tools/toolkit/mandates/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mandates/api/delegate/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
