# 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*](https://docs.novabloq.com/web3-metamask/web3-and-metamask#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 %}
