> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# backfillWalletAggregates

> Backfill wallet aggregates (trading stats) for a given wallet. This is the data used in the filterWallet/filterTokenWallets and detailedWalletStats queries.

## GraphQL

```
type Mutation {
  # Requires a Growth or Enterprise plan.
  backfillWalletAggregates(
    input: WalletAggregateBackfillInput!
  ): WalletAggregateBackfillStateResponse!
}

enum WalletAggregateBackfillState {
  BackfillComplete
  BackfillInProgress
  BackfillCanceled
  BackfillBlocked
  BackfillRequestReceived
  BackfillNotFound
}

type WalletAggregateBackfillStateResponse {
  walletAddress: String!
  status: WalletAggregateBackfillState!
}

input WalletAggregateBackfillInput {
  walletAddress: String!
}
```

### Example

[Test this query in the Explorer →](https://docs.codex.io/explore.md)

```graphql theme={null}
mutation {
  backfillWalletAggregates(
    input: { walletAddress: "0xADDRESS" }
  ) {
    walletAddress
    status
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.