Web3 & MetaMask - Bubble plugin
Get PluginAll our plugins
  • Overview
  • Quick Start Example
  • Elements details
    • Web3 & MetaMask
      • Connect To MetaMask
      • Disconnect MetaMask
      • Send token With MetaMask
      • Get Balance of a Token
      • Get Balance of Multiple Tokens
      • Get Token Symbol
      • Sign
      • Check signature
      • Sign Typed Data
      • Check signature-Typed Data
      • Smart Contract - Read
        • Example - CAKE/BUSD rate on Pancaksewap
      • Smart Contract - Write
        • Example - Write a function
      • Trigger Switch Chain
      • Approve - Set Allowance
      • Revoke Allowance
      • Deploy Contract
      • Add Chain to MetaMask
      • Get NFT Metadata
      • Check NFT Balance
      • Smart Contract - Read
      • Smart Contract - Write
    • Web3 Utils
      • Get Transaction confirmations
      • Get Transaction Details
      • To Wei
      • From Wei
      • Add Token to MetaMask
      • Get ENS data
      • Get ENS Domain from Address
  • Use with other Wallets & Plugins
  • Sign up a user with signature
  • How to use on Mobile
Powered by GitBook
On this page
  • Parameters
  • Events
  • States
  1. Elements details
  2. Web3 Utils

Get Transaction confirmations

PreviousWeb3 UtilsNextGet Transaction Details

Last updated 2 years ago

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 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.

When running this action, make sure your wallet is connected on the same chain as the chain where the transaction hash is from

Parameters

Parameter name
Type
Description

ID

text

Transaction HASH id

Events

Event name
Description

Transaction Confirmation is Ready

Triggers when the result is ready to be used.

States

State name
Type
Details

Transaction - confirmations

Number

TX: Status

Text

Success, Pending, Error

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.

Transaction HASH id