---
title: "Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721"
method: GET
path: "/cosmos/nft/v1beta1/balance/{owner}/{classId}"
tags: ["Query"]
---

# Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721

`GET /cosmos/nft/v1beta1/balance/{owner}/{classId}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/docs/cosmos/nft/v1beta1/balance/:owner/:classId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `owner` string, required
- `classId` string, required

## Response `200`

A successful response.

- CosmosNftV1beta1QueryBalanceResponse
  - `amount` string, uint64

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api.md) - [All operations](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/llms.txt) - [OpenAPI document](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/revisions/2d0419923f40?raw)
