> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://ensforge.com/api/mcp` to find what you need.

# listWorkflows

List workflows for the configured chain and wallet account.

## Import

```ts
import { Ensforge } from "@ensforge/sdk";
```

## Usage

:::code-group
```ts [index.ts]
import { sdk } from "./client";

const result = await sdk.workflows.listWorkflows({
  status: "pending",
  limit: 20,
});
```

```ts [client.ts]
// [!include ~/snippets/hca/client.ts]
```
:::

## Parameters

### walletClient

`WalletClient | undefined`

Viem wallet override. Defaults to the configured wallet resolver.

### account

`` `0x${string}` | Account | undefined ``

Wallet account override for the operation.

### after

`string | undefined`

Exclusive pagination cursor from the previous response.

### limit

`number | undefined`

Page size between 1 and 100.

### status

`"pending" | "completed" | undefined`

Optional pending/completed workflow filter.

## Return Type

```ts
type ListWorkflowsResult = Awaited<ReturnType<typeof sdk.workflows.listWorkflows>>;
```

Returns `{ readonly workflows: readonly { readonly workflowId: string; readonly operation: string; readonly status: "pending" | "completed"; }[]; readonly nextCursor: string | null; }`.

## Effect

Use `.effect` when composing the method in an Effect program. The success and error channels remain
fully typed.

```ts
import { Effect } from "effect";

const program = sdk.workflows.listWorkflows.effect({
  status: "pending",
  limit: 20,
});

type Success = Effect.Success<typeof program>;
type Failure = Effect.Error<typeof program>;

const result = await Effect.runPromise(program);
```

## Error

The method rejects with the corresponding Core action errors. Use `.effect` to keep those failures
in the typed Effect error channel.

See [Error Handling](/sdk/guides/error-handling).

## Action

* [`listWorkflows`](/core/api/actions/workflows/list-workflows)
* [Guide](/core/guides/workflow-storage)
