---
title: "📋 Get Orders"
description: >-
  Fetch paginated orders for a wallet address filtered by outcome ID and status
  using the Forkast SDK order service.
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

Fetches orders for a wallet filtered by outcome and status, with pagination.

```typescript
import { ForkastSDK, Network, GetOrdersResponse } from "@forkastgg/client";

const sdk = new ForkastSDK(Network.TESTNET, "YOUR_API_KEY");
const accountService = sdk.getAccountService();
const orderService = sdk.getOrderService();

const { accessToken } = await accountService.loginWithPrivateKey(
  "YOUR_PRIVATE_KEY"
);

const orders: GetOrdersResponse = await orderService.getAllOrders(
  "0xYourWallet",
  1,      // outcomeId
  accessToken,
  1,      // status
  100,    // limit
  1       // page
);
```

**Parameters**

| **Field** | **Type** | **Required** | **Description** |
| ------------- | -------- | ------------ | ----------------------------------------- |
| `outcomeId`   | number   | Yes          | Outcome ID to filter                      |
| `address`     | string   | Yes          | Wallet Address                            |
| `status`      | number   | Yes          | Order status filter. Default: 1           |
| `page`        | number   | Yes          | Page Number. Default: 1                   |
| `limit`       | number   | Yes          | Max per page. Default: 1000               |
| `accessToken` | string   | Yes          | Access Token received from login response |
