function · Browser and Node

# approve

Signs an approval of `action` under `chain`, valid from now for `ttlSeconds`.

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

Import:

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

## Declaration

Signature:

```ts
approve(approver: Identity, clock: Clock, o: {
    chain: Mandate[];
    action: Action;
    ttlSeconds: number;
}): Approval;
```

### Parameters

- **`approver` (required)**: `Identity`
- **`clock` (required)**: `Clock`
- **`o` (required)**: `{ chain: Mandate[]; action: Action; ttlSeconds: number; }`

### Returns

`Approval`

[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/approve/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
