Skip to content

Instantly share code, notes, and snippets.

@sparrowDom
Created December 22, 2025 09:27
Show Gist options
  • Select an option

  • Save sparrowDom/440e5e2aa7da41a561856536bbd5819d to your computer and use it in GitHub Desktop.

Select an option

Save sparrowDom/440e5e2aa7da41a561856536bbd5819d to your computer and use it in GitHub Desktop.
Tenderly extract message hash
javascript:(function(){if(!window.location.toString().match("^https://dashboard.tenderly.co/")){throw new Error("Potential phishing detected. Url doesn't match dashboard tenderly")}var aTags=document.getElementsByTagName("span");var searchText="encodeTransactionData";var encDataElement;for(var i=0;i<aTags.length;i++){if(aTags[i].textContent==searchText){encDataElement=aTags[i];break}}if(!encDataElement){throw new Error("Can not find 'encodeTransactionData' span element")}const parentSpans=encDataElement.parentElement.getElementsByTagName('span');let valElement=null;for(let j=0;j<parentSpans.length;j++){if(parentSpans[j].textContent.length===134){valElement=parentSpans[j];break}}if(!valElement){throw new Error("Can not find the element that displays the output value of 'encodeTransactionData'")}const returnValue=valElement.textContent;alert(`Message hash of the transaction: 0x${returnValue.substring(returnValue.length-64)}`)})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment