This commit is contained in:
void-57 2025-12-03 16:09:49 +05:30
parent 7b090b9665
commit b6c14757bf
2 changed files with 3 additions and 3 deletions

View File

@ -37882,11 +37882,11 @@ ${f.stack}` : o;
window.updateURL && window.updateURL("tx", d), k.style.display = "none", h.style.display = "none", w.style.display = "none", Y && (Y.style.display = "none"), c.innerHTML = '<div class="loading-state"><i class="fas fa-spinner fa-spin"></i></div>'; window.updateURL && window.updateURL("tx", d), k.style.display = "none", h.style.display = "none", w.style.display = "none", Y && (Y.style.display = "none"), c.innerHTML = '<div class="loading-state"><i class="fas fa-spinner fa-spin"></i></div>';
try { try {
const V = await vo.getTransaction(d); const V = await vo.getTransaction(d);
if (!V || V.error) { if (!V) {
c.innerHTML = '<div class="no-transactions">Transaction not found.</div>'; c.innerHTML = '<div class="no-transactions">Transaction not found.</div>';
return; return;
} }
const xt = V.status || "confirmed", ct = V.statusLabel || "Confirmed", at = V.statusColor || "#28a745", rt = xt === "confirmed" ? "fa-check-circle" : xt === "pending" ? "fa-clock" : "fa-exclamation-circle", pt = V.timestamp ? new Date(typeof V.timestamp == "string" ? V.timestamp : V.timestamp * 1e3).toLocaleString() : "Unknown Date", H = V.fees ? (Number(V.fees) / 1e6).toFixed(6) : "N/A", st = V.outputs ? V.outputs.reduce((Ze, Wt) => Ze + BigInt(Wt.value), 0n) : 0n, et = (Number(st) / 1e6).toFixed(6), Ot = V.outputs && V.outputs.length > 0 ? V.outputs[0] : null, kt = Ot ? (Number(BigInt(Ot.value)) / 1e6).toFixed(6) : "0.000000"; const xt = V.status || "confirmed", ct = V.statusLabel || "Confirmed", at = V.statusColor || "#28a745", rt = xt === "confirmed" ? "fa-check-circle" : xt === "pending" ? "fa-clock" : "fa-exclamation-circle", pt = V.timestamp ? new Date(typeof V.timestamp == "string" ? V.timestamp : V.timestamp * 1e3).toLocaleString() : "Pending...", H = V.fees ? (Number(V.fees) / 1e6).toFixed(6) : "N/A", st = V.outputs ? V.outputs.reduce((Ze, Wt) => Ze + BigInt(Wt.value), 0n) : 0n, et = (Number(st) / 1e6).toFixed(6), Ot = V.outputs && V.outputs.length > 0 ? V.outputs[0] : null, kt = Ot ? (Number(BigInt(Ot.value)) / 1e6).toFixed(6) : "0.000000";
let Zt = V.inputs && V.inputs.length > 0 ? V.inputs[0].address : "Unknown", qe = Ot ? Ot.address : "Unknown"; let Zt = V.inputs && V.inputs.length > 0 ? V.inputs[0].address : "Unknown", qe = Ot ? Ot.address : "Unknown";
Zt !== "Unknown" && (Zt = vo.hexToAddress(Zt)), qe !== "Unknown" && (qe = vo.hexToAddress(qe)); Zt !== "Unknown" && (Zt = vo.hexToAddress(Zt)), qe !== "Unknown" && (qe = vo.hexToAddress(qe));
const Ge = V.message ? ` const Ge = V.message ? `

View File

@ -8,7 +8,7 @@
rel="stylesheet" rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/> />
<script type="module" crossorigin src="./assets/index-BAuABu-N.js"></script> <script type="module" crossorigin src="./assets/index-LR75N_xu.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C4oHu9vm.css"> <link rel="stylesheet" crossorigin href="./assets/index-C4oHu9vm.css">
</head> </head>
<body> <body>