# Utility Functions

### Monitor Transactions (`awaitTxConfirm`)

This is a simple function that can be called to verify if a transaction has landed on-chain yet. It can be very useful for creating a UI component to display the TX submission status after an on-chain action.

It returns either true if the transaction has landed on-chain or false if the transaction has not landed on-chain yet.

Our recommendation is to create some sort of loop or interval to call this function every couple of seconds until it returns true.

#### Parameters:

* txId: The transaction ID to monitor for confirmation of landing on-chain. Any of the Agora SDK function calls will return this information.


---

# Agent Instructions: 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:

```
GET https://sdk.clarity.vote/utility-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
