CardanoSharp.Blazor.Components
8.1.2
dotnet add package CardanoSharp.Blazor.Components --version 8.1.2
NuGet\Install-Package CardanoSharp.Blazor.Components -Version 8.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CardanoSharp.Blazor.Components" Version="8.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CardanoSharp.Blazor.Components" Version="8.1.2" />
<PackageReference Include="CardanoSharp.Blazor.Components" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CardanoSharp.Blazor.Components --version 8.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CardanoSharp.Blazor.Components, 8.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CardanoSharp.Blazor.Components@8.1.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CardanoSharp.Blazor.Components&version=8.1.2
#tool nuget:?package=CardanoSharp.Blazor.Components&version=8.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
cardanosharp-blazor
CardanoSharp.Blazor is a component library for C# devs to easily get started with developing dApps for Cardano.
WalletConnector
The wallet connector will give users the option of connecting to any of a preset list of known wallets.
Parameters
WalletConnector has the follow parameters that can be set as required:
- Header ["Choose Your Wallet"] - Text to display above the wallet options
- AutoCloseOnConnect [false] - Whether to close the wallet choice popup after connecting to a wallet
- AutoCloseOnDisconnect [false] - Whether to close the wallet choice popup after disconnecting from a wallet
- Layout [Card] - Either List or Card
- SupportedExtensions [Eternl,Gero,Nami] - If you want to override the current known list of wallet browser extensions, and their applicable attributes (name, icon etc)
Usage
@using CardanoSharp.Blazor.Components;
@using CardanoSharp.Blazor.Components.Models;
@using CardanoSharp.Blazor.Components.Enums;
<WalletConnector
@ref="myWebWallets"
Header="Please choose a wallet"
AutoCloseOnConnect="false"
AutoCloseOnDisconnect="true"
Layout="WalletConnectorLayout.List"
SupportedExtensions="
@(new List<WalletExtension>()
{
new WalletExtension() {
Key = "eternl",
Name = "Eternl",
Icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAG........",
Url = "https://eternl.io"
},
new WalletExtension() {
Key = "gerowallet",
Name = "Gero",
Icon = "https://gerowallet.io/assets/img/logo2.ico",
Url = "https://gerowallet.io"
},
})
">
</WalletConnector>
@code {
if (myWebWallets != null && myWebWallets.Initialized)
{
if (myWebWallets.Connected)
{
var result = await myWebWallets.GetBalance();
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Blazored.LocalStorage (>= 4.4.0)
- CardanoSharp.Wallet (>= 5.0.3)
- Microsoft.AspNetCore.Components.Web (>= 8.0.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 |
---|---|---|
8.1.2 | 249 | 12/3/2024 |
8.1.1 | 143 | 12/3/2024 |
8.1.0 | 324 | 7/10/2024 |
8.0.7 | 156 | 7/10/2024 |
8.0.6 | 301 | 6/6/2024 |
8.0.5 | 145 | 6/6/2024 |
8.0.4 | 160 | 6/6/2024 |
8.0.3 | 219 | 5/30/2024 |
8.0.2 | 231 | 4/18/2024 |
8.0.1 | 776 | 1/8/2024 |
8.0.0 | 215 | 12/28/2023 |
3.3.10 | 478 | 10/13/2023 |
3.3.9 | 728 | 5/4/2023 |
3.3.8 | 296 | 4/14/2023 |
3.3.7 | 804 | 3/28/2023 |
3.3.6 | 302 | 3/28/2023 |
3.3.5 | 315 | 3/28/2023 |
3.3.4 | 323 | 3/27/2023 |
3.3.3 | 323 | 3/27/2023 |
3.3.2 | 329 | 3/23/2023 |
3.3.1 | 327 | 3/22/2023 |
3.3.0 | 352 | 3/14/2023 |
3.2.2 | 352 | 3/8/2023 |
3.2.1 | 325 | 3/8/2023 |
3.2.0 | 460 | 2/20/2023 |
3.0.4 | 495 | 2/10/2023 |
3.0.3 | 377 | 1/26/2023 |
3.0.2 | 687 | 1/16/2023 |
3.0.1 | 775 | 11/25/2022 |
3.0.0 | 417 | 11/23/2022 |
2.0.2 | 627 | 10/25/2022 |
2.0.1 | 471 | 10/25/2022 |
2.0.0 | 512 | 10/18/2022 |
1.3.0 | 519 | 10/18/2022 |
1.2.2 | 525 | 10/14/2022 |
1.2.1 | 704 | 8/25/2022 |
1.2.0 | 760 | 8/23/2022 |
1.1.0 | 518 | 8/11/2022 |
1.0.9 | 582 | 8/9/2022 |
1.0.8 | 534 | 8/8/2022 |
1.0.7 | 528 | 8/3/2022 |
1.0.6 | 877 | 6/25/2022 |
1.0.5 | 604 | 6/21/2022 |
1.0.4 | 559 | 6/8/2022 |
1.0.3 | 537 | 6/6/2022 |
1.0.2 | 560 | 6/6/2022 |
1.0.1 | 519 | 6/6/2022 |
1.0.0 | 521 | 6/5/2022 |