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

# setQueues

Sets deposit and redeem queues on the QueueStrategyEngine. Requires a `WalletClient`.

## Import

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

## Usage

```ts
import { createWalletClient, http } from 'viem'
import { base } from 'viem/chains'
import { setQueues } from '@railnetorg/railnet-sdk'

const walletClient = createWalletClient({
  chain: base,
  transport: http(),
})

const hash = await setQueues(walletClient, {
  queueStrategyEngine: '0x1234...',
  depositQueue: [
    {
      vehicle: '0x5678...',
      target: { value: 1000000n, threshold: 100n }
    }
  ],
  redeemQueue: [],
  account: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
})
```

## Returns

`Hash`

The transaction hash.

## Parameters

### queueStrategyEngine

* **Type:** `Address`

The address of the QueueStrategyEngine contract.

### depositQueue

* **Type:** `QueueEntry[]`

The new deposit queue configuration.

### redeemQueue

* **Type:** `QueueEntry[]`

The new redeem queue configuration.

### account

* **Type:** `Address`

The address of the account executing the transaction.
