Setup
Install the Phoenix C# packages required by your application.
Note
Important: Before the Phoenix chain update, a different set of NuGet packages was used. These packages are now obsolete and strictly deprecated. Use the new package set instead.
The full package list is available on the Phantasma NuGet profile: https://www.nuget.org/profiles/Phantasma.info
| Package name | Description |
|---|---|
| PhantasmaPhoenix.Core | Core types and utilities for Phantasma Phoenix SDK |
| PhantasmaPhoenix.Cryptography | Cryptographic primitives and utilities for the Phantasma Phoenix SDK |
| PhantasmaPhoenix.Cryptography.Legacy | Legacy cryptographic primitives and utilities for the Phantasma Phoenix SDK. Deprecated, but still used in certain scenarios |
| PhantasmaPhoenix.InteropChains.Legacy | Address generation and basic utilities for Neo2 and Ethereum chains, used for external wallet compatibility in the Phantasma Phoenix SDK. Deprecated, but still used in certain scenarios |
| PhantasmaPhoenix.Link | Lightweight WebSocket-based server implementation for the Phantasma Link protocol. Allows dApps to connect with Phantasma wallets |
| PhantasmaPhoenix.NFT | Utilities for parsing NFT ROM data and accessing metadata in Phantasma |
| PhantasmaPhoenix.Protocol | Protocol types, enums, and constants for the Phantasma Phoenix SDK |
| PhantasmaPhoenix.Protocol.Carbon | Carbon protocol types and helpers for scriptless (Carbon) transactions |
| PhantasmaPhoenix.RPC | Provides client-side types and helpers for interacting with the Phantasma Phoenix blockchain RPC and REST APIs |
| PhantasmaPhoenix.VM | Virtual machine implementation and script execution utilities for Phantasma Phoenix SDK |
Install packages with the NuGet UI in Visual Studio or Rider, or use the .NET CLI:
dotnet add package PhantasmaPhoenix.Coredotnet add package PhantasmaPhoenix.Cryptographydotnet add package PhantasmaPhoenix.Cryptography.Legacydotnet add package PhantasmaPhoenix.InteropChains.Legacydotnet add package PhantasmaPhoenix.Linkdotnet add package PhantasmaPhoenix.NFTdotnet add package PhantasmaPhoenix.Protocoldotnet add package PhantasmaPhoenix.Protocol.Carbondotnet add package PhantasmaPhoenix.RPCdotnet add package PhantasmaPhoenix.VM