Quickstart Tutorial: Demo Application
Nothing is loaded from YouTube until you press play, and then without tracking cookies.
About this video
This video provides a step-by-step guide to installing the Canton Network Quickstart on LocalNet — perfect for developers looking to explore blockchain application development on the Canton Network.
You’ll learn how to: ~ Deploy a LocalNet with a simulated Global Synchronizer ~ Explore a sample application designed to help you kickstart your own smart contract projects
The Canton Network Quickstart is a ready-to-use template that accelerates development by providing a fully functional environment, ideal for experimenting, learning, and building scalable blockchain applications.
Documentation URL: docs.digitalasset.com/build/3.3/quickstart/operate/explore-the-demo.html#contents
Transcript
606 wordsCaptions as YouTube publishes them, usually machine-generated, so names such as Daml and Canton can be misheard.
- 0:00
To keep everything on one screen, you can minimize Docker, the terminal shells, both the Canton console and the DAML shell. Now that we have quick start installed and set up, let's navigate to localhost 3000 in your browser. We recommend using two different browsers as we will be logging in as two users. For our example, we will use Firefox and Chrome.
- 0:28
First, let's follow the login details on the page and log in as the app provider. Once in the app, navigate to the app installs tab. Follow the note and run the command in a shell window to make a request to the app on behalf of the validator. The request submission will appear for the app provider. Once you see it, click accept.
- 0:54
In the same view, the actions will update and you may then click create license. Now that a license has been created, it needs to have an expiration time set. Head over to the licenses tab and click renewals on the license you just created. Then click new to edit the renewal details. Descriptions of each field can be found in our documentation.
- 1:19
You need to fill in the description to enable the issue license renewal request. Once it looks good, issue the new renewal request and see that it is now in the awaiting status for the app user to accept. If you navigate to the tenants tab, you can review your list of existing tenant registrations. Take a look at the app users wallet link as we will later play the user role and log the wallet. return to the licenses tab to view the licenses
- 1:50
metadata. This is the portion of the workflow that the app provider needs to do. And now we turn to the app user. Now using the other browser, head over to localhost 3000 and log in as the app user. The tab headings are similar to the app providers tabs. Under the licenses tab, click renewals to open the request modal. In this instance, we will renew the license using the Canton Coins wallet. As the actions description says, click on the wallet hyperlink. Once the
- 2:24
wallet opens in a new tab, log in as the app user using the same password. Ensure you are in the wallet's allocations tab. You will see the new allocation request on the license renewal. To accept the allocation request, you must first obtain some Canton coin.
- 2:44
Since we are on Local Net, we can issue Canton Coin to ourselves. To do this, click on the transactions tab of the wallet. Notice that your balance is zero Canton coin. There is a highlighted red box where we can simulate exchanging US dollars for Canton coins. Enter 100 and click tap to simulate exchanging $100 US for Canton coin. Your balance should now be several thousand Canton coin.
- 3:14
Now go back to the allocations tab and click accept. And just below a new allocation will appear. Go back to the application screen and you will see that the license renewal request status is awaiting completion. The last step is for the app provider to complete the renewal request. Go back to the app provider's license renewal request screen and click complete renewal.
- 3:47
Now you can see the license is active and as an app user the license is also updated as active. And that concludes our work on the application example. You've successfully created and activated a license with payment allocation in the Canton coin wallet.
- 4:06
But there is more to explore. We'll introduce you to two important tools. the Canton console and the daml shell.