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

# zks_getAllAccountBalances | zkSync Era

> The zks_getAllAccountBalances API method retrieves the balances of all confirmed tokens for a given account address on the zkSync network.

The `zks_getAllAccountBalances` API method retrieves the balances of all confirmed tokens for a given account address on the zkSync network. This method is integral for users and applications requiring a comprehensive overview of an account's assets on Layer 2 (zkSync), facilitating asset management, portfolio tracking, and interoperability within decentralized applications (DApps).

## Parameters

The method accepts a single parameter within its request:

* `address` — a string representing the account address for the requested balance information. This address should be associated with the user's wallet on zkSync Layer 2.

## Response

* `result` — an object where each key represents the token address, and the value is the balance in Wei of that token for the specified account, in hexadecimal.

<Note>
  In the `zks_getAllAccountBalances API response`, a balance associated with the address `0x0000000000000000000000000000000000000000` specifically represents Ethereum (ETH).
</Note>

## Use case

A key use case for `zks_getAllAccountBalances` is within a DApp that requires real-time balance information across various tokens for a user's wallet on zkSync. This could be crucial for financial DApps, portfolio trackers, or any application that manages or displays user assets across multiple tokens.

<Note>
  You can use the Chainstack [EVM Swiss Army Knife](https://web3tools.chainstacklabs.com/) to convert values.
</Note>


## OpenAPI

````yaml openapi/zksync_node_api/zks_getAllAccountBalances.json POST /afb8312f3710a5bc469f4c87cad3a2e4
openapi: 3.0.0
info:
  title: JSON-RPC API
  version: 1.0.0
servers:
  - url: https://nd-995-911-243.p2pify.com
security: []
paths:
  /afb8312f3710a5bc469f4c87cad3a2e4:
    post:
      summary: zks_getAllAccountBalances | zkSync Era
      operationId: zks_getAllAccountBalances
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JsonRpcRequestForBalances'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonRpcResponseForBalances'
components:
  schemas:
    JsonRpcRequestForBalances:
      type: object
      required:
        - jsonrpc
        - id
        - method
        - params
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          default: '2.0'
        id:
          type: integer
          example: 1
          default: 1
        method:
          type: string
          example: zks_getAllAccountBalances
          default: zks_getAllAccountBalances
        params:
          type: array
          default:
            - '0xB240316e290e976e31f1557b3B312Dd698efac4c'
          items:
            type: string
            example: '0xB240316e290e976e31f1557b3B312Dd698efac4c'
            default: '0xB240316e290e976e31f1557b3B312Dd698efac4c'
    JsonRpcResponseForBalances:
      type: object
      required:
        - jsonrpc
        - id
        - result
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          default: '2.0'
        id:
          type: integer
          default: 1
        result:
          type: object
          additionalProperties:
            type: object
            properties:
              balance:
                type: string
              symbol:
                type: string
              decimals:
                type: integer

````