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

# ウォレット - 残高変動

> フィルタリングとページネーション付きでウォレット残高変動履歴を取得



## OpenAPI

````yaml /jp/api-reference/openapi-data-jp.yaml GET /v2/wallet/{chain}/{walletAddress}/balance-updates
openapi: 3.1.0
info:
  title: Services API
  description: Services API
  contact:
    name: AI
    email: ai@sx.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.chainstream.io
    description: Production
security:
  - bearer_auth: []
  - api_key_auth: []
tags:
  - name: Blockchain
    description: ブロックチェーン関連の操作
  - name: Token
    description: トークン関連の操作
  - name: Trade
    description: 取引関連の操作
  - name: Wallet
    description: ウォレット関連の操作
  - name: Dex
    description: DEX 関連の操作
  - name: Ranking
    description: ランキング関連の操作
  - name: DexPool
    description: DEX プール関連の操作
  - name: Watchlist
    description: ウォッチリスト関連の操作
  - name: KYT
    description: KYT 関連の操作
  - name: Webhook
    description: Webhook 関連の操作
  - name: RedPacket
    description: レッドパケット関連の操作
  - name: IPFS
    description: IPFS 関連の操作
  - name: DexScreener
    description: DexScreener 関連の操作
paths:
  /v2/wallet/{chain}/{walletAddress}/balance-updates:
    get:
      tags:
        - Wallet
      summary: ウォレット - 残高更新
      description: フィルタリングとページネーション付きでウォレット残高変動履歴を取得
      operationId: get.balance.updates
      parameters:
        - name: chain
          in: path
          description: サポートされているネットワークに記載されているチェーン名
          required: true
          schema:
            $ref: '#/components/schemas/ChainSymbol'
          example: sol
        - name: walletAddress
          in: path
          description: ウォレットのアドレス
          required: true
          schema:
            type: string
          example: MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2
        - name: cursor
          in: query
          description: ページネーションカーソル
          required: false
          schema:
            type: string
          example: eyJpZCI6IjEyMyJ9
        - name: limit
          in: query
          description: ページあたりの結果数
          required: false
          schema:
            type: integer
            format: int64
            default: 20
          example: 20
        - name: direction
          in: query
          description: ページネーション方向（next または prev）
          required: false
          schema:
            oneOf:
              - $ref: '#/components/schemas/PageDirection'
            default: next
          example: next
        - name: tokenAddress
          in: query
          description: トークンのアドレス
          required: false
          schema:
            type: string
          example: FBmHMoWzwJB3g9GCSNTn1ZyvgkuZs7c8GTgNDoJNpump
        - name: timeFrom
          in: query
          description: 開始タイムスタンプ（Unix エポック秒）
          required: false
          schema:
            type: integer
            format: int64
          example: 1705312800000
        - name: timeTo
          in: query
          description: 終了タイムスタンプ（Unix エポック秒）
          required: false
          schema:
            type: integer
            format: int64
          example: 1705399200000
        - name: type
          in: query
          description: '残高タイプフィルタ（SOL: ネイティブ、SPL: トークン）'
          required: false
          schema:
            $ref: '#/components/schemas/BalanceTokenType'
          example: SPL
        - name: changeType
          in: query
          description: 残高変動方向フィルタ（INCREASE または DECREASE）
          required: false
          schema:
            $ref: '#/components/schemas/BalanceChangeType'
          example: INCREASE
      responses:
        '200':
          description: 成功レスポンス
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageResponse_BalanceUpdate'
components:
  schemas:
    ChainSymbol:
      type: string
      description: Supported blockchain chains
      enum:
        - sol
        - eth
        - bsc
    PageDirection:
      type: string
      description: Pagination direction
      enum:
        - next
        - prev
    BalanceTokenType:
      type: string
      description: Balance token type
      enum:
        - SOL
        - SPL
    BalanceChangeType:
      type: string
      description: Balance change type
      enum:
        - INCREASE
        - DECREASE
    PageResponse_BalanceUpdate:
      type: object
      description: Generic pagination response
      required:
        - data
      properties:
        data:
          type: array
          items:
            type: object
            description: Balance update record
            required:
              - blockHash
              - blockHeight
              - blockTimestamp
              - transactionSignature
              - index
              - tokenAddress
              - tokenAccountAddress
              - accountOwnerAddress
              - preBalance
              - preBalanceInNative
              - preBalanceInUsd
              - postBalance
              - postBalanceInNative
              - postBalanceInUsd
              - balanceChange
              - balanceChangeInNative
              - balanceChangeInUsd
              - type
              - changeType
            properties:
              accountOwnerAddress:
                type: string
                description: アカウント所有者のウォレットアドレス
              balanceChange:
                type: string
                description: 残高変動額
              balanceChangeInNative:
                type: string
                description: ネイティブトークン建ての残高変動額
              balanceChangeInUsd:
                type: string
                description: USD建ての残高変動額
              blockHash:
                type: string
                description: ブロックハッシュ
              blockHeight:
                type: integer
                format: int64
                description: ブロック高
              blockSlot:
                type:
                  - integer
                  - 'null'
                format: int64
                description: ブロックスロット番号
              blockTimestamp:
                type: integer
                format: int64
                description: ブロックタイムスタンプ（ミリ秒）
              changeType:
                $ref: '#/components/schemas/BalanceChangeType'
                description: 残高変動方向（INCREASE または DECREASE）
              index:
                type: integer
                format: int64
                description: トランザクションインストラクションインデックス
              postBalance:
                type: string
                description: トランザクション後の残高
              postBalanceInNative:
                type: string
                description: ネイティブトークン建てのトランザクション後残高
              postBalanceInUsd:
                type: string
                description: USD建てのトランザクション後残高
              preBalance:
                type: string
                description: トランザクション前の残高
              preBalanceInNative:
                type: string
                description: ネイティブトークン建てのトランザクション前残高
              preBalanceInUsd:
                type: string
                description: USD建てのトランザクション前残高
              tokenAccountAddress:
                type: string
                description: トークンアカウントアドレス
              tokenAddress:
                type: string
                description: トークンコントラクトアドレス
              transactionSignature:
                type: string
                description: トランザクション署名
              type:
                $ref: '#/components/schemas/BalanceTokenType'
                description: 'トークンタイプ（SOL: ネイティブ、SPL: トークン）'
          description: Page data
        endCursor:
          type:
            - string
            - 'null'
          description: Cursor for the end of current page
          example: eyJpZCI6ImVuZCJ9
        hasNext:
          type: boolean
          description: Whether there is a next page
          example: false
        hasPrev:
          type: boolean
          description: Whether there is a previous page
          example: false
        startCursor:
          type:
            - string
            - 'null'
          description: Cursor for the start of current page
          example: eyJpZCI6InN0YXJ0In0=
        total:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            Total number of items matching the query (not just the current
            page).

            When `None`, the caller should treat it as unknown
            (backward-compatible).
          example: 564094
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-API-KEY

````