Transaction confirmations
Last updated
Last updated
Transaction confirmations allow users to review a transaction before it gets processed by XpansionChain. A confirmation will automatically be requested from the user when you invoke a function on the IMX provider generated by the XpansionChain SDK.
A transaction confirmation may look like below:
Transaction confirmations are rendered by the XpansionChain SDK by opening a browser pop-up when you call a function on Passport provider. The pop-up renders the transaction details necessary for the user to validate the legitimacy of the transaction.
After the user confirms or declines the transaction, XpansionChain will process or reject the transaction accordingly.
Transaction confirmations appear whenever an action is taken in your app that requires a transaction to be signed. This includes transferring assets, listing NFTs for sale, and canceling sell orders, among others. Users will be prompted to review and confirm the transaction before it is processed on XpansionChain.
All supported IMX Provider functions, with the exception of getAddress
, require user confirmation. Therefore, it's crucial to design your application with transaction confirmations in mind as this is a critical component of the user experience.
Additionally, it's important to note that users can choose to cancel a transaction at any time during the confirmation process, so be sure to handle this edge case accordingly.
For example: