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

# Get agent wallet balance with budget context (HMAC or API key)

> <!-- relayer:auth-badge:start -->
> **Auth: agent HMAC or API key.** Accepts the agent's own HMAC credentials (runtime self-call) **or** the integrator's ApiKey (backend query on the agent's behalf).
<!-- relayer:auth-badge:end -->

Returns the agent wallet financial snapshot: address, on-chain USDC balance, budget committed/free amounts, runway estimation, and a Solana explorer URL. Use this from the agent SDK to check fund availability before a payment, or from your backend to monitor agent health. Replaces the deprecated GET /wallet and /wallet-balance.



## OpenAPI

````yaml /api-reference/openapi.json get /agents/{id}/balance
openapi: 3.0.0
info:
  title: Relayer
  description: >-
    Relayer API — Kit-based crypto infrastructure for OTC exchange, wallet
    signing, payouts, and widget actions.
  version: '1.0'
  contact: {}
servers:
  - url: https://testnet.relayer.fi/v1
    description: Sandbox (testnet wallets, no real fiat)
  - url: https://api.relayer.fi/v1
    description: Production (mainnet wallets, regulated fiat rails)
security:
  - api-key: []
tags:
  - name: 'Action: Builders'
    description: Transaction metadata builders
  - name: 'Action: Directory'
    description: Widget directory
  - name: 'Action: Execute'
  - name: 'Action: Tokens'
    description: Token lists per chain/protocol
  - name: Addresses
  - name: Agents
  - name: App
    description: Application endpoints
  - name: 'Payout: Accounts'
    description: Payment execution
  - name: 'Payout: Off-ramp'
  - name: 'Payout: On-ramp'
  - name: 'Payout: Orders'
  - name: 'Payout: Recipients'
    description: Beneficiary management
  - name: Signing - Passkeys
  - name: Signing - Recovery
  - name: Signing Approvals
    description: Transaction signing approvals
  - name: Signing Policies
    description: Signing policy management
  - name: Transactions
    description: Transaction signing and broadcasting
  - name: Wallets
    description: Wallet and address management
paths:
  /agents/{id}/balance:
    get:
      tags:
        - Agents
      summary: Get agent wallet balance with budget context (HMAC or API key)
      description: >-
        <!-- relayer:auth-badge:start -->

        > **Auth: agent HMAC or API key.** Accepts the agent's own HMAC
        credentials (runtime self-call) **or** the integrator's ApiKey (backend
        query on the agent's behalf).

        <!-- relayer:auth-badge:end -->


        Returns the agent wallet financial snapshot: address, on-chain USDC
        balance, budget committed/free amounts, runway estimation, and a Solana
        explorer URL. Use this from the agent SDK to check fund availability
        before a payment, or from your backend to monitor agent health. Replaces
        the deprecated GET /wallet and /wallet-balance.
      operationId: AgentController_getAgentBalance
      parameters:
        - name: id
          required: true
          in: path
          description: Agent UUID
          schema:
            type: string
      responses:
        '200':
          description: Wallet info with explorer URL
        '404':
          description: Agent or wallet not found
      security:
        - bearer: []
components:
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use this format: `ApiKey <your_api_key>`'

````