![]() |
VOOZH | about |
dotnet add package Zenon.Sdk --version 0.6.14
NuGet\Install-Package Zenon.Sdk -Version 0.6.14
<PackageReference Include="Zenon.Sdk" Version="0.6.14" />
<PackageVersion Include="Zenon.Sdk" Version="0.6.14" />Directory.Packages.props
<PackageReference Include="Zenon.Sdk" />Project file
paket add Zenon.Sdk --version 0.6.14
#r "nuget: Zenon.Sdk, 0.6.14"
#:package Zenon.Sdk@0.6.14
#addin nuget:?package=Zenon.Sdk&version=0.6.14Install as a Cake Addin
#tool nuget:?package=Zenon.Sdk&version=0.6.14Install as a Cake Tool
Reference implementation for the Zenon SDK for .NET. Compatible with the Zenon Alphanet - Network of Momentum Phase 1. It provides a simple integration with any .NET based projects.
Install the Zenon.Sdk package from NuGet
dotnet add package Zenon.Sdk
using Zenon;
using Zenon.Client;
// Create client instance with default options (mainnet)
using var client = new WsClient("wss://my.hc1node.com:35998");
// Connect to node
await client.ConnectAsync();
using Zenon;
using Zenon.Wallet;
var walletName = "name";
var passphrase = "secret";
// Use key store manager
var walletManager = new KeyStoreManager();
// Create wallet
var walletDefinition = walletManager
.CreateNew(passphrase, walletName);
using Zenon;
using Zenon.Wallet;
var walletName = "name";
var passphrase = "secret";
var mnemonic = @"route become dream access impulse price inform obtain
engage ski believe awful absent pig thing vibrant
possible exotic flee pepper marble rural fire fancy";
// Use key store manager
var walletManager = new KeyStoreManager();
// Create wallet
var walletDefinition = walletManager
.CreateFromMnemonic(mnemonic, passphrase, walletName);
using Zenon;
using Zenon.Client;
using Zenon.Wallet;
// Use key store manager
var walletManager = new KeyStoreManager();
// Use first wallet available
var walletDefinition =
(await walletManager.GetWalletDefinitionsAsync()).First();
// Options for retrieving the wallet
var options = new KeyStoreOptions()
{
DecryptionPassword = "secret"
};
// Retrieve the wallet
var wallet =
await walletManager.GetWalletAsync(walletDefinition, options);
// Create client instance with default options (mainnet)
using var client = new WsClient("wss://my.hc1node.com:35998");
// Connect to node
await client.ConnectAsync();
// Create zdk instance and attach primary wallet account
var zdk = new Zdk(client)
{
DefaultWalletAccount =
await wallet.GetAccountAsync(accountIndex: 0)
};
// Send tx
await zdk.SendAsync(zdk.Embedded.Pillar.CollectReward());
using Zenon;
using Zenon.Client;
using Zenon.Wallet;
using Zenon.Model.NoM;
// Use key store manager
var walletManager = new KeyStoreManager();
// Use first wallet available
var walletDefinition =
(await walletManager.GetWalletDefinitionsAsync()).First();
// Options for retrieving the wallet
var options = new KeyStoreOptions()
{
DecryptionPassword = "secret"
};
// Retrieve the wallet
var wallet =
await walletManager.GetWalletAsync(walletDefinition, options);
// Create client instance with default options (mainnet)
using var client = new WsClient("wss://my.hc1node.com:35998");
// Connect to node
await client.ConnectAsync();
// Create zdk instance and attach primary wallet account
var zdk = new Zdk(client)
{
DefaultWalletAccount =
await wallet.GetAccountAsync(accountIndex: 0)
};
// Get account address
var address = await zdk.DefaultWalletAccount.GetAddressAsync();
// Get all unreceived tx's
var result = await zdk.Ledger
.GetUnreceivedBlocksByAddress(address);
if (result.Count != 0)
{
foreach (var item in result.List)
{
// Send tx
await zdk.SendAsync(AccountBlockTemplate
.Receive(client.ProtocolVersion, client.ChainIdentifier, item.Hash));
}
}
Please check for more details.
The MIT License (MIT). Please check for more information.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. 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. |
Showing the top 1 NuGet packages that depend on Zenon.Sdk:
| Package | Downloads |
|---|---|
|
Zenon.Wallet.Ledger
Ledger wallet for the Zenon .NET SDK |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.1-g5084eec399 | 261 | 9/21/2025 |
| 0.6.25-ledger-g727123be4d | 212 | 12/11/2023 |
| 0.6.24-ledger-g403a3f8f67 | 208 | 12/11/2023 |
| 0.6.22-ledger-gbdfa921f2b | 191 | 12/11/2023 |
| 0.6.20-ledger-gef4ff81bd3 | 251 | 9/11/2023 |
| 0.6.19-ledger-ga45e76931d | 259 | 9/11/2023 |
| 0.6.17-ledger-g59034ed1b6 | 231 | 9/6/2023 |
| 0.6.16-ledger-g6a30ee89b1 | 259 | 9/6/2023 |
| 0.6.15-ledger-g0b99f5fe01 | 247 | 9/6/2023 |
| 0.6.14 | 2,536 | 4/29/2024 |
| 0.6.13 | 2,501 | 4/4/2024 |
| 0.6.12 | 2,405 | 3/29/2024 |
| 0.6.11 | 2,415 | 3/21/2024 |
| 0.6.10 | 2,499 | 3/6/2024 |
| 0.6.9 | 2,601 | 12/13/2023 |
| 0.6.8-g8373116dd0 | 243 | 12/13/2023 |
| 0.6.6 | 2,435 | 9/18/2023 |
| 0.6.4 | 2,434 | 9/6/2023 |
| 0.6.3 | 2,404 | 9/6/2023 |
| 0.6.2 | 2,445 | 9/6/2023 |