Skip to main content

ResQ.Blockchain

BlockchainEvent Class

Represents an event to be recorded on the blockchain for immutable logging.
public record BlockchainEvent : System.IEquatable<ResQ.Blockchain.BlockchainEvent>
Inheritance System.Object → BlockchainEvent Implements System.IEquatable<BlockchainEvent>

Example

var evt = new BlockchainEvent(
    EventId: "evt-001",
    EventType: "IncidentDetected",
    Payload: "{\"incidentId\":\"inc-001\",\"severity\":\"High\"}",
    IpfsCid: "Qmabc123...",
    Timestamp: DateTimeOffset.UtcNow
);

var result = await neoClient.RecordEventAsync(evt);

Remarks

Blockchain events provide an immutable audit trail of critical system activities. Each event is assigned a unique ID and can optionally reference IPFS content for additional evidence storage.
Constructors
BlockchainEvent(string, string, string, string, DateTimeOffset)Represents an event to be recorded on the blockchain for immutable logging.
Properties
EventIdUnique identifier for this event.
EventTypeThe type/category of the event.
IpfsCidOptional IPFS Content Identifier for associated evidence.
PayloadJSON payload containing event-specific data.
TimestampUTC timestamp when the event occurred.