> For the complete documentation index, see [llms.txt](https://docs.novabloq.com/web3-metamask/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novabloq.com/web3-metamask/elements-details/web3-and-metamask/get-balance-of-a-token.md).

# Get Balance of a Token

### &#x20;<mark style="background-color:blue;">Parameters</mark>&#x20;

<table><thead><tr><th width="209">Parameter name</th><th width="83.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>Token Address</td><td>Text</td><td>Token smart contract address.<br>If you want to check the chain native token (like ETH for Ethereum mainnet) leave this field empty.</td></tr><tr><td>Wallet address</td><td>Text</td><td>Wallet address to check the balance for. It can be any wallet address not necessarily the connected wallet.</td></tr></tbody></table>

### &#x20;<mark style="background-color:blue;">Events</mark>&#x20;

<table><thead><tr><th width="197">Event name</th><th>Description</th></tr></thead><tbody><tr><td>Get Balance - Done</td><td>The result will be available only after this event triggers</td></tr></tbody></table>

### &#x20;<mark style="background-color:blue;">States</mark>&#x20;

<table><thead><tr><th width="204.33333333333331">State name</th><th width="121">Type</th><th>Description</th></tr></thead><tbody><tr><td>Balance of Token</td><td>Number</td><td>Balance of token on given wallet (rounded to 6 decimals)</td></tr><tr><td>Balance of Token (text type)</td><td>Text</td><td>Full response without rounding, in text format.</td></tr></tbody></table>

### [Demo](https://web3-demo.bubbleapps.io/version-test/web3)

This particular demo page contains many features combined in one page, see lower on the page the section "*Get balance of Token*"


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.novabloq.com/web3-metamask/elements-details/web3-and-metamask/get-balance-of-a-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
