Skip to main content

ResQ.Blockchain.MockNeoClient

MockNeoClient.GenerateTxHash() Method

Generates a random transaction hash for mock purposes.

Returns

System.String
A hexadecimal string representing a 32-byte transaction hash, prefixed with “0x”.

Remarks

Uses System.Security.Cryptography.RandomNumberGenerator to generate cryptographically secure random bytes, ensuring unique transaction hashes for each mock operation.