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

# Get Pool Status \[txpool.getStatus]

Returns the number of transactions currently pending for inclusion in the next blocks, as well as the ones being scheduled for future execution.

## Usage

This example returns the number of transactions currently pending for inclusion in the next block(s), as well as the ones being scheduled for future execution.

:::code-group
```ts twoslash [example.ts]
import { client } from './viem.config'

const result = await client.txpool.getStatus()
// @log: { pending: 12, queued: 3 }
```

```ts twoslash [viem.config.ts] filename="viem.config.ts"
import { Client, http, testActions } from 'viem'
import { anvil } from 'viem/chains'

export const client = Client.create({
  chain: anvil,
  transport: http(),
}).extend(testActions())
```
:::

### Standalone Action

Call `Actions.txpool.getStatus` directly by passing the Client as the first argument.

:::code-group
```ts twoslash [example.ts]
import { Actions } from 'viem'
import { client } from './viem.config'

const result = await Actions.txpool.getStatus(client)
// @log: { pending: 12, queued: 3 }
```

```ts twoslash [viem.config.ts] filename="viem.config.ts"
import { Client, http } from 'viem'
import { anvil } from 'viem/chains'

export const client = Client.create({
  chain: anvil,
  transport: http(),
})
```
:::

## Return Value

`{ pending: number; queued: number }`

The count of pending and queued transactions.
