> For the complete documentation index, see [llms.txt](https://mujahid.gitbook.io/decast-gating-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mujahid.gitbook.io/decast-gating-document/helper-view-functions/balanceof.md).

# balanceOf

This view function checks whether user have tokenId or not. It returns uint, 0 indicates false and if greater than 1 indicates true. It takes two parameters:

* `address`: The User Address.
* `id`: The Token Id.
