{"id":20743533,"url":"https://github.com/careboo/unity-algorand-sdk","last_synced_at":"2025-04-24T05:37:49.777Z","repository":{"id":36984726,"uuid":"359331949","full_name":"CareBoo/unity-algorand-sdk","owner":"CareBoo","description":"An Algorand SDK for Unity. Use the Algorand blockchain in your video game.","archived":false,"fork":false,"pushed_at":"2023-10-26T02:36:05.000Z","size":108377,"stargazers_count":31,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-24T05:37:20.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/CareBoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-04-19T04:48:20.000Z","updated_at":"2024-05-03T02:21:04.000Z","dependencies_parsed_at":"2023-02-12T17:46:06.213Z","dependency_job_id":"9e47135d-3b0e-4952-a474-b27650b0688f","html_url":"https://github.com/CareBoo/unity-algorand-sdk","commit_stats":{"total_commits":926,"total_committers":4,"mean_commits":231.5,"dds":0.1544276457883369,"last_synced_commit":"c992facadb4415dba6833117114926c23b25d14c"},"previous_names":[],"tags_count":148,"template":false,"template_full_name":"CareBoo/UPMTemplate-2020","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CareBoo%2Funity-algorand-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CareBoo%2Funity-algorand-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CareBoo%2Funity-algorand-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CareBoo%2Funity-algorand-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CareBoo","download_url":"https://codeload.github.com/CareBoo/unity-algorand-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250573274,"owners_count":21452335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-17T07:11:36.496Z","updated_at":"2025-04-24T05:37:49.727Z","avatar_url":"https://github.com/CareBoo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 id=\"unity-algorand-sdk\" align=\"center\"\u003e\n\u003cpicture\u003e\n  \u003cimg alt=\"The Algorand Logo\" src=\"docs/images/algorand_logo_mark.svg\"/\u003e\n\u003c/picture\u003e\n\u003cbr/\u003e\nAlgorand SDK for Unity\n\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"LICENSE.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/CareBoo/unity-algorand-sdk\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/CareBoo/unity-algorand-sdk/actions/workflows/test.yaml\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/CareBoo/unity-algorand-sdk/test.yaml?branch=main\u0026label=tests\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/com.careboo.unity-algorand-sdk\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/com.careboo.unity-algorand-sdk\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://openupm.com/packages/com.careboo.unity-algorand-sdk/\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/com.careboo.unity-algorand-sdk?label=openupm\u0026registry_uri=https://package.openupm.com\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003c/h1\u003e\n\nIntegrate your game with [Algorand](https://www.algorand.com/), a Pure Proof-of-Stake blockchain overseen by the Algorand Foundation.\nCreate Algorand transactions, Algorand accounts, and use Algorand's [REST APIs](https://developer.algorand.org/docs/rest-apis/restendpoints/).\n\n## Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [Requirements](#requirements)\n- [Common Usages](#common-usages)\n  - [Make a payment transaction](#make-a-payment-transaction)\n    - [Sign the transaction with an account](#sign-the-transaction-with-an-account)\n    - [Sign the transaction with `kmd`](#sign-the-transaction-with-kmd)\n    - [Send the signed transaction](#send-the-signed-transaction)\n- [Installation](#installation)\n  - [Unity Asset Store](#unity-asset-store)\n  - [Asset Package](#asset-package)\n  - [Open UPM](#open-upm)\n  - [Manually Adding UPM Scopes](#manually-adding-upm-scopes)\n- [Getting Started](#getting-started)\n  - [Documentation Site](#documentation-site)\n  - [Samples](#samples)\n\n## Requirements\n\nThis package supports the following build targets and Unity versions:\n\n| Unity Version |      Windows       |       Mac OS       |       Linux        |      Android       |        iOS         |       WebGL        |\n| :-----------: | :----------------: | :----------------: | :----------------: | :----------------: | :----------------: | :----------------: |\n|    2021.3     | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n|    2022.3     | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\n- :white_check_mark: All APIs are supported.\n- :x: Not supported. Use at your own risk.\n\n## Common Usages\n\n### Make a payment transaction:\n\n```csharp\nusing Algorand.Unity;\n\nvar sender = \"\u003cyour sender address\u003e\";\nvar receiver = \"\u003cyour receiver address\u003e\";\nvar algod = new AlgodClient(\"https://testnet-api.algonode.cloud\");\nvar suggestedTxnParams = await algod.GetSuggestedParams();\nvar microAlgosToSend = 1_000_000L;\nvar paymentTxn = Transaction.Payment(sender, suggestedTxnParams, receiver, microAlgosToSend);\n```\n\n#### Sign the transaction with an account:\n\n```csharp\nvar account = Account.GenerateAccount();\nvar signedTxn = account.SignTxn(paymentTxn);\n```\n\n#### Sign the transaction with `kmd`:\n\n```csharp\nvar kmd = new KmdClient(\"\u003chost of kmd\u003e\");\nvar walletToken = await kmd.InitWalletHandleToken(\"\u003cyour wallet id\u003e\", \"\u003cyour wallet password\u003e\");\nvar signedTxn = await kmd.SignTransaction(paymentTxn.Sender, paymentTxn.ToSignatureMessage(), walletToken, \"\u003cyour kmd wallet password\u003e\");\n```\n\n#### Send the signed transaction:\n\n```csharp\nawait algod.SendTransaction(signedTxn);\n```\n\n## Installation\n\n### Unity Asset Store\n\n[Algorand SDK for Unity](https://u3d.as/31Er) is now available!\n\n### Asset Package\n\nEach release contains a `.unitypackage` package file that can be installed into a project.\n\n1. [Download the latest release.](https://github.com/CareBoo/unity-algorand-sdk/releases/latest)\n2. [Import the `.unitypackage` file into your project.](https://docs.unity3d.com/Manual/AssetPackagesImport.html)\n\n### Open UPM\n\nThe easiest way to install as a package is to use Open UPM as it manages your scopes automatically.\nYou can [install Open UPM here](https://openupm.com/docs/getting-started.html).\nThen use the Open UPM CLI at the root of your Unity project to install.\n\n```sh\n\u003e cd \u003cyour unity project\u003e\n\u003e openupm add com.careboo.unity-algorand-sdk\n```\n\n### Manually Adding UPM Scopes\n\nIf you don't want to use Open UPM, it's straightforward to manually add the UPM registry scopes\nrequired for this package. See [Unity's official documentation on Scoped Registries](https://docs.unity3d.com/Manual/upm-scoped.html).\nModify your scopes to include the following:\n\n```json\n{\n  \"scopedRegistries\": [\n    {\n      \"name\": \"package.openupm.com\",\n      \"url\": \"https://package.openupm.com\",\n      \"scopes\": [\n        \"com.careboo.unity-algorand-sdk\",\n        \"com.cysharp.unitask\"\n      ]\n    }\n  ]\n}\n```\n\n## Getting Started\n\nRead [Getting Started](docs/getting_started.md) to learn the basic workflows for developing on Algorand.\n\n### Documentation Site\n\nDocs for this version were generated at https://careboo.github.io/unity-algorand-sdk/5.0.\n\n### Samples\n\nSome of the samples are built on WebGL and hosted on GitHub Pages.\n\n- [Your First Transaction](https://careboo.github.io/unity-algorand-sdk/your-first-transaction)\n- [Local Wallet](https://careboo.github.io/unity-algorand-sdk/local-wallet)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcareboo%2Funity-algorand-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcareboo%2Funity-algorand-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcareboo%2Funity-algorand-sdk/lists"}