Skip to main content

ResQ.Blockchain

TransactionResult Class

Represents the result of a blockchain transaction submission.
public record TransactionResult : System.IEquatable<ResQ.Blockchain.TransactionResult>
Inheritance System.Object → TransactionResult Implements System.IEquatable<TransactionResult>

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.
Constructors
TransactionResult(string, bool, ulong, DateTimeOffset)Represents the result of a blockchain transaction submission.
Properties
BlockHeightThe block number where the transaction was included.
IsConfirmedTrue if the transaction has been confirmed on-chain.
TimestampThe UTC timestamp when the result was created.
TransactionHashThe hexadecimal hash of the transaction.