Our contracts are deployed and ready, but currently, the only way to interact with them is through a console attached to a client, or using a third-party website that is able to read the contracts. This is all well and good for a developer, but for investors and members of the public, this is likely too much of a barrier to participation – we need a simpler way for them to interact.
In the next part of our tutorial, we will create a simple, single-page website that will allow users to quickly and easily buy tokens in our token sale. The page we will be making is shown here:
The page contains the following:
- Information about the name of the token and the current token price.
- The user's current token balance.
- The user's account address.
- An input field and button to enter the amount of tokens to buy.
- A progress bar indicating the progress...