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:

Our new wallet design

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.

An user can set a specific amount of tokens as a reward

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.