The C# SDK allows interaction with the Stacks blockchain
Main SDK project: StacksApi project
Easy-to-use blockchain abstractions: ChainAbstractions project
(based on StacksApi project)
At the moment SDK projects target .NET Standard 2.1 (to be compatible with Unity, MAUI/Xamarin).
Major repo parts:
-
High level abstractions (ChainAbstractions project) to start experimenting and coding right away :)
SeeAbstractions.cs
-
Read blockchain state - e.g. check balances, read account's NFTs and so on (mostly read-only operations that do not create new blockchain records)
SeeWebApi
and check https://docs.hiro.so/api.
SeeNFT metadata
-
Update blockchain state - e.g. transfer funds and execute smart contracts (that's more advanced part)
SeeHandle wallet
SeeTransactions
For details you should dive into:
https://github.com/stacksgov/sips/blob/main/sips/sip-005/sip-005-blocks-and-transactions.md -
Unit tests for Abstractions and StacksApi projects
SeeTest project
-
Basic smart contract for dealing with tokens, NFTs and in-game shop
SeeSmart contracts
-
Examples
ShortDemos
MauiSample
CliTools
ShopSample
- If you are not familiar with blockchains or Stacks read
Introduction
- Clone the repo
- Launch ShortDemos (.NET 6.0 console app) or MAUISample (.NET 6.0 MAUI app)
MAUISample can be installed on Android/iOS devices and more.
Read more aboutMAUI
- Explore ShopSample project, read
instructions
- Explore simple but addictive
Unity game
, readinstructions
- Explore stacks ecosystem: https://www.stacks.co/
- Get acquainted with wallet software https://wallet.hiro.so/wallet/faq https://www.xverse.app/
- Learn more about Stacks, NFTs and more: https://gamma.io/learn
- Learn nuances of blockchain transactions: https://wallet.hiro.so/wallet/faq#transactions https://support.gamma.io/hc/en-us/articles/6011057713427-What-are-network-fees-
- Learn more about smart contracts or write your own: https://docs.hiro.so/