# ExtractRpcMethod

> Overview of ExtractRpcMethod

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
type ExtractRpcMethod<T, M> = Extract<
  T[number],
  {
    Method: M;
  }
>;
```

Defined in: [packages/common/src/utils/types.ts:7](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/common/src/utils/types.ts#L7)

## Type Parameters

<table>
  <thead>
    <tr>
      <th align="left">Type Parameter</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `T` *extends* readonly `object`\[]
      </td>
    </tr>

    <tr>
      <td>
        `M` *extends* `T`\[`number`]\[`"Method"`]
      </td>
    </tr>

  </tbody>
</table>