> ## Documentation Index
> Fetch the complete documentation index at: https://cobo.com/products/agentic-wallet/manual/llms.txt
> Use this file to discover all available pages before exploring further.

# Get wallet pact statistics

> Retrieve aggregate pact metrics for a wallet, such as total pact count, active pacts, and cumulative spend. Data is derived from persisted transaction records.



## OpenAPI

````yaml get /api/v1/wallets/{wallet_id}/pacts/stats
openapi: 3.1.0
info:
  title: Cobo Agentic Wallet Service
  description: Unified wallet engine for human and agent principals
  version: 1.3.0
servers: []
security: []
paths:
  /api/v1/wallets/{wallet_id}/pacts/stats:
    get:
      tags:
        - Pacts
      summary: Get wallet pact statistics
      description: >-
        Retrieve aggregate pact metrics for a wallet, such as total pact count,
        active pacts, and cumulative spend. Data is derived from persisted
        transaction records.
      operationId: get_wallet_pact_stats
      parameters:
        - name: wallet_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: The UUID of the wallet to retrieve pact statistics for.
            title: Wallet Id
          description: The UUID of the wallet to retrieve pact statistics for.
        - name: include_default
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Include default pacts (`is_default=true`) in the statistics.
              Excluded by default.
            default: false
            title: Include Default
          description: >-
            Include default pacts (`is_default=true`) in the statistics.
            Excluded by default.
        - name: lang
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/PactStatsLanguage'
            description: >-
              Language for localized display fields. Possible values: `en`,
              `zh`.
            default: en
          description: 'Language for localized display fields. Possible values: `en`, `zh`.'
        - name: X-API-Key
          in: header
          required: false
          schema:
            title: X-Api-Key
            type: string
            nullable: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse_WalletPactStatsRead_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedValidationError'
components:
  schemas:
    PactStatsLanguage:
      type: string
      enum:
        - zh
        - en
      title: PactStatsLanguage
      description: Language option for localized pact display fields.
    StandardResponse_WalletPactStatsRead_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        result:
          $ref: '#/components/schemas/WalletPactStatsRead'
        suggestion:
          type: string
          title: Suggestion
          default: ''
        message:
          type: string
          title: Message
          default: ''
        meta:
          $ref: '#/components/schemas/PaginationMeta'
          nullable: true
      type: object
      required:
        - result
      title: StandardResponse[WalletPactStatsRead]
    WrappedValidationError:
      title: WrappedValidationError
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
          default: false
          title: Success
        error:
          type: object
          title: Error
          required:
            - detail
          properties:
            detail:
              type: array
              title: Detail
              items:
                $ref: '#/components/schemas/ValidationError'
    WalletPactStatsRead:
      properties:
        wallet_id:
          type: string
          format: uuid
          title: Wallet Id
          description: Wallet UUID.
        total_pacts:
          type: integer
          title: Total Pacts
          description: Total number of pacts ever created for this wallet.
        total_active_pacts:
          type: integer
          title: Total Active Pacts
          description: Currently active pacts for this wallet.
        total_tx_count:
          type: integer
          title: Total Tx Count
          description: Total completed transaction count under pact scope.
        total_volume_usd:
          type: string
          title: Total Volume Usd
          description: Total completed transaction volume in USD, decimal string.
        currency:
          $ref: '#/components/schemas/WalletPactCurrency'
          description: Display currency code.
        since:
          type: string
          format: date-time
          title: Since
          description: Start time of statistics accumulation.
        as_of:
          type: string
          format: date-time
          title: As Of
          description: Timestamp when this payload was generated.
      type: object
      required:
        - wallet_id
        - total_pacts
        - total_active_pacts
        - total_tx_count
        - total_volume_usd
        - currency
        - since
        - as_of
      title: WalletPactStatsRead
      description: Wallet-level pact statistics for the banner.
    PaginationMeta:
      properties:
        total:
          title: Total
          type: integer
          nullable: true
        offset:
          title: Offset
          type: integer
          nullable: true
        limit:
          title: Limit
          type: integer
          nullable: true
        has_more:
          title: Has More
          type: boolean
          nullable: true
        after:
          title: After
          type: string
          nullable: true
        before:
          title: Before
          type: string
          nullable: true
      type: object
      title: PaginationMeta
      description: |-
        Pagination metadata for list responses.

        Supports both legacy offset-based and cursor-based pagination.
        Cursor fields (``has_more``, ``after``, ``before``) are populated for
        cursor-paginated endpoints.  Legacy fields (``offset``, ``limit``) are
        populated when the caller uses the deprecated ``offset`` parameter.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    WalletPactCurrency:
      type: string
      enum:
        - USD
      title: WalletPactCurrency
      description: Currency code for pact statistics.

````