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

# Get Tron token balances

> Returns native TRX and token balances for the given accounts across the selected Tron networks. Failures for a single network or account are reported in `errors`.



## OpenAPI

````yaml /api-reference/openapi.yaml post /v1/TronIndexerGateway/GetTokenBalancesDetails
openapi: 3.0.3
info:
  title: Polygon OMS Public API
  version: v26.10.20-0001
  description: >-
    Unified API for moving money between crypto and fiat. Three ways to move
    money: Transactions (instant, wallet or card funded, including Cash-In for
    in-person cash deposits), Deposit Addresses (reusable crypto deposit
    configurations), and Virtual Accounts (dedicated bank accounts that
    auto-convert fiat to crypto). Standard transactions follow a two-step flow:
    create a Quote (pricing), then create a Transaction (execution). Cash-in
    codes generate a one-time deposit code for in-person cash deposits at retail
    locations.
  contact:
    name: Polygon OMS
    url: https://oms.polygon.technology
servers:
  - url: https://sandbox-api.polygon.technology/v0.13
    description: Sandbox
  - url: https://api.polygon.technology/v0.13
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Auth
    description: Authentication via OMS API key and secret
  - name: Customers
    description: Customer management and KYC
  - name: Customer
  - name: Wallet
  - name: Quote
  - name: Transaction
  - name: Transfer
  - name: CashIns
  - name: CashLocation
  - name: Sandbox
  - name: VirtualAccount
  - name: Counterparty
  - name: ExternalAccount
  - name: Reference
  - name: DepositAddress
  - name: Indexer
    description: >-
      Read token balances, prices, and transaction history across EVM networks,
      Solana, and Tron. Indexer methods are webRPC calls: each is a `POST` with
      a JSON body, served at `/v1/{Service}/{Method}` on the API host rather
      than under the `/v0.13` base path. Authenticate with a publishable key in
      the `Api-Key` header, or with a bearer token from `POST /auth/token`.
paths:
  /v1/TronIndexerGateway/GetTokenBalancesDetails:
    servers:
      - url: https://sandbox-api.polygon.technology
        description: Sandbox
      - url: https://api.polygon.technology
        description: Production
    post:
      tags:
        - Indexer
      summary: Get Tron token balances
      description: >-
        Returns native TRX and token balances for the given accounts across the
        selected Tron networks. Failures for a single network or account are
        reported in `errors`.
      operationId: TronIndexerGateway-GetTokenBalancesDetails
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/TronIndexerGateway_GetTokenBalancesDetails_Request
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/TronIndexerGateway_GetTokenBalancesDetails_Response
        4XX:
          description: Client error
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ErrorWebrpcEndpoint'
                  - $ref: '#/components/schemas/ErrorWebrpcRequestFailed'
                  - $ref: '#/components/schemas/ErrorWebrpcBadRoute'
                  - $ref: '#/components/schemas/ErrorWebrpcBadMethod'
                  - $ref: '#/components/schemas/ErrorWebrpcBadRequest'
                  - $ref: '#/components/schemas/ErrorWebrpcClientAborted'
                  - $ref: '#/components/schemas/ErrorWebrpcStreamLost'
        5XX:
          description: Server error
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ErrorWebrpcBadResponse'
                  - $ref: '#/components/schemas/ErrorWebrpcServerPanic'
                  - $ref: '#/components/schemas/ErrorWebrpcInternalError'
      security:
        - PublishableKey: []
        - BearerAuth: []
components:
  schemas:
    TronIndexerGateway_GetTokenBalancesDetails_Request:
      type: object
      properties:
        networks:
          description: '[]string'
          type: array
          items:
            type: string
        filter:
          $ref: '#/components/schemas/TronIndexerTokenBalancesFilter'
        omitMetadata:
          type: boolean
    TronIndexerGateway_GetTokenBalancesDetails_Response:
      type: object
      properties:
        balances:
          description: '[]Balance'
          type: array
          items:
            $ref: '#/components/schemas/TronIndexerBalance'
        errors:
          description: '[]BalanceError'
          type: array
          items:
            $ref: '#/components/schemas/BalanceError'
        coverage:
          $ref: '#/components/schemas/Coverage'
        coverages:
          description: '[]Coverage'
          type: array
          items:
            $ref: '#/components/schemas/Coverage'
    ErrorWebrpcEndpoint:
      type: object
      properties:
        error:
          type: string
          example: WebrpcEndpoint
        code:
          type: number
          example: 0
        msg:
          type: string
          example: endpoint error
        cause:
          type: string
        status:
          type: number
          example: 400
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcRequestFailed:
      type: object
      properties:
        error:
          type: string
          example: WebrpcRequestFailed
        code:
          type: number
          example: -1
        msg:
          type: string
          example: request failed
        cause:
          type: string
        status:
          type: number
          example: 400
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcBadRoute:
      type: object
      properties:
        error:
          type: string
          example: WebrpcBadRoute
        code:
          type: number
          example: -2
        msg:
          type: string
          example: bad route
        cause:
          type: string
        status:
          type: number
          example: 404
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcBadMethod:
      type: object
      properties:
        error:
          type: string
          example: WebrpcBadMethod
        code:
          type: number
          example: -3
        msg:
          type: string
          example: bad method
        cause:
          type: string
        status:
          type: number
          example: 405
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcBadRequest:
      type: object
      properties:
        error:
          type: string
          example: WebrpcBadRequest
        code:
          type: number
          example: -4
        msg:
          type: string
          example: bad request
        cause:
          type: string
        status:
          type: number
          example: 400
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcClientAborted:
      type: object
      properties:
        error:
          type: string
          example: WebrpcClientAborted
        code:
          type: number
          example: -8
        msg:
          type: string
          example: request aborted by client
        cause:
          type: string
        status:
          type: number
          example: 400
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcStreamLost:
      type: object
      properties:
        error:
          type: string
          example: WebrpcStreamLost
        code:
          type: number
          example: -9
        msg:
          type: string
          example: stream lost
        cause:
          type: string
        status:
          type: number
          example: 400
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcBadResponse:
      type: object
      properties:
        error:
          type: string
          example: WebrpcBadResponse
        code:
          type: number
          example: -5
        msg:
          type: string
          example: bad response
        cause:
          type: string
        status:
          type: number
          example: 500
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcServerPanic:
      type: object
      properties:
        error:
          type: string
          example: WebrpcServerPanic
        code:
          type: number
          example: -6
        msg:
          type: string
          example: server panic
        cause:
          type: string
        status:
          type: number
          example: 500
      required:
        - error
        - code
        - msg
        - status
    ErrorWebrpcInternalError:
      type: object
      properties:
        error:
          type: string
          example: WebrpcInternalError
        code:
          type: number
          example: -7
        msg:
          type: string
          example: internal error
        cause:
          type: string
        status:
          type: number
          example: 500
      required:
        - error
        - code
        - msg
        - status
    TronIndexerTokenBalancesFilter:
      type: object
      properties:
        accountAddresses:
          description: '[]string'
          type: array
          items:
            type: string
        omitNativeBalances:
          type: boolean
        contractWhitelist:
          description: '[]string'
          type: array
          items:
            type: string
        contractBlacklist:
          description: '[]string'
          type: array
          items:
            type: string
      required:
        - accountAddresses
    TronIndexerBalance:
      type: object
      properties:
        network:
          type: string
        accountAddress:
          type: string
        assetType:
          type: string
        contractAddress:
          type: string
        tokenStandard:
          type: string
        name:
          type: string
        symbol:
          type: string
        decimals:
          type: number
        balance:
          type: string
        formattedBalance:
          type: string
        imageUrl:
          type: string
        metadataUri:
          type: string
        verificationStatus:
          type: string
        verificationSource:
          type: string
        priceUSD:
          type: string
        balanceUSD:
          type: string
      required:
        - network
        - accountAddress
        - assetType
        - name
        - symbol
        - decimals
        - balance
        - formattedBalance
        - verificationStatus
        - verificationSource
    BalanceError:
      type: object
      properties:
        network:
          type: string
        accountAddress:
          type: string
        operation:
          type: string
        contractAddress:
          type: string
        code:
          type: string
        reason:
          type: string
      required:
        - network
        - accountAddress
        - operation
        - code
        - reason
    Coverage:
      type: object
      properties:
        network:
          type: string
        tokenSymbols:
          description: '[]string'
          type: array
          items:
            type: string
        nativeIncluded:
          type: boolean
      required:
        - network
        - tokenSymbols
        - nativeIncluded
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from POST /auth/token
    PublishableKey:
      type: apiKey
      in: header
      name: Api-Key

````