Skip to main content

ResQ.Blockchain.NeoClientOptions

NeoClientOptions.NetworkMagic Property

Gets or sets the network magic number for identifying the Neo network.
public uint NetworkMagic { get; set; }

Property Value

System.UInt32
The network magic number. Default is 894710606 (TestNet).

Example

// MainNet
options.NetworkMagic = 860833102;

// TestNet (default)
options.NetworkMagic = 894710606;

Remarks

The network magic is used to identify which Neo network to connect to:
  • MainNet: 860833102
  • TestNet: 894710606
  • PrivateNet: Custom value