waitForChildchainBalance
function from omg-js documentation or implement your custom helper/service for polling the expected amount after the deposit.account/get_utxos
endpoint to get information about the latest UTXOs. Current implementation returns only confirmed UTXOs that are not used for the pending transaction. One of the ways to mitigate this limitation is to block/disable your wallet UI to prevent sending other transactions until the current transaction is confirmed. Otherwise, you may encounter a UTXO not found
issue. Alternatively, you can keep track of all of the UTXOs used for your transactions but this will create additional complexity for your application.Scan QR code
button for the network a user is currently on (Ethereum or OMG). It's not recommended to use a global scan as it creates an extra decision for a user to make. If possible, have a separate flow for each of the networks to create a clear and consistent association and mental model for a particular user.