Built-in transaction viewer: every ledger row verifiable at /tx/<hash>, explorer link when configured

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-06 05:37:29 -05:00
parent 1c31679b6c
commit 718d7f2d0e
12 changed files with 124 additions and 26 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ window.IAP = (function () {
div.innerHTML = '<span>' + describeEvent(ev, c) + '</span>'
+ (c.explorer
? '<span class="tx"><a target="_blank" rel="noopener" href="' + c.explorer + '/tx/' + ev.tx + '">verify ↗</a></span>'
: '<span class="tx mono">' + ev.tx.slice(0, 12) + '…</span>');
: '<span class="tx"><a href="/tx/' + ev.tx + '">verify ↗</a></span>'); // built-in viewer when the chain has no public explorer
return div;
}
// Render one served ad into #<elId>. Silent if no inventory.