Phase III Week #2: A new wallet is born
Another week over. This is our halfway update blogpost. This week we integrated the new API for balance and transaction history into kwanda. We will also give you an overview of our token actions.
Our new wallet
With the new API Update 1.1 we have the ability to use the new wallet and ledger functions. One of the main goals of the challenge is to integrate those new APIs. This week we integrated the two new functions. In Phase II we had to track every transaction ourselfs and then calculate the balance of every user. Now we can make use of the new API endpoints where we can receive the transaction history for every user. Furthermore we are happy to introduce a new design for our wallet page:
The integration of the new API with the official SDK was very simple. Now we have the advantage to show the complete transaction history of an user and not only what we have tracked in our app on our own. But we are still registering every transaction in our own database so that we can show more information to the user. For example which questions belong to a transaction or why he or she has received tokens. But now there won’t be any transaction missing because the main source for the data is the API.
Our transaction types
Now we would like to show you what kind of transaction types we are using. With OST Kit it is easy to create new transaction types. Currently we use four types in our app.
Pay for a question
User to company | Arbitrary amount
When an user posts a question on kwanda he has to set a specific amount of KWA tokens he or she would like to reward the user with the best answer. This amount gets transferred to our company account. We make this process very easy with a slider which is more fun and intuitive than just a simple input field. Furthermore you get an overview of your wallet balance, which is directly linked with the official API.
Reward an answer
Company to user | Arbitrary amount
When a user posts a very good answer, the questioner can reward the user with the amount of tokens he or she specified. Then we transfer the specified KWA tokens from our company account to the user with the best answer.
Tip an answer
User to user | 1 KWA
Furthermore it’s possible to get or give tips for answers. For example a user which found an answer for his question on the internet wants to reward the user additionally with a KWA token. Then he can simply tip the answer and 1 KWA token gets transferred from one user to another. At the moment it is only possible to tip 1 KWA, but in the next update we want to make it possible to tip a custom amount of tokens.
Airdrop
Company to user| 25 KWA
For demonstration purposes we offer the possibility to airdrop some tokens from our company account to the user’s wallet. In the future it should be possible to buy KWA tokens and then spend it for asking questions, tipping answers and much more.
Next week we would like to implement new features. As we mentioned right now it is not possible to tip more than 1 KWA for a good answer. We would like to modify this so that a user can specify how much he or she would like to tip. Come back next week when we show you how we implemented this.
tl;dr
Why did you decide to register for OST Alpha Phase III?
We already participated in OST Alpha Phase III and even won one of the awards. So of course we wanted to integrate new API functions into kwanda to test them.
What is the goal of your project/business’s use of blockchain?
When we heard about OST Alpha Phase we wanted to try on our own how easy it is to integrate OST into a project and manage an own token economy without blockchain knowledge. With kwanda users can reward other users with a token for good answers.
What is the current progress for your team’s OST Alpha Phase III development?
As you can read above we integrated the new API functions so the next steps will be to develop some new features for kwanda, trigger transactions and test the API even further.
What progress did you make on your Alpha III PoC this week?
We integrated the two new API-functions for wallet and ledger. We also rebuilt our wallet page.
What did you learn/issues you had to overcome?
No big issues this week.
What are you planning for the next week?
We would like to introduce a new feature for tipping an answer. Right now every tip is only 1 KWA. We would like to let users decide how much they would like to tip.
About kwanda
Kwanda is a Proof of Concept built for OST Kit Alpha Phase. It demonstrates how easy it is to integrate a token economy into a (existing) website or app powered by OST. If you want to learn more visit our website or follow us on Twitter.
You can find more information about OST Kit Alpha Phase III in the following blogpost. Please have a look at all the other great projects. You can find a collection of all blogposts here.