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

# Balance

> Returns the balance of an account on the Internet Computer network.



## OpenAPI

````yaml nodeapi/openapi/icp-openapiv3-vc2.json POST /account/balance
openapi: 3.0.3
info:
  title: ICP Rosetta API
  description: OpenAPI v3 spec for ICP Rosetta endpoints on the Internet Computer.
  version: 1.0.0
servers:
  - url: https://icp-mainnet.icp.validationcloud.io/v1/<YOUR_API_KEY_HERE>
security: []
paths:
  /account/balance:
    post:
      tags:
        - Account
      summary: Get an account balance
      description: Returns the balance of an account on the Internet Computer network.
      requestBody:
        description: Rosetta AccountBalanceRequest
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountBalanceRequest'
      responses:
        '200':
          description: Successful account balance response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountBalanceResponse'
        '400':
          description: Invalid request
        '500':
          description: Internal server error
components:
  schemas:
    AccountBalanceRequest:
      type: object
      required:
        - network_identifier
        - account_identifier
      properties:
        network_identifier:
          $ref: '#/components/schemas/NetworkIdentifier'
        account_identifier:
          $ref: '#/components/schemas/AccountIdentifier'
        block_identifier:
          $ref: '#/components/schemas/PartialBlockIdentifier'
    AccountBalanceResponse:
      type: object
      properties:
        block_identifier:
          $ref: '#/components/schemas/BlockIdentifier'
        balances:
          type: array
          items:
            $ref: '#/components/schemas/Amount'
        metadata:
          type: object
          additionalProperties: true
    NetworkIdentifier:
      type: object
      required:
        - blockchain
        - network
      properties:
        blockchain:
          type: string
          example: Internet Computer
        network:
          type: string
          example: '00000000000000020101'
        sub_network_identifier:
          $ref: '#/components/schemas/SubNetworkIdentifier'
    AccountIdentifier:
      type: object
      required:
        - address
      properties:
        address:
          type: string
        sub_account:
          $ref: '#/components/schemas/SubAccountIdentifier'
        metadata:
          type: object
          additionalProperties: true
    PartialBlockIdentifier:
      type: object
      properties:
        index:
          type: integer
          format: int64
        hash:
          type: string
    BlockIdentifier:
      type: object
      required:
        - index
        - hash
      properties:
        index:
          type: integer
          format: int64
        hash:
          type: string
    Amount:
      type: object
      properties:
        value:
          type: string
        currency:
          $ref: '#/components/schemas/Currency'
        metadata:
          type: object
          additionalProperties: true
    SubNetworkIdentifier:
      type: object
      required:
        - network
      properties:
        network:
          type: string
        metadata:
          type: object
          additionalProperties: true
    SubAccountIdentifier:
      type: object
      required:
        - address
      properties:
        address:
          type: string
        metadata:
          type: object
          additionalProperties: true
    Currency:
      type: object
      properties:
        symbol:
          type: string
        decimals:
          type: integer
          format: int32
        metadata:
          type: object
          additionalProperties: true

````

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