MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / isValidTransactionHash

Function isValidTransactionHash

src/utils/common.ts:60–64  ·  view source on GitHub ↗
(txHash: string)

Source from the content-addressed store, hash-verified

58};
59
60export function isValidTransactionHash(txHash: string): boolean {
61 // A valid transaction hash is a hex string of length 66 characters (including the '0x' prefix)
62 const isValidLength = txHash.length === 66;
63 return isValidLength && isHexString(txHash);
64}
65
66export function generateShareTwitterURL(text, referer, via = "levelupweb3") {
67 return `https://twitter.com/intent/tweet?original_referer=${encodeURIComponent(referer)}&text=${encodeURIComponent(text)}`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected