Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

# XChainJS Check Transaction Example

This example demonstrates how to check and track a blockchain transaction using XChainJS. It shows how to: query transaction data by hash check transaction status and confirmations work with chain clients in a unified way build…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

This example demonstrates how to check and track a blockchain transaction using XChainJS.



It shows how to:




  • query transaction data by hash

  • check transaction status and confirmations

  • work with chain clients in a unified way

  • build transaction monitoring logic for wallets and backends



The example is fully runnable and available on GitHub and CodeSandbox.









🔗 Live Demo & Source Code











📌 What This Example Does



This project demonstrates how to check the status of a transaction using XChainJS.



It covers:




  • fetching transaction information by hash

  • checking confirmations and finality

  • handling pending vs confirmed transactions

  • using a chain-agnostic API for transaction lookup



This example is useful for developers building:




  • crypto wallets

  • transaction history pages

  • blockchain explorers

  • monitoring and alerting services

  • cross-chain backends









🧰 Tech Stack




  • TypeScript

  • Node.js

  • XChainJS

  • @xchainjs/xchain-util

  • Chain clients from XChainJS ecosystem









📂 Project Location



Inside the XChainJS monorepo:




examples/
└─ check-tx/






The example focuses on transaction status logic, without UI code.









🔄 How Transaction Checking Works






Transaction Hash
↓
XChainJS Chain Client
↓
Fetch Transaction Data
↓
Check Confirmations & Status
↓
Return Result












🧩 Core Concepts






Transaction Hash



A transaction hash uniquely identifies an on-chain transaction.

This example shows how to use a transaction hash to query the blockchain

and retrieve transaction details.









Transaction Status



Depending on the chain, a transaction can be:




  • pending

  • confirmed

  • failed



XChainJS abstracts these differences and provides a consistent interface

for checking transaction status across chains.









⚙️ Installation






Clone the repository






git clone https://github.com/xchainjs/xchainjs-lib.git
cd xchainjs-lib/examples/check-tx









Install dependencies






npm install









Run the example






npm start












🚀 Running in the Browser



You can also run this example instantly using CodeSandbox:



https://codesandbox.io/p/devbox/github/xchainjs/xchainjs-lib/tree/master/examples/check-tx









🧪 Code Example (Simplified)






import { getClient } from '@xchainjs/xchain-thorchain'

const txHash = 'YOUR_TRANSACTION_HASH'

async function checkTx() {
const client = getClient()
const tx = await client.getTransactionData(txHash)

if (!tx) {
throw new Error('Transaction not found')
}

console.log(tx)
}

checkTx()






This pattern can be reused for different chains by switching clients.









✅ Why Use XChainJS for Transaction Monitoring




  • Unified API for multiple blockchains

  • TypeScript-first for safer code

  • Reusable client abstractions

  • Suitable for wallets and production backends









🧠 When This Example Is Useful



Use this example if you are:




  • learning how transaction tracking works

  • building a wallet transaction history

  • implementing confirmations logic

  • monitoring cross-chain transactions

  • working with XChainJS clients
















📝 Summary



This example provides a simple, runnable reference for checking

blockchain transactions using XChainJS.



It is a solid foundation for building transaction-aware applications

such as wallets, explorers, and monitoring services.

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - # XChainJS Check Transaction Example
id: 00b35379-5735-4107-a1b2-ab4905689ca7
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-26
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-26"
        description = "YARA Signature for "
    strings:
        $str = "# XChainJS Check Transaction E" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("XChainJS Check Transaction Example")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*XChainJS Check Transaction Example*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "XChainJS Check Transaction Example"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich # XChainJS Check Transaction Example.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten # XChainJS Check Transaction Example

Thematisch verwandte Begriffe: XChainJS, Check, Transaction, Example · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-86066 | Horilla is an HR and CRM software. Prior to 2.0.0, approve_validate_atte…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag