> 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-utils/get-transaction-confirmations.md).

# Get Transaction confirmations

Get transaction confirmations count.\
Useful to check if it was successfully confirmed on chain.\
When initiating any transaction from the plugin, you will have the [*Transaction HASH id*](/web3-metamask/elements-details/web3-and-metamask.md#common-states) state, use it to check if the transaction was confirmed.\
The user may refresh the page and the state will be reset in that case, this is why we recommend to save the hash in Bubble's database to be used later, to make sure the transaction was confirmed.\
\
If the result is 0 (not confirmed), you can run this action in a loop, every few seconds until the confirmations amount is bigger than 0.

{% hint style="info" %}
When running this action, make sure your wallet is connected on the same chain as the chain where the transaction hash is from
{% endhint %}

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

<table><thead><tr><th width="190.33333333333331">Parameter name</th><th width="77">Type</th><th width="483.6666666666667">Description</th></tr></thead><tbody><tr><td>ID</td><td>text</td><td>Transaction HASH id</td></tr></tbody></table>

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

<table><thead><tr><th width="325">Event name</th><th>Description</th></tr></thead><tbody><tr><td>Transaction Confirmation is Ready</td><td>Triggers when the result is ready to be used.</td></tr></tbody></table>

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

<table><thead><tr><th width="259.3333333333333">State name</th><th width="106">Type</th><th>Details</th></tr></thead><tbody><tr><td>Transaction - confirmations</td><td>Number</td><td></td></tr><tr><td>TX: Status</td><td>Text</td><td><code>Success, Pending, Error</code></td></tr></tbody></table>

{% hint style="success" %}
To be sure that the transaction was successfully sent, use the states *Confirmations* and *Status* in combination. For example `if the tx Confirmations > 0 and Status is Success` only then you can consider the transaction as fully confirmed.
{% endhint %}


---

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

```
GET https://docs.novabloq.com/web3-metamask/elements-details/web3-utils/get-transaction-confirmations.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.
