Skip to main content

ResQ.Core

NeoConfig Class

Configuration for Neo N3 blockchain connection.
public record NeoConfig : System.IEquatable<ResQ.Core.NeoConfig>
Inheritance System.Object → NeoConfig Implements System.IEquatable<NeoConfig>

Example

var config = new NeoConfig
{
    RpcUrl = "https://testnet1.neo.coz.io:443",
    ContractHash = "0x8d35a57f8c01156527c92ebbb4d772fa9574cbf4",
    NetworkMagic = 894710606,
    MockMode = false
};

Remarks

Provides settings for connecting to the Neo N3 blockchain including RPC endpoint, contract address, and network identification.
Properties
ContractHashSmart contract script hash.
MockModeEnable mock mode for testing.
NetworkMagicNetwork magic number (TestNet = 877933390).
RpcUrlNeo RPC endpoint URL.
TimeoutSecondsHTTP request timeout in seconds. Defaults to 30.