{"id":50416442,"url":"https://github.com/skyf0xx/kin-nodejs-server","last_synced_at":"2026-05-31T06:03:33.001Z","repository":{"id":39389512,"uuid":"206785251","full_name":"skyf0xx/kin-nodejs-server","owner":"skyf0xx","description":"Implementation of the Kin-Node.js SDK (Heroku ready)","archived":false,"fork":false,"pushed_at":"2022-08-30T23:30:52.000Z","size":63,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T00:01:23.966Z","etag":null,"topics":["blockchain","heroku-ready","kin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyf0xx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-06T12:05:07.000Z","updated_at":"2020-01-04T02:02:14.000Z","dependencies_parsed_at":"2022-09-20T01:52:42.544Z","dependency_job_id":null,"html_url":"https://github.com/skyf0xx/kin-nodejs-server","commit_stats":null,"previous_names":["skyf0xx/kin-nodejs-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/skyf0xx/kin-nodejs-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyf0xx%2Fkin-nodejs-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyf0xx%2Fkin-nodejs-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyf0xx%2Fkin-nodejs-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyf0xx%2Fkin-nodejs-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyf0xx","download_url":"https://codeload.github.com/skyf0xx/kin-nodejs-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyf0xx%2Fkin-nodejs-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33720900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","heroku-ready","kin"],"created_at":"2026-05-31T06:03:30.200Z","updated_at":"2026-05-31T06:03:32.996Z","avatar_url":"https://github.com/skyf0xx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kin node.js server and Unity app in 10 minutes\n### Heroku ready Implementation of the [Kin SDK for Node.js](https://github.com/kinecosystem/kin-sdk-node)\n\nIf you follow the steps below, you should have a running Kin app (client and server) in 10-15 minutes. (A more detailed tutorial can be found [here](https://medium.com/kinblog/building-a-kin-powered-app-with-unity-cf8deef56bdb) but this code has the latest updates)\n## I. Server set up\n1. Create a new app on [Heroku](https://dashboard.heroku.com/apps) and provision (add) [redis cloud](https://elements.heroku.com/addons/rediscloud). (To use redis, you will need a credit card to authenticate your identity, but the service is free)\n2. Under *settings* add the following config vars:\n\n    a). appID - random alphanumeric 4 character string\n    \n    b). PRIVATE_KEY - Generate a keypair [here](https://laboratory.kin.org/index.html#account-creator?network=public) and paste the secret provided\n    \n    c). SALT - random string. (Generate a new keypair and use the secret for the salt)\n\n3. Take the *public* key you generated in step 2(b), and paste it on the friendbot and fund it with free test kin.\n4. Clone this repository on your desktop, and push it to your heroku app.\n5. On heroku, click the *resources* tab for your app and make sure **both** worker and web dynos are on.\n\n#### Finally\nFind your app's url from the *settings* tab and access it with the following variable:\n```javascript\n?createChannels=true\n```\ne.g.\nhttps://my-server.herokuapp.com?createChannels=true\n\nThis is a one time function you run, to create [channels](https://docs.kin.org/nodejs/sdk#channels) for your account. You can re-run this function if you change your private key and/ or salt (or if you change from Test to Production environments). If everything went well, your server should have given you the 'OK' sign. \n\n### Usage\nSimply call the server with GET/POST to perform the following functions:\n1. Fund a new account (create it on the blockchain)\n\n    GET: fund = 1\n\n   POST: address, memo, amount\n\n2. Send a payment to an account\n  \n   GET: request = 1\n\n   POST: address, id, memo, amount\n\n3. Whitelist a transaction for the client\n\n   GET: whitelist = 1\n\n   POST: address, id, memo, amount\n\n#### Variables\n1. **address:** The blockchain address you wish to make a payment to\n2. **memo:** Memo to add to your transaction\n3. **amount:** Amount to send for your transaction\n4. **id:** A unique id for your client (optional)\n\n## II. Client set up\n1. Download this [sample app](https://github.com/hitwill/kin-sdk-unity-tutorial) and open with Unity.\n2. Open *Assets/Scripts/Tutorial.cs* and in *Start()* update the following variables:\n```csharp\n void Start()\n    {\n        string url = \"https://mykin-server.com\"; //url to your server\n        string serverAddress = \"GAFWC...VLIZZ\"; //*public* key from step 2(b) in server set up\n    }\n```\n3. Compile and run on an **android device** or emulator. The SDK will not work running on the editor.\n\n## Porting to your client\nThe client code all sits in *Assets/Scripts/KinWrapper.cs*. You can copy that file and attach it to an empty object in the first scene of your app or game. All the details of how the code works can be found in the tutorial linked at the start.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyf0xx%2Fkin-nodejs-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyf0xx%2Fkin-nodejs-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyf0xx%2Fkin-nodejs-server/lists"}