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

# getAssetsByOwner

> Truy xuất tất cả NFT Solana, NFT nén và token có thể thay thế thuộc sở hữu của một địa chỉ ví cụ thể, với các tùy chọn sắp xếp và phân trang



## OpenAPI

````yaml vi/openapi/das-api/getAssetsByOwner.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API Digital Asset Standard (DAS) để truy xuất dữ liệu toàn diện về quyền sở
    hữu NFT và token Solana, với các tùy chọn lọc và phân trang nâng cao.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: >-
      Điểm cuối RPC Mainnet dành cho các ứng dụng Solana trong môi trường
      production
  - url: https://devnet.helius-rpc.com
    description: Điểm cuối RPC Devnet dành cho việc phát triển và kiểm thử Solana
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getAssetsByOwner
      description: >
        Truy xuất danh sách toàn diện gồm tất cả tài sản kỹ thuật số thuộc sở
        hữu của một địa chỉ ví Solana cụ thể.

        Truy cập toàn bộ bộ sưu tập NFT, tài sản nén, token có thể thay thế và
        số dư SOL gốc

        với các tùy chọn lọc, sắp xếp và phân trang nâng cao. Hỗ trợ cả NFT
        truyền thống và NFT nén

        cùng siêu dữ liệu chi tiết để phân tích đầy đủ danh mục đầu tư của ví.
      operationId: rpc
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: Phiên bản của giao thức JSON-RPC.
                  default: '2.0'
                id:
                  type: string
                  description: ID để định danh yêu cầu.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getAssetsByOwner
                  description: Tên của phương thức DAS cần gọi.
                  default: getAssetsByOwner
                params:
                  description: >-
                    Các tham số để truy vấn tài sản kỹ thuật số Solana theo địa
                    chỉ chủ sở hữu, với các tùy chọn lọc và phân trang.
                  default:
                    ownerAddress: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
                    page: 1
                    limit: 10
                  oneOf:
                    - type: object
                      properties:
                        ownerAddress:
                          type: string
                          description: >-
                            Địa chỉ ví Solana dùng để truy xuất tất cả tài sản
                            kỹ thuật số thuộc sở hữu.
                          example: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
                        page:
                          type: integer
                          description: >-
                            Số trang để phân trang qua các bộ sưu tập tài sản
                            lớn (chỉ mục bắt đầu từ 1).
                          example: 1
                        limit:
                          type: integer
                          description: >-
                            Số lượng tài sản tối đa trả về trên mỗi trang (tối
                            đa 1000).
                          example: 50
                        sortBy:
                          type: object
                          description: >-
                            Cấu hình sắp xếp để xác định thứ tự của các tài sản
                            Solana được trả về.
                          properties:
                            sortBy:
                              type: string
                              description: >-
                                Tiêu chí sắp xếp tài sản kỹ thuật số Solana
                                trong phản hồi.
                              enum:
                                - created
                                - recent_action
                                - updated
                                - none
                            sortDirection:
                              type: string
                              description: >-
                                Hướng sắp xếp tài sản kỹ thuật số Solana trong
                                phản hồi.
                              enum:
                                - asc
                                - desc
                        options:
                          type: object
                          description: >-
                            Các tùy chọn hiển thị và lọc cho dữ liệu tài sản
                            Solana được trả về.
                          properties:
                            showUnverifiedCollections:
                              type: boolean
                              description: >-
                                Bao gồm thông tin nhóm cho các bộ sưu tập NFT
                                Solana chưa được xác minh.
                              default: false
                            showCollectionMetadata:
                              type: boolean
                              description: >-
                                Bao gồm siêu dữ liệu chi tiết cho các bộ sưu tập
                                NFT Solana.
                              default: false
                            showGrandTotal:
                              type: boolean
                              description: >-
                                Bao gồm tổng số tất cả tài sản thuộc sở hữu của
                                địa chỉ (có thể làm tăng thời gian phản hồi).
                              default: false
                            showFungible:
                              type: boolean
                              description: >-
                                Bao gồm token SPL và tài sản có thể thay thế do
                                ví Solana nắm giữ.
                              default: false
                            showNativeBalance:
                              type: boolean
                              description: Bao gồm số dư SOL gốc do ví Solana nắm giữ.
                              default: false
                            showZeroBalance:
                              type: boolean
                              description: >-
                                Bao gồm các tài sản có số dư bằng 0 trong danh
                                sách sở hữu.
                              default: false
                      required:
                        - ownerAddress
                    - type: object
                      properties:
                        ownerAddress:
                          type: string
                          description: >-
                            Địa chỉ ví Solana dùng để truy xuất tất cả tài sản
                            kỹ thuật số thuộc sở hữu.
                          example: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
                        before:
                          type: string
                          description: >-
                            Con trỏ phân trang để truy xuất các tài sản trước vị
                            trí này (dùng cho phân trang ngược).
                          example: string
                        after:
                          type: string
                          description: >-
                            Con trỏ phân trang để truy xuất các tài sản sau vị
                            trí này (dùng cho phân trang xuôi).
                          example: string
                        sortBy:
                          type: object
                          description: >-
                            Cấu hình sắp xếp để xác định thứ tự của các tài sản
                            Solana được trả về.
                          properties:
                            sortBy:
                              type: string
                              description: >-
                                Tiêu chí sắp xếp tài sản kỹ thuật số Solana
                                trong phản hồi.
                              enum:
                                - created
                                - recent_action
                                - updated
                                - none
                            sortDirection:
                              type: string
                              description: >-
                                Hướng sắp xếp tài sản kỹ thuật số Solana trong
                                phản hồi.
                              enum:
                                - asc
                                - desc
                        options:
                          type: object
                          description: >-
                            Các tùy chọn hiển thị và lọc cho dữ liệu tài sản
                            Solana được trả về.
                          properties:
                            showUnverifiedCollections:
                              type: boolean
                              description: >-
                                Bao gồm thông tin nhóm cho các bộ sưu tập NFT
                                Solana chưa được xác minh.
                              default: false
                            showCollectionMetadata:
                              type: boolean
                              description: >-
                                Bao gồm siêu dữ liệu chi tiết cho các bộ sưu tập
                                NFT Solana.
                              default: false
                            showGrandTotal:
                              type: boolean
                              description: >-
                                Bao gồm tổng số tất cả tài sản thuộc sở hữu của
                                địa chỉ (có thể làm tăng thời gian phản hồi).
                              default: false
                            showFungible:
                              type: boolean
                              description: >-
                                Bao gồm token SPL và tài sản có thể thay thế do
                                ví Solana nắm giữ.
                              default: false
                            showNativeBalance:
                              type: boolean
                              description: Bao gồm số dư SOL gốc do ví Solana nắm giữ.
                              default: false
                            showZeroBalance:
                              type: boolean
                              description: >-
                                Bao gồm các tài sản có số dư bằng 0 trong danh
                                sách sở hữu.
                              default: false
                      required:
                        - ownerAddress
              required:
                - jsonrpc
                - id
                - method
                - params
      responses:
        '200':
          description: >-
            Đã truy xuất thành công các tài sản kỹ thuật số Solana thuộc sở hữu
            của địa chỉ ví đã chỉ định
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  result:
                    type: object
                    properties:
                      last_indexed_slot:
                        type: integer
                        description: >-
                          Tất cả dữ liệu đến và bao gồm slot này được đảm bảo đã
                          được lập chỉ mục.
                        example: 365750752
                      total:
                        type: integer
                        example: 1
                      limit:
                        type: integer
                        example: 1
                      page:
                        type: integer
                        example: 1
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            interface:
                              type: string
                              description: Giao diện tiêu chuẩn token của tài sản.
                              enum:
                                - V1_NFT
                                - V1_PRINT
                                - LEGACY_NFT
                                - V2_NFT
                                - FungibleAsset
                                - FungibleToken
                                - Custom
                                - Identity
                                - Executable
                                - ProgrammableNFT
                                - MplCoreAsset
                                - MplBubblegumV2
                                - MplCoreCollection
                                - MplCoreGroup
                            is_agent:
                              type: boolean
                              description: >-
                                Cho biết tài sản này có Agent Identity hay không
                                (plugin bên ngoài MPL Core AgentIdentity). Được
                                bỏ qua khi là false.
                            agent_token:
                              type: string
                              description: >-
                                Mint token tác nhân được mã hóa Base58 từ chương
                                trình Agent Registry. Được bỏ qua khi chưa đăng
                                ký.
                            asset_signer:
                              type: string
                              description: >-
                                PDA người ký tài sản được mã hóa Base58 cho MPL
                                Core. Được bỏ qua khi không áp dụng.
                            plugins:
                              type: object
                              description: >-
                                Các plugin MPL Core, bao gồm tư cách thành viên
                                `groups` MIP-11 không bắt buộc.
                              additionalProperties: true
                          example:
                            interface: V1_NFT
                            id: JCfTS6dmJZY4NXhjMwHqayGGHUwxp59pzcYhZrYqMBce
                            content:
                              $schema: https://schema.metaplex.com/nft1.0.json
                              json_uri: https://www.hi-hi.vip/json/5000wif.json
                              files:
                                - uri: https://img.hi-hi.vip/json/img/5000wif.png
                                  cdn_uri: >-
                                    https://cdn.helius-rpc.com/cdn-cgi/image//https://img.hi-hi.vip/json/img/5000wif.png
                                  mime: image/png
                            authorities:
                              - address: 2iVwwSHr7hGR6wxNuQM8ArQYnX6Mzy2yeFnhBGgQetRw
                                scopes:
                                  - full
                            compression:
                              eligible: false
                              compressed: true
                              data_hash: 7zquDVS1VKu9HDh4WS4ray5ozLThiK6xrnFNhJtusj65
                              creator_hash: 6v7GeYRiVML5mG1kJqi6eujN9sPB3ziCZJF4Vartj1qd
                              asset_hash: 8gQZkgZ1L91qkNPtsiRGkRzpNcEfhBABEQr1D3wquB8H
                              tree: BZNn9zX1MysbSvqyGZ33Seb8bvimaiE9fxmLKwX2Euae
                              seq: 251133
                              leaf_id: 250758
                            grouping:
                              - group_key: collection
                                group_value: 723Vxwr6aYZHNqc8dVQVwchDHUR3cEwZA8zkejdYWKaS
                            royalty:
                              royalty_model: creators
                              target: null
                              percent: 0
                              basis_points: 0
                              primary_sale_happened: false
                              locked: false
                            creators:
                              - address: GVKwqsEC5YQZX4hG7Fdy6m7cJUi4DA3ezYx1CC9wkj34
                                share: 100
                                verified: true
                            ownership:
                              frozen: false
                              delegated: true
                              delegate: GVKwqsEC5YQZX4hG7Fdy6m7cJUi4DA3ezYx1CC9wkj34
                              ownership_model: single
                              owner: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
                            supply:
                              print_max_supply: 0
                              print_current_supply: 0
                              edition_nonce: 0
                            mutable: true
                            burnt: false
                  id:
                    type: string
                    example: text
        '400':
          description: >-
            Yêu cầu không hợp lệ. Máy chủ không thể hiểu yêu cầu do cú pháp
            không hợp lệ.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32602
                      message:
                        type: string
                        example: Tham số yêu cầu không hợp lệ.
                  id:
                    type: string
                    example: '1'
        '401':
          description: >-
            Chưa được xác thực. Máy khách phải tự xác thực để nhận phản hồi được
            yêu cầu.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32001
                      message:
                        type: string
                        example: >-
                          Xác thực thất bại. Thiếu khóa API hoặc khóa API không
                          hợp lệ.
                  id:
                    type: string
                    example: '1'
        '403':
          description: Bị cấm. Máy khách không có quyền truy cập nội dung.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32003
                      message:
                        type: string
                        example: Bạn không có quyền truy cập tài nguyên này.
                  id:
                    type: string
                    example: '1'
        '404':
          description: Không tìm thấy. Máy chủ không thể tìm thấy tài nguyên được yêu cầu.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32004
                      message:
                        type: string
                        example: Không tìm thấy tài sản nào cho chủ sở hữu đã chỉ định.
                  id:
                    type: string
                    example: '1'
        '429':
          description: >-
            Quá nhiều yêu cầu. Người dùng đã gửi quá nhiều yêu cầu trong một
            khoảng thời gian nhất định.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32029
                      message:
                        type: string
                        example: Đã vượt quá giới hạn tốc độ. Vui lòng thử lại sau.
                  id:
                    type: string
                    example: '1'
        '500':
          description: >-
            Lỗi máy chủ nội bộ. Máy chủ đã gặp phải tình huống mà nó không biết
            cách xử lý.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32000
                      message:
                        type: string
                        example: Đã xảy ra lỗi không mong muốn trên máy chủ.
                  id:
                    type: string
                    example: '1'
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Khóa API Helius của bạn. Bạn có thể nhận khóa miễn phí trong [bảng điều
        khiển](https://dashboard.helius.dev/api-keys).

````