> **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.

# reconcileWorkflowSubmission

Attach a recovered transaction hash after verifying the saved submission intent.

## Import

```ts
import { reconcileWorkflowSubmission } from "@ensforge/core";
```

## Usage

:::code-group
```ts [index.ts]
import { reconcileWorkflowSubmission } from "@ensforge/core";
import { config } from "./config";

const result = await reconcileWorkflowSubmission(config, {
  workflowId: "saved-workflow-id",
  submissionId: "pending-submission-id",
  transactionHash: "0x1111111111111111111111111111111111111111111111111111111111111111",
});
```

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

## Parameters

### workflowId

`string`

Existing saved workflow instance ID.

### submissionId

`string`

Submission key from getWorkflow().submissions.

### transactionHash

`` `0x${string}` ``

Recovered on-chain transaction hash to verify.

### walletClient

`WalletClient | undefined`

Viem wallet override. Defaults to the configured wallet resolver.

### account

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

Wallet account override for the operation.

## Return Type

```ts
type ReconcileWorkflowSubmissionResult = Awaited<ReturnType<typeof reconcileWorkflowSubmission>>;
```

Returns `void`.

## Effect

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

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

const program = reconcileWorkflowSubmission.effect(config, {
  workflowId: "saved-workflow-id",
  submissionId: "pending-submission-id",
  transactionHash: "0x1111111111111111111111111111111111111111111111111111111111111111",
});

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

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

## Error

The Promise API rejects with the same typed failures exposed by the Effect error channel. Errors
have a stable `_tag`, `code`, and `message`; boundary errors retain their original `cause`.

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

## Related

* [`reconcileWorkflowSubmission`](/sdk/api/workflows/reconcile-workflow-submission)
* [Guide](/core/guides/workflow-storage)
