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

# Get wallet balances

> Live token balances. Free.



## OpenAPI

````yaml /openapi.json get /api/v1/wallets/{id}/balances
openapi: 3.0.3
info:
  title: Chance API
  version: 1.0.0
  description: >-
    Verify an agent's proposed action against its rules, manage escrow wallets,
    and buy credits. Every verification returns a signed, hash-chained receipt.
servers:
  - url: https://harness.chance.cc
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Verification
    description: Check an action against its rules and fetch past verdicts.
  - name: Credits
    description: Balance and x402 top-ups.
  - name: Escrow wallets
    description: Wallets that only move funds through a verified proposal.
  - name: Trader
    description: Liveness reports from trader containers.
  - name: Gas sponsorship
    description: Sponsored gas for trader instances on Polygon.
  - name: Status
    description: Public deployment facts for checking receipts.
paths:
  /api/v1/wallets/{id}/balances:
    get:
      tags:
        - Escrow wallets
      summary: Get wallet balances
      description: Live token balances. Free.
      operationId: getWalletBalances
      parameters:
        - name: id
          in: path
          required: true
          description: The wallet's id (UUID) or its name.
          schema:
            type: string
      responses:
        '200':
          description: Balances.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletBalances'
        '401':
          description: No API key, or the key is unknown or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                e0:
                  summary: missing API key (send x-api-key)
                  value:
                    error: missing API key (send x-api-key)
                e1:
                  summary: invalid or revoked API key
                  value:
                    error: invalid or revoked API key
        '404':
          description: No such wallet on this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: not_found
components:
  schemas:
    WalletBalances:
      type: object
      properties:
        walletId:
          type: string
        name:
          type: string
        chain:
          type: string
        address:
          type: string
        balanceUsd:
          type: number
          nullable: true
        balances:
          type: array
          items:
            $ref: '#/components/schemas/TokenBalance'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: >-
            An error code (for example `out_of_credits`) or a short sentence
            (for example `intent is required`).
        message:
          type: string
          description: Detail, when present.
    TokenBalance:
      type: object
      properties:
        symbol:
          type: string
        name:
          type: string
        logoUrl:
          type: string
          nullable: true
        tokenAddress:
          type: string
          nullable: true
          description: Null for the native coin.
        amount:
          type: string
          description: Raw base units.
        amountFormatted:
          type: string
          description: Human units. Use this one.
        decimals:
          type: integer
        usdValue:
          type: number
          nullable: true
        caip2:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: An API key (`chance_sk_live_…`) from https://harness.chance.cc/keys.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        The same API key sent as `Authorization: Bearer <key>`. If both headers
        are sent, `x-api-key` is used.

````