![]() |
VOOZH | about |
dotnet add package Kinetic.Dotnet.SDK --version 1.0.0
NuGet\Install-Package Kinetic.Dotnet.SDK -Version 1.0.0
<PackageReference Include="Kinetic.Dotnet.SDK" Version="1.0.0" />
<PackageVersion Include="Kinetic.Dotnet.SDK" Version="1.0.0" />Directory.Packages.props
<PackageReference Include="Kinetic.Dotnet.SDK" />Project file
paket add Kinetic.Dotnet.SDK --version 1.0.0
#r "nuget: Kinetic.Dotnet.SDK, 1.0.0"
#:package Kinetic.Dotnet.SDK@1.0.0
#addin nuget:?package=Kinetic.Dotnet.SDK&version=1.0.0Install as a Cake Addin
#tool nuget:?package=Kinetic.Dotnet.SDK&version=1.0.0Install as a Cake Tool
Getting started with Kin is incredibly straightforward. Just follow the steps below to start transacting with Kin in your App.
https://github.com/kin-labs/kinetic-unity-sdk.git Git URL in the text box and click Add.https://github.com/kin-labs/kinetic-unity-sdk#X.Y.XX.Y.Z stated here is to be replaced with the version you would like to get.
#### Instantiate the Kinetic Client
The Kinetic Client will give you access to all the methods you need to work with Kin on the blockchain.
We recommend starting with Devnet before moving on to Mainnet.
sdk = await KineticSdk.Setup(
new KineticSdkConfig(
index:1,
endpoint: "https://sandbox.kinetic.host/",
environment: KineticSdkEndpoint.Devnet,
)
);
Don't have an App Index? Register your App on our Developer Portal so you can get your App Index that allows you to transact with our SDKs and earn via the KRE.
<div class='navIcons'>
<a href='/essentials/kre-app-registration/'><div class='navIcon'>
<img class='navIcon-icon invert' alt='Developer' src='../essentials/images/address-card-solid.svg'>
<span class='navIcon-text'>Register Your App</span>
</div></a>
</div>
#### Create Account
You can create accounts from existing mnemonics or secret keys. In this case we'll generate a mnemonic and use that to create the keypair we use for creating the account on the blockchain.
var mnemonic = Keypair.GenerateMnemonic();
var keypair = Keypair.FromMnemonic(mnemonic);
await sdk.CreateAccount(keypair);
#### Check Balance
var balance = await sdk.GetBalance(keypair.PublicKey);
#### Airdrop Funds (devnet)
await sdk.RequestAirdrop( account: keypair.PublicKey, amount: "1000" );
#### Transfer Kin
await sdk.MakeTransfer(
amount: "5000",
destination: "BQJi5K2s4SDDbed1ArpXjb6n7yVUfM34ym9a179MAqVo",
owner: keypair,
type: TransactionType.P2P // Can be Unknown, None, Earn, Spend or P2P
);
#### Get Transaction Details
await sdk.GetTransaction(signature: transactionSignature);
#### Get Account History
await sdk.GetHistory(account: keypair.PublicKey);
### Webhooks
In [Kinetic Manager](/developers/kinetic-manager/), you can configure your App to use the following webhooks:
#### Events Webhook
This webhook can be used to receive information about completed transactions.
<br/>E.g. In a node express server:
app.use('/events', async (req, res) ⇒ { const event = req.body // DO STUFF WITH THE EVENT DATA res.sendStatus(200); });
#### Verify Webhook
This webhook can be used to verify transactions.
<br/>E.g. In a node express server return a `200` status code to approve the transaction:
app.use('/verify', async (req, res) ⇒ { const transaction = req.body // CHECK THAT YOU WANT THIS TRANSACTION TO PROCEED // e.g. if (transaction.amount < 1000000) { res.sendStatus(200); } res.sendStatus(400); });
#### Examples
For examples of how to create your own server for handling webhooks, see:
- [Node SDK Demo](https://github.com/kin-starters/kin-demo-node-sdk)
- [Python SDK Demo](https://github.com/kin-starters/kin-demo-python-sdk)
## Demos and Starter Kits
Created to help get you up and running as quickly as possible, these projects can be a great reference point when you get stuck or even a starter for your own project. Happy coding!
### [TODO SDK Demo](https://github.com/kin-starters/kin-demo-python-sdk)
TODO DESCRIPTION.
## Ready for Production?
If your App is ready for production, this is the place for you!
<div class='navIcons'>
<a href='/developers/production/'><div class='navIcon'>
<img class='navIcon-icon invert' alt='production' src='./images/coins-solid.svg'>
<span class='navIcon-text'>Production</span>
</div></a>
</div>
## Earn Kin via the KRE
<div class='navIcons'>
<a href='/essentials/kin-rewards-engine/'><div class='navIcon'>
<img class='navIcon-icon invert' alt='Developer' src='../essentials/images/money-bill-trend-up-solid.svg'>
<span class='navIcon-text'>Kin Rewards Engine</span>
</div></a>
</div>
## Contribute
Want to contribute to the Kin Python SDK?
<div class='navIcons'>
<a href='https://github.com/kinecosystem/kin-python' target='_blank'><div class='navIcon'>
<img class='navIcon-icon invert' alt='Kinetic' src='./images/github-brands.svg'>
<span class='navIcon-text'>Kinetic Python SDK</span>
</div></a>
</div>
## What If I Get Stuck?
Fortunately, we have an amazing developer community on our Developer Discord server. Join today!
<div class='navIcons'>
<a href='/essentials/getting-help/'><div class='navIcon'>
<img class='navIcon-icon invert' alt='Getting Help' src='../essentials/images/circle-question-regular.svg'>
<span class='navIcon-text'>Getting Help</span>
</div></a>
<a href='https://discord.com/invite/kdRyUNmHDn' target='_blank'><div class='navIcon'>
<img class='navIcon-icon invert' alt='Discord' src='../essentials/images/discord-brands.svg'>
<span class='navIcon-text'>Developer Discord</span>
</div></a>
</div>
## Developer Best Practices
Once you're ready to code, have a quick look at our [Developer Best Practices](/essentials/best-practices/) where we cover some useful topics that you'll want to keep in mind as you build out your Kin application.
<div class='navIcons'>
<a href='/essentials/best-practices/'><div class='navIcon'>
<img class='navIcon-icon invert' alt='Best Practices' src='../essentials/images/rainbow-solid.svg'>
<span class='navIcon-text'>Best Practices</span>
</div></a>
</div>
***
**Was this page helpful?**<br/>
If you'd like to tell us how we can make these docs better, let us know here:
<div class='navIcons'>
<a href='https://forms.gle/qhjcDJR59v8RJsaY7' target='_blank'><div class='navIcon'>
<img class='navIcon-icon invert' alt='Developer' src='../essentials/images/comment-dots-solid.svg'>
<span class='navIcon-text'>Feedback</span>
</div></a>
</div>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 415 | 12/23/2022 |