Skip to main content

ResQ.Blockchain.TransactionResult

TransactionResult(string, bool, ulong, DateTimeOffset) Constructor

Represents the result of a blockchain transaction submission.
public TransactionResult(string TransactionHash, bool IsConfirmed, ulong BlockHeight, System.DateTimeOffset Timestamp);

Parameters

TransactionHash System.String The hexadecimal hash of the transaction. IsConfirmed System.Boolean True if the transaction has been confirmed on-chain. BlockHeight System.UInt64 The block number where the transaction was included. Timestamp System.DateTimeOffset The UTC timestamp when the result was created.

Example

var result = new TransactionResult(
    TransactionHash: "0xabc123...",
    IsConfirmed: true,
    BlockHeight: 1234567,
    Timestamp: DateTimeOffset.UtcNow
);

if (result.IsConfirmed)
{
    Console.WriteLine($"Confirmed in block {result.BlockHeight}");
}

Remarks

This record contains all relevant information about a transaction after it has been submitted to the Neo N3 blockchain, including its hash, confirmation status, and the block height at which it was included.