# getCallsStatus

Gets calls status for batch execution.

## Import

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

## Usage

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

const result = await sdk.batch.getCallsStatus({
  id: "0x1234",
});
```

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

## Parameters

```ts
import type { GetCallsStatusParameters } from "@ensforge/sdk/batch";
```

### id

`string`

Submitted wallet batch identifier.

### walletClient

`WalletClient | undefined`

Viem wallet client override for this operation. Defaults to the wallet resolved from the config.

### account

`Account | Address | undefined`

Account used to authorize this operation. Defaults to the account exposed by the resolved wallet client.

## Return Type

```ts
import type { CallsStatusResult } from "@ensforge/sdk/batch";
```

| Property     | Type                                               | Description                                                 |
| ------------ | -------------------------------------------------- | ----------------------------------------------------------- |
| `id`         | `string`                                           | Stable operation or wallet batch identifier.                |
| `chainId`    | `number`                                           | The chainId value returned by the operation.                |
| `status`     | `"pending" \| "success" \| "failure" \| "unknown"` | Current query, transaction, batch, or workflow status.      |
| `statusCode` | `number`                                           | The statusCode value returned by the operation.             |
| `atomic`     | `boolean`                                          | Whether the wallet guarantees the calls execute atomically. |
| `receipts`   | `readonly WriteReceipt[]`                          | Confirmed transaction receipts.                             |

## Effect

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

```ts
import { Effect } from "effect";
import { sdk } from "./client";

const program = sdk.batch.getCallsStatus.effect(parameters);

type Success = Effect.Effect.Success<typeof program>;
type Failure = Effect.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

* [`getCallsStatus`](/core/api/actions/batch/get-calls-status)
