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

# usePredictAccountListDeployment

Resolves the address an account list spawn will deploy to, as a TanStack Query result.

## Import

```ts
import { usePredictAccountListDeployment } from '@railnetorg/railnet-sdk/react'
```

## Usage

```tsx
import { usePredictAccountListDeployment } from '@railnetorg/railnet-sdk/react'

const { data: accountList } = usePredictAccountListDeployment({
  factory: accountListFactory,
  accessControl,
  mode: AllowlistMode.OPEN,
  initialAllowList: [],
  initialBlockList: [],
  sanctionsEnabled: false,
  oracle: zeroAddress,
  deploymentSalt,
})
```

## Returns

A TanStack Query result over `Address`, with its `queryKey` attached. See
[`predictAccountListDeployment`](/actions/predictAccountListDeployment).

## Parameters

Everything [`predictAccountListDeployment`](/actions/predictAccountListDeployment) takes, plus:

### chainId (optional)

* **Type:** `number`
* **Default:** the connected chain

### enabled (optional)

* **Type:** `boolean`
* **Default:** `true`

## Query options

[`predictAccountListDeploymentQueryOptions`](/react/queryOptions) is this read as TanStack Query options, with
`predictAccountListDeploymentQueryKey` and `predictAccountListDeploymentQueryPrefix` for invalidation.
