Skip to main content

Wrap Lock / Token demo

This section presents the Wrap Lock / Token demo app.

The Wrap Lock / Token transfer demo app is a web front-end that uses javascript and that connects to running proof servers and blockchain API nodes on two blockchains and uses the Wrap Lock / Token contracts to transfer a native token to a destination blockchain, which becomes a wrapped token, and then back.

The running demo can be accessed here: https://ibc-demo.uxnetwork.io/.

The source code for the demo can be downloaded from its source repository on Github.

Retrying failed transfers

The token demo above involves the execution of two user-signed transactions: one in the source chain, that locks the native tokens, and one in the destination chain, that proves that tokens have been locked in the source chain to mint the equivalent wrapped tokens.

If there is a problem between the first and second transaction, such as a client-side browser crash, the demo application will not remember the transfer and try or retry the second transaction.

To fix incomplete Wrap Lock / Token demo transfers, there is a Wrap Lock / Token Retry demo application available, which can be accessed here: https://ibc-retry.uxnetwork.io/

The source code for the Retry demo can be downloaded from its source repository on Github.

Fixing transfers that never complete

The most common cause of the inability to complete an IBC transfer is insufficient blockchain account resources allocated on either side (or both sides) of the transfer. In that case, allocating more resources to the under-provisioned account(s) will fix the issue.