Skip to content

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 nameDescription
PhantasmaPhoenix.CoreCore types and utilities for Phantasma Phoenix SDK
PhantasmaPhoenix.CryptographyCryptographic primitives and utilities for the Phantasma Phoenix SDK
PhantasmaPhoenix.Cryptography.LegacyLegacy cryptographic primitives and utilities for the Phantasma Phoenix SDK. Deprecated, but still used in certain scenarios
PhantasmaPhoenix.InteropChains.LegacyAddress 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.LinkLightweight WebSocket-based server implementation for the Phantasma Link protocol. Allows dApps to connect with Phantasma wallets
PhantasmaPhoenix.NFTUtilities for parsing NFT ROM data and accessing metadata in Phantasma
PhantasmaPhoenix.ProtocolProtocol types, enums, and constants for the Phantasma Phoenix SDK
PhantasmaPhoenix.Protocol.CarbonCarbon protocol types and helpers for scriptless (Carbon) transactions
PhantasmaPhoenix.RPCProvides client-side types and helpers for interacting with the Phantasma Phoenix blockchain RPC and REST APIs
PhantasmaPhoenix.VMVirtual 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.Core
dotnet add package PhantasmaPhoenix.Cryptography
dotnet add package PhantasmaPhoenix.Cryptography.Legacy
dotnet add package PhantasmaPhoenix.InteropChains.Legacy
dotnet add package PhantasmaPhoenix.Link
dotnet add package PhantasmaPhoenix.NFT
dotnet add package PhantasmaPhoenix.Protocol
dotnet add package PhantasmaPhoenix.Protocol.Carbon
dotnet add package PhantasmaPhoenix.RPC
dotnet add package PhantasmaPhoenix.VM