Skip to main content

ResQ.Blockchain.INeoClient

INeoClient.RecordEventAsync(BlockchainEvent, CancellationToken) Method

Records an event on the Neo N3 blockchain.

Parameters

evt BlockchainEvent The blockchain event to record. cancellationToken System.Threading.CancellationToken Cancellation token for the operation.

Returns

System.Threading.Tasks.Task<TransactionResult>
A TransactionResult containing the transaction hash and confirmation status.

Exceptions

System.InvalidOperationException
Thrown when the blockchain operation fails.
System.OperationCanceledException
Thrown when the operation is cancelled.

Example

Remarks

Events are permanently recorded on the blockchain and provide an immutable audit trail. The operation may take several seconds to complete as it waits for transaction confirmation.