EdjCase.ICP.InternetIdentity
2.2.0
Internet Identity has security issues and was experimental and no longer has support
See the version list below for details.
dotnet add package EdjCase.ICP.InternetIdentity --version 2.2.0
NuGet\Install-Package EdjCase.ICP.InternetIdentity -Version 2.2.0
<PackageReference Include="EdjCase.ICP.InternetIdentity" Version="2.2.0" />
paket add EdjCase.ICP.InternetIdentity --version 2.2.0
#r "nuget: EdjCase.ICP.InternetIdentity, 2.2.0"
// Install EdjCase.ICP.InternetIdentity as a Cake Addin #addin nuget:?package=EdjCase.ICP.InternetIdentity&version=2.2.0 // Install EdjCase.ICP.InternetIdentity as a Cake Tool #tool nuget:?package=EdjCase.ICP.InternetIdentity&version=2.2.0
ICP.NET
Collection of Internet Computer Protocol (ICP) libraries for .NET/Blazor
Agent - Library to communicate to and from the Internet Computer
Candid - Library of Candid Encoding, Models and Helpers
Client Generator - Client source code generator for ICP canisters
Internet Identity (Experimental) - Internet Identity authenticater (experimental and not secure)
Quickstart
Creating a client for a canister
Prerequisite: Have .Net 6 installed (https://dotnet.microsoft.com/en-us/download/dotnet)
Navigate to directory of .Net project
cd {path/to/project}
Add Agent nuget package to project
dotnet add package EdjCase.ICP.Agent
Install ClientGenerator
dotnet tool install -g EdjCase.ICP.ClientGenerator
This will allow a client to be automatically be generated for a canister. See ClientGenerator README for more details and advanced config
Initialize ClientGenerator config (first run only)
candid-client-generator init
This will create a TOML config file in the directory that can be changed for more advanced options
Update created config file
candid-client.toml
If using a canister id:
namespace = "ProjectGovernance" # Base namespace to use output-directory = "./Clients" # Output directory [[clients]] name = "Governance" # Label of client to use type = "canister" # Indicates to make client from a canister id canister-id = "rrkah-fqaaa-aaaaa-aaaaq-cai" # Canister id to make client for
If using a service definition file (.did)
namespace = "ProjectGovernance" # Base namespace to use output-directory = "./Clients" # Output directory [[clients]] name = "Governance" # Label of client to use type = "file" # Indicates to make client from a service definition file file-path = "Governance.did" # File to use
For all configuration options see ClientGenerator README for more details
Generate Client
candid-client-generator gen
Will output C# file to the output directory specified in the config
Use client in code
var agent = new HttpAgent(); Principal canisterId = Principal.FromText("rrkah-fqaaa-aaaaa-aaaaq-cai"); var client = new GovernanceApiClient(agent, canisterId); OptionalValue<Sample.Shared.Governance.Models.ProposalInfo> proposalInfo = await client.GetProposalInfo(110174); ...
SHIP IT! 🚀
Candid Related Links
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- EdjCase.ICP.Agent (>= 2.2.0)
- EdjCase.ICP.Candid (>= 2.2.0)
- Fido2Net (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
3.2.0 | 187 | 8/2/2023 | |
3.1.5 | 134 | 9/27/2023 | |
3.1.4 | 265 | 7/20/2023 | |
3.1.3 | 194 | 6/12/2023 | |
3.1.2 | 178 | 5/11/2023 | |
3.1.1 | 179 | 5/9/2023 | |
3.1.0 | 169 | 5/9/2023 | |
3.0.1 | 185 | 5/2/2023 | |
3.0.0 | 185 | 5/1/2023 | |
3.0.0-beta.1 | 142 | 4/17/2023 | |
2.3.9 | 182 | 5/1/2023 | |
2.3.8 | 195 | 4/28/2023 | |
2.3.7 | 194 | 4/28/2023 | |
2.3.6 | 194 | 4/28/2023 | |
2.3.5 | 208 | 4/27/2023 | |
2.3.4 | 201 | 4/27/2023 | |
2.3.3 | 190 | 4/26/2023 | |
2.3.2 | 186 | 4/26/2023 | |
2.3.1 | 213 | 4/26/2023 | |
2.3.0 | 216 | 4/25/2023 | |
2.2.10 | 199 | 4/24/2023 | |
2.2.9 | 184 | 4/24/2023 | |
2.2.8 | 228 | 4/24/2023 | |
2.2.7 | 208 | 4/17/2023 | |
2.2.6 | 239 | 4/12/2023 | |
2.2.5 | 220 | 4/12/2023 | |
2.2.4 | 224 | 4/11/2023 | |
2.2.3 | 227 | 4/11/2023 | |
2.2.2 | 228 | 4/7/2023 | |
2.2.1 | 218 | 4/7/2023 | |
2.2.0 | 228 | 4/6/2023 | |
2.1.1 | 251 | 3/30/2023 | |
2.1.0 | 268 | 3/23/2023 | |
2.0.8 | 284 | 3/20/2023 | |
2.0.7 | 268 | 3/12/2023 | |
2.0.2 | 267 | 3/10/2023 | |
2.0.1 | 269 | 3/10/2023 | |
2.0.0 | 277 | 3/8/2023 | |
2.0.0-beta.26 | 143 | 3/8/2023 | |
2.0.0-beta.25 | 143 | 3/8/2023 | |
2.0.0-beta.24 | 136 | 3/7/2023 | |
2.0.0-beta.23 | 138 | 3/6/2023 | |
2.0.0-beta.22 | 138 | 3/1/2023 | |
2.0.0-beta.21 | 139 | 2/28/2023 | |
2.0.0-beta.20 | 145 | 2/20/2023 | |
2.0.0-beta.19 | 148 | 2/14/2023 | |
2.0.0-beta.18 | 138 | 2/14/2023 | |
2.0.0-beta.17 | 147 | 2/14/2023 | |
2.0.0-beta.16 | 140 | 2/11/2023 | |
2.0.0-beta.15 | 145 | 2/10/2023 | |
2.0.0-beta.14 | 149 | 2/6/2023 | |
2.0.0-beta.13 | 145 | 2/3/2023 | |
2.0.0-beta.12 | 151 | 2/2/2023 | |
2.0.0-beta.11 | 156 | 1/30/2023 | |
2.0.0-beta.10 | 155 | 1/23/2023 | |
2.0.0-beta.9 | 151 | 1/19/2023 |