Building a Kin-powered app with Unity, Part 7

Will Gikandi
Aug 17, 2019 · 2 min read

Our first transaction

In the previous tutorial, we looked at the main functions of the server and some of the code that runs it.

In this tutorial, we will look at several transactions between your client and your new Kin server.

Build your Kin-powered project in Unity

Remember, in the previous steps we created our server and added the URL and the server’s public key to our Unity app.

Now that our project has these details, it will:

1. Create a local private key/public address pair
2. Request the server to onboard this public address

The server, having received this request, will onboard the address on Kin’s blockchain and fund it. Build your client like in the previous tutorial and observe the response.

In the previous tutorial, before we set up the server, we received this response from the client:

This time, your response should be similar to the one shown below:

To confirm this is happening on the blockchain, access Kin’s laboratory and paste your server’s public address.

When you click submit, you will see the transaction details between your server and your client.

Your server is listed as the “funder” that onboarded your client’s “account.” You can also copy the “account” address and paste it in the form to see the transactions attributed to it.

Conclusion

We have built our app and confirmed that it communicates with the server successfully. In the next tutorial, we will look “under the hood” to understand the client-side code that checked the account status and requested funding.

Kin Blog

Kin is money. Earn, spend, and transfer value across an ecosystem of apps and services. Get paid for developing engaging user experiences with Kin.

Will Gikandi

Written by

Kin Blog

Kin Blog

Kin is money. Earn, spend, and transfer value across an ecosystem of apps and services. Get paid for developing engaging user experiences with Kin.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade