Skip to main content

ResQ.Core

BlockchainEvent Class

Represents a blockchain event for immutable logging.
public record BlockchainEvent : System.IEquatable<ResQ.Core.BlockchainEvent>
Inheritance System.Object → BlockchainEvent Implements System.IEquatable<BlockchainEvent>

Example

var evt = new BlockchainEvent
{
    EventId = "evt-001",
    EventType = BlockchainEventType.IncidentDetected,
    Location = new Location(37.7749, -122.4194),
    EvidenceCid = "Qmabc123...",
    Metadata = new Dictionary<string, object>
    {
        ["incidentId"] = "inc-001",
        ["severity"] = "High"
    }
};

Remarks

Blockchain events provide tamper-proof records of system activities. They can include metadata and links to off-chain evidence.
Properties
DroneIdDrone ID associated with the event, if applicable.
EventIdUnique identifier for this event.
EventTypeType of blockchain event.
EvidenceCidIPFS CID of associated evidence, if any.
LocationGeographic location associated with the event, if applicable.
MetadataAdditional metadata as key-value pairs.
TimestampUTC timestamp when the event occurred.