Skip to main content

ResQ.Core

NeoClient Class

Client for interacting with the Neo N3 blockchain.
public sealed class NeoClient : System.IDisposable
Inheritance System.Object → NeoClient Implements System.IDisposable

Example

using var client = new NeoClient(new NeoConfig { MockMode = true });

var evt = new BlockchainEvent
{
    EventId = "evt-001",
    EventType = BlockchainEventType.IncidentDetected
};

var result = await client.RecordEventAsync(evt);
Console.WriteLine($"Transaction: {result.TxHash}");

Remarks

Provides methods for recording events, verifying attestations, and querying transaction status on the Neo N3 blockchain. Supports both real blockchain operations and mock mode for testing.
Constructors
NeoClient(NeoConfig)Initializes a new instance of the NeoClient class.
Methods
GetTransactionStatusAsync(string, CancellationToken)Gets the status of a blockchain transaction.
RecordEventAsync(BlockchainEvent, CancellationToken)Records an event on the Neo N3 blockchain.
RecordEvidenceAsync(string, string, string, CancellationToken)Records evidence linked to an incident on the blockchain.
VerifyLocationAttestationAsync(string, Location, DateTimeOffset, CancellationToken)Verifies a location attestation on the blockchain.