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

# Get balances for a yield

> Get one address's balances in a single yield, including entering, exiting, claimable and withdrawable amounts.

The body takes `address` (required) and optional protocol `arguments`. The network comes from the yield, so there is no `network` field. The yield must be enabled for your project, otherwise the call returns `400`.

This is the per-yield read. It returns one `YieldBalancesDto` for the yield, including an empty `balances` list when the address holds nothing. For many yields or addresses at once, use [Get balances across yields](https://docs.yield.xyz/api-reference/YieldsController_getAggregateBalances.md), which takes `queries[]`.

Each balance has a `type`; see [Balance types](https://docs.yield.xyz/api-reference/earn-objects.md#balance-types). Balances can carry `pendingActions` to pass to `POST /v1/actions/manage`; see [Pending actions](https://docs.yield.xyz/api-reference/earn-objects.md#pending-actions). Guide: [Track balances](https://docs.yield.xyz/guides/earn/tracking-balances.md).


## OpenAPI

````yaml openapi.json POST /v1/yields/{yieldId}/balances
openapi: 3.0.0
info:
  title: 'Yield API: Earn'
  description: API Documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://api.yield.xyz
    description: Production
security: []
tags:
  - name: Discovery
    description: >-
      Browse and discover yield opportunities, networks, and providers, plus
      yield-level risk, reward rate, and TVL data
  - name: Portfolio
    description: User-specific balances and KYC status
  - name: Actions
    description: Generate transactions to enter, exit, and manage yields
externalDocs:
  description: For more information
  url: https://docs.yield.xyz
paths:
  /v1/yields/{yieldId}/balances:
    post:
      tags:
        - Portfolio
      summary: Get balances for a specific yield
      description: >-
        Retrieve all balances associated with a yield opportunity for a specific
        wallet address, including active, pending, claimable, and withdrawable
        balances. The network is automatically determined from the yield
        configuration.
      operationId: YieldsController_getYieldBalances_v1
      parameters:
        - name: yieldId
          required: true
          in: path
          description: The unique identifier of the yield opportunity
          schema:
            example: ethereum-eth-lido-staking
            type: string
      requestBody:
        required: true
        description: >-
          Balance request with address and optional arguments for advanced
          balance queries
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/YieldBalancesRequestDto'
      responses:
        '200':
          description: >-
            Returns balance information including different balance types
            (active, entering, exiting, withdrawable, claimable, locked) with
            amounts and available actions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YieldBalancesDto'
        '400':
          description: >-
            Invalid request parameters, or the yield is not enabled for your
            project
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Validation failed
                  error:
                    type: string
                    example: Bad Request
                  statusCode:
                    type: number
                    example: 400
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Invalid API key
                  error:
                    type: string
                    example: Unauthorized
                  statusCode:
                    type: number
                    example: 401
        '404':
          description: Yield not found with the specified ID
        '429':
          description: Rate limit exceeded
          headers:
            x-ratelimit-limit:
              description: Request limit per window
              schema:
                type: string
            x-ratelimit-remaining:
              description: Remaining requests (will be 0)
              schema:
                type: string
            x-ratelimit-reset:
              description: Unix timestamp when window resets
              schema:
                type: string
            retry-after:
              description: Seconds to wait before retrying
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Rate limit exceeded
                  error:
                    type: string
                    example: Too Many Requests
                  statusCode:
                    type: number
                    example: 429
                  retryAfter:
                    type: number
                    example: 30
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Internal server error
                  error:
                    type: string
                    example: Internal Server Error
                  statusCode:
                    type: number
                    example: 500
      security:
        - ApiKey: []
components:
  schemas:
    YieldBalancesRequestDto:
      type: object
      properties:
        address:
          type: string
          description: User wallet address to check balances for
          example: '0x742d35Cc6634C0532925a3b844Bc454e4438f44e'
        arguments:
          description: Optional arguments for advanced or protocol-specific balance queries
          allOf:
            - $ref: '#/components/schemas/GetBalancesArgumentsDto'
      required:
        - address
    YieldBalancesDto:
      type: object
      properties:
        yieldId:
          type: string
          description: Unique identifier of the yield
          example: ethereum-eth-lido-staking
        balances:
          description: List of balances for this yield
          type: array
          items:
            $ref: '#/components/schemas/BalanceDto'
        rewardRate:
          description: Personalized reward rate breakdown for this balance position
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/RewardRateDto'
      required:
        - yieldId
        - balances
    GetBalancesArgumentsDto:
      type: object
      properties:
        cAddressBech:
          type: string
          description: Avalanche C-chain address
          example: 0x123...
        pAddressBech:
          type: string
          description: Avalanche P-chain address
          example: P-avax1...
        autoSweepDayOfMonth:
          type: number
          description: >-
            Day of month when auto-sweep window starts (used by Solana
            auto-sweep balance actions)
          example: 20
          minimum: 1
          maximum: 31
        autoSweepTimezone:
          type: string
          description: >-
            IANA timezone used to evaluate auto-sweep window day (e.g.
            Europe/London)
          example: Europe/London
    BalanceDto:
      type: object
      properties:
        address:
          type: string
          description: User wallet address that owns this balance
          example: 0x1234...
        type:
          description: Type of balance
          allOf:
            - $ref: '#/components/schemas/BalanceType'
        amount:
          type: string
          description: Balance amount in underlying token
          example: '2.625'
        amountRaw:
          type: string
          description: Raw balance amount (full precision)
          example: '2625000000000000000'
        date:
          format: date-time
          type: string
          description: Date relevant to this balance state
          nullable: true
          example: '2025-04-23T08:00:00Z'
        feeConfigurationId:
          type: string
          description: Fee configuration ID (if applicable)
          example: fee-config-1
        pendingActions:
          description: Pending actions for this balance
          type: array
          items:
            $ref: '#/components/schemas/PendingActionDto'
        token:
          description: Token used for balance amounts
          allOf:
            - $ref: '#/components/schemas/TokenDto'
        validator:
          description: Validator information (if applicable)
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/ValidatorDto'
        validators:
          description: >-
            Multiple validators information (when balance is distributed across
            multiple validators)
          nullable: true
          type: array
          items:
            $ref: '#/components/schemas/ValidatorDto'
        amountUsd:
          type: string
          description: Value of the balance in USD
          example: 2,500.00
          nullable: true
        isEarning:
          type: boolean
          description: Whether this balance is currently earning rewards
          example: true
        priceRange:
          type: object
          description: >-
            Price range for concentrated liquidity positions in
            tokens[1]/tokens[0] format (e.g., if tokens[0]=WETH and
            tokens[1]=USDC, then priceRange represents USDC/WETH)
          example:
            min: '2700'
            max: '3310'
        tokenId:
          type: string
          description: >-
            NFT token ID for liquidity positions (e.g., PancakeSwap V3 position
            NFT ID)
          example: '12345'
        shareAmount:
          type: string
          description: Share balance in human-readable format
          example: '1.5'
        shareAmountRaw:
          type: string
          description: Share balance in full precision (smallest unit)
          example: '1500000000000000000'
        shareToken:
          description: >-
            The share token that shareAmount and shareAmountRaw are denominated
            in
          allOf:
            - $ref: '#/components/schemas/TokenDto'
        isEncrypted:
          type: boolean
          description: >-
            True when the position is confidential: amount, amountRaw and
            shareAmount are empty, amountUsd is null, and shareAmountRaw holds
            the ERC-7984 ciphertext handle. Decrypt it client-side with the Zama
            SDK.
        campaignId:
          type: string
          format: uuid
          description: >-
            Campaign that this locked reward balance belongs to. Use it with
            /v1/campaigns/{campaignId}/payouts.
      required:
        - address
        - type
        - amount
        - amountRaw
        - pendingActions
        - token
        - isEarning
    RewardRateDto:
      type: object
      properties:
        total:
          type: number
          description: >-
            Estimated underlying integration reward rate across all sources. May
            include an additional campaign component when an active campaign
            applies to this project.
          example: 6.5
        rateType:
          type: string
          description: Whether this reward rate is APR or APY
          example: APR
        components:
          description: Breakdown of reward rates by source
          type: array
          items:
            $ref: '#/components/schemas/RewardDto'
      required:
        - total
        - rateType
        - components
    BalanceType:
      type: string
      enum:
        - active
        - entering
        - exiting
        - withdrawable
        - claimable
        - locked
      description: Type of balance
    PendingActionDto:
      type: object
      properties:
        intent:
          type: string
          description: High-level action intent
          enum:
            - enter
            - manage
            - exit
          example: manage
        type:
          type: string
          description: Specific action type
          enum:
            - STAKE
            - UNSTAKE
            - WITHDRAW_REQUEST
            - INSTANT_WITHDRAW
            - CLAIM_REWARDS
            - AUTO_SWEEP_UNSTAKE_REWARDS
            - AUTO_SWEEP_WITHDRAW_REWARDS
            - RESTAKE_REWARDS
            - WITHDRAW
            - WITHDRAW_ALL
            - RESTAKE
            - CLAIM_UNSTAKED
            - UNLOCK_LOCKED
            - STAKE_LOCKED
            - VOTE
            - REVOKE
            - VOTE_LOCKED
            - REVOTE
            - REBOND
            - MIGRATE
            - VERIFY_WITHDRAW_CREDENTIALS
            - DELEGATE
            - MERGE
            - CANCEL_PENDING
          example: CLAIM_REWARDS
        passthrough:
          type: string
          description: >-
            Server-generated passthrough that must be included when executing
            the action
          example: eyJhZGRyZXNzZXMiOnsiYWRkcmVzcyI6ImNvc21vczF5ZXk...
        arguments:
          description: Argument schema required to execute this action
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/ArgumentSchemaDto'
        amount:
          type: string
          description: >-
            Amount involved in the action, in human-readable token units (not
            the smallest denomination).
          example: '0.1'
          nullable: true
      required:
        - intent
        - type
        - passthrough
    TokenDto:
      type: object
      properties:
        symbol:
          type: string
          description: Token symbol
          example: ETH
        name:
          type: string
          description: Token name
          example: Ethereum
        decimals:
          type: number
          description: Token decimal places
          example: 18
        network:
          type: string
          description: Token network
          enum:
            - ethereum
            - ethereum-goerli
            - ethereum-holesky
            - ethereum-sepolia
            - ethereum-hoodi
            - arbitrum
            - base
            - base-sepolia
            - gnosis
            - optimism
            - polygon
            - polygon-amoy
            - starknet
            - zksync
            - linea
            - unichain
            - plume
            - monad-testnet
            - monad
            - robinhood
            - robinhood-testnet
            - arc-testnet
            - arc
            - avalanche-c
            - avalanche-c-atomic
            - avalanche-p
            - binance
            - celo
            - fantom
            - harmony
            - moonriver
            - okc
            - viction
            - core
            - sonic
            - plasma
            - katana
            - hyperevm
            - tempo
            - pharos
            - xlayer
            - agoric
            - akash
            - axelar
            - band-protocol
            - bitsong
            - canto
            - chihuahua
            - comdex
            - coreum
            - cosmos
            - crescent
            - cronos
            - cudos
            - desmos
            - dydx
            - evmos
            - fetch-ai
            - gravity-bridge
            - injective
            - irisnet
            - juno
            - kava
            - ki-network
            - mars-protocol
            - nym
            - okex-chain
            - onomy
            - osmosis
            - persistence
            - quicksilver
            - regen
            - secret
            - sentinel
            - sommelier
            - stafi
            - stargaze
            - stride
            - teritori
            - tgrade
            - umee
            - sei
            - mantra
            - celestia
            - saga
            - zetachain
            - dymension
            - humansai
            - neutron
            - polkadot
            - kusama
            - westend
            - bittensor
            - aptos
            - binancebeacon
            - cardano
            - near
            - solana
            - solana-devnet
            - stellar
            - stellar-testnet
            - sui
            - tezos
            - tron
            - ton
            - ton-testnet
            - hyperliquid
          example: Ethereum
        address:
          type: string
          description: Token address (if applicable)
          example: 0x...
        logoURI:
          type: string
          description: Token logo URI
          example: https://...
        isPoints:
          type: boolean
          description: Token is points
          example: true
        coinGeckoId:
          type: string
          description: Token CoinGecko ID
          example: ethereum
      required:
        - symbol
        - name
        - decimals
        - network
    ValidatorDto:
      type: object
      properties:
        address:
          type: string
          description: Validator address or ID
          example: cosmosvaloper1abc...
        name:
          type: string
          description: Validator display name
          example: Example Validator
        logoURI:
          type: string
          description: Validator logo URI
          example: https://example.com/logo.png
        website:
          type: string
          description: Link to validator website
          example: https://example.com
        rewardRate:
          description: >-
            Detailed reward rate breakdown by source (emissions, MEV, fees,
            etc.)
          example:
            total: 8.4
            rateType: APR
            components:
              - rate: 6.8
                rateType: APR
                token:
                  symbol: SOL
                  name: Solana
                yieldSource: staking
                description: Solana network inflation rewards
              - rate: 1.2
                rateType: APR
                token:
                  symbol: SOL
                  name: Solana
                yieldSource: validator_commission
                description: Transaction fees from processed transactions
              - rate: 0.4
                rateType: APR
                token:
                  symbol: SOL
                  name: Solana
                yieldSource: mev
                description: MEV from Jito block space auctions
          allOf:
            - $ref: '#/components/schemas/RewardRateDto'
        provider:
          description: Provider information for this validator
          allOf:
            - $ref: '#/components/schemas/ValidatorProviderDto'
        commission:
          type: number
          description: Commission rate charged by validator
          example: 0.05
        tvlUsd:
          type: string
          description: Total value locked with this validator in USD
          example: 18,340,000
        tvl:
          type: string
          description: Total value locked with this validator in native token
          example: '8250.45'
        tvlRaw:
          type: string
          description: Raw total value locked with this validator (full precision)
          example: '8250450000000000000000'
        votingPower:
          type: number
          description: Validator's voting power share (0–1)
          example: 0.013
        preferred:
          type: boolean
          description: Whether this validator is flagged as preferred
          example: true
        minimumStake:
          type: string
          description: Minimum stake allowed in native token
          example: '1.0'
        remainingPossibleStake:
          type: string
          description: Maximum available stake before hitting cap in native token
          example: 285,714.28
        remainingSlots:
          type: number
          description: Number of remaining nominator/delegator slots (for capped chains)
          example: 8
        nominatorCount:
          type: number
          description: Number of current nominators
          example: 321
        status:
          type: string
          description: >-
            Validator status: active, jailed, deactivating, inactive, full or
            not_found
          example: active
        providerId:
          type: string
          description: ID of the provider backing this validator
          example: provider-1
        subnet:
          description: >-
            Subnet metadata when the validator operates within a subnet
            (Bittensor)
          allOf:
            - $ref: '#/components/schemas/ValidatorSubnetDto'
      required:
        - address
    RewardDto:
      type: object
      properties:
        rate:
          type: number
          description: Reward rate as a decimal (e.g. 0.04 = 4%)
          example: 0.04
        rateType:
          type: string
          description: Whether this rate is APR or APY
          example: APR
        token:
          description: Token received as reward
          allOf:
            - $ref: '#/components/schemas/TokenDto'
        yieldSource:
          type: string
          description: Structured source of yield (e.g. staking, protocol incentive)
          enum:
            - staking
            - liquid_staking
            - restaking
            - protocol_incentive
            - campaign_incentive
            - points
            - lending
            - mev
            - real_world_asset_yield
            - vault
          example: protocol_incentive
        description:
          type: string
          description: Optional human-readable description of this reward
          example: LDO distributed to incentivize stETH adoption via Lido Boost
      required:
        - rate
        - rateType
        - token
        - yieldSource
    ArgumentSchemaDto:
      type: object
      properties:
        fields:
          description: List of argument fields
          type: array
          items:
            $ref: '#/components/schemas/ArgumentFieldDto'
        notes:
          type: string
          description: Notes or instructions for these arguments
      required:
        - fields
    ValidatorProviderDto:
      type: object
      properties:
        name:
          type: string
          description: Provider name
          example: Morpho
        id:
          type: string
          description: Provider ID
          example: morpho
        logoURI:
          type: string
          description: Provider logo URI
          example: https://morpho.xyz/logo.png
        description:
          type: string
          description: Short description of the provider
          example: A peer-to-peer DeFi lending protocol
        website:
          type: string
          description: Provider website
          example: https://morpho.xyz
        tvlUsd:
          type: object
          description: Total TVL across the entire provider in USD
          example: 10,200,000
          nullable: true
        type:
          type: string
          description: Type of provider (protocol or validator provider)
          enum:
            - protocol
            - validator_provider
          example: protocol
        references:
          description: Optional social/media references or audit links
          nullable: true
          type: array
          items:
            type: string
        rank:
          type: number
          description: Provider ranking (lower numbers indicate higher preference)
          example: 1
        preferred:
          type: boolean
          description: Whether this provider is marked as preferred
          example: true
        revshare:
          description: Revenue sharing details by tier
          example:
            standard:
              minRevShare: 0.3
              maxRevShare: 0.7
            pro:
              minRevShare: 0.4
              maxRevShare: 0.8
          allOf:
            - $ref: '#/components/schemas/RevShareTiersDto'
        uniqueId:
          type: string
          description: Provider ID (deprecated, use `id` instead)
          example: luganodes
          deprecated: true
        createdAt:
          format: date-time
          type: string
          description: Creation timestamp (deprecated)
          deprecated: true
        updatedAt:
          format: date-time
          type: string
          description: Last update timestamp (deprecated)
          deprecated: true
      required:
        - name
        - id
        - logoURI
        - description
        - website
        - tvlUsd
        - type
        - rank
        - preferred
    ValidatorSubnetDto:
      type: object
      properties:
        id:
          type: number
          description: Subnet ID
          example: 1
        name:
          type: string
          description: Subnet name
          example: Apex
        tokenSymbol:
          type: string
          description: Subnet token symbol
          example: α
        tvl:
          type: string
          description: TAO-side reserve of the subnet AMM pool (subnet-level TVL in TAO)
          example: '1000000'
        pricePerShare:
          type: string
          description: Spot price of the subnet alpha token in TAO
          example: '1.0'
      required:
        - id
    ArgumentFieldDto:
      type: object
      properties:
        name:
          type: string
          description: Field name
          enum:
            - amount
            - amountRaw
            - slippageBps
            - amounts
            - shareAmount
            - shareAmountRaw
            - validatorAddress
            - validatorAddresses
            - receiverAddress
            - providerId
            - duration
            - inputToken
            - inputTokenNetwork
            - outputToken
            - outputTokenNetwork
            - subnetId
            - tronResource
            - feeConfigurationId
            - cosmosPubKey
            - tezosPubKey
            - cAddressBech
            - pAddressBech
            - executionMode
            - ledgerWalletApiCompatible
            - useMaxAmount
            - useInstantExecution
            - useAutoClaim
            - rangeMin
            - rangeMax
            - percentage
            - tokenId
            - skipPrechecks
            - useMaxAllowance
            - feePayerAddress
            - encryptedAmount
            - encryptedAmountProof
            - encryptedLegAmounts
            - encryptedLegProof
            - decryptedAmount
            - decryptionProof
          example: amount
        type:
          type: string
          description: Field type
          example: string
          enum:
            - string
            - number
            - address
            - enum
            - boolean
        label:
          type: string
          description: Field label
          example: Amount to Enter
        description:
          type: string
          description: Field description
        required:
          type: boolean
          description: Whether the field is required
          example: true
        options:
          description: Options for enum fields
          example:
            - individual
            - batched
          type: array
          items:
            type: string
        optionsRef:
          type: string
          description: Reference to API endpoint that provides options dynamically
          example: /api/v1/validators?integrationId=eth-lido
        default:
          type: object
          description: Default value for the field
        placeholder:
          type: string
          description: Placeholder text for the field
        minimum:
          type: string
          description: Minimum allowed value for number fields (null if no minimum)
          example: '1.0'
          nullable: true
        maximum:
          type: string
          description: Maximum allowed value for number fields (null if no maximum)
          example: '100.0'
          nullable: true
        isArray:
          type: boolean
          description: Whether the field is an array
          example: false
      required:
        - name
        - type
        - label
    RevShareTiersDto:
      type: object
      properties:
        trial:
          description: Trial tier revenue share details
          allOf:
            - $ref: '#/components/schemas/RevShareDetailsDto'
        standard:
          description: Standard tier revenue share details
          allOf:
            - $ref: '#/components/schemas/RevShareDetailsDto'
        pro:
          description: Pro tier revenue share details
          allOf:
            - $ref: '#/components/schemas/RevShareDetailsDto'
    RevShareDetailsDto:
      type: object
      properties:
        minRevShare:
          type: number
          description: Minimum revenue share percentage (0-1)
          example: 0.3
        maxRevShare:
          type: number
          description: Maximum revenue share percentage (0-1)
          example: 0.7
      required:
        - minRevShare
        - maxRevShare
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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