Building a Kin-powered app with Unity, Part 7

Will Gikandi
Kin Blog
Published in
2 min readAug 17, 2019

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.

--

--