|
| 1 | +--- |
| 2 | +section: developers |
| 3 | +date: Last Modified |
| 4 | +title: "Checking Transaction Journey Guide" |
| 5 | +lang: "en" |
| 6 | +permalink: "developers/guides/checking-transaction-journey" |
| 7 | +excerpt: "This guide contains instructions on how you can check your transaction's journey." |
| 8 | +--- |
| 9 | + |
| 10 | +import Aside from "../../../../../components/Aside.astro" |
| 11 | +import ClickToZoom from "../../../../../components/ClickToZoom.astro" |
| 12 | +import ToggleElement from "../../../../../components/ToggleElement.astro" |
| 13 | +import txJourneyDiagram from "../_images/txJourneyDiagram.png" |
| 14 | + |
| 15 | +This guide will help you to check the journey of a transaction through the **Scroll network**, how to inspect it via the `/tx/journeys` API, and interpret its lifecycle. |
| 16 | + |
| 17 | +### Architecture Summary |
| 18 | + |
| 19 | +<ClickToZoom src={txJourneyDiagram} /> |
| 20 | +_Diagram of Scroll transaction journey_ |
| 21 | + |
| 22 | +| Component | Role | |
| 23 | +|-----------------------|---------------------------------------------------| |
| 24 | +| User/DApp | Submits transaction. | |
| 25 | +| Monitoring Service | Logs events and tracks transaction progress | |
| 26 | +| Scroll Internal Nodes | Peer nodes supporting network operations such as bootnodes or RPC nodes for internal backend services. | |
| 27 | +| Scroll Sequencer | Orders transactions into blocks. | |
| 28 | +| HTTP API | External access interface for monitoring service | |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +### Endpoint |
| 33 | + |
| 34 | +POST https://venus.scroll.io/v1/tx/journeys |
| 35 | + |
| 36 | +### Request Example |
| 37 | + |
| 38 | +```bash |
| 39 | +curl -X POST "https://venus.scroll.io/v1/tx/journeys" \ |
| 40 | + -H "Content-Type: application/json" \ |
| 41 | + -d '{ |
| 42 | + "tx_hashes": [ |
| 43 | + "0xf8a92194cb21dcfaa2efe3230c5d5c80f7e71361575eff33cafa6ebc9eb34357" |
| 44 | + ] |
| 45 | + }' | jq |
| 46 | +``` |
| 47 | + |
| 48 | +#### Response Fields |
| 49 | + |
| 50 | +| Field | Description | |
| 51 | +|-------------------|-------------| |
| 52 | +| `tx_hash` | Transaction hash queried. | |
| 53 | +| `current_status` | Final status (`queued`,`pending`,`executed`,`dropped`,`replaced`). | |
| 54 | +| `execution_status`| Result of execution (`successful`,`reverted`,`unknown`,`error`). | |
| 55 | +| `first_seen_at` | First time the network detected this transaction. | |
| 56 | +| `last_updated_at` | Most recent status update time. | |
| 57 | +| `journey` | Detailed list of state transitions for the transaction. | |
| 58 | + |
| 59 | +#### Current Status |
| 60 | + |
| 61 | +| Stage | Description | |
| 62 | +|-----------|-------------| |
| 63 | +| `queued` | Transaction not yet executable, e.g. nonce gap or awaiting prior txs. | |
| 64 | +| `pending` | Transaction valid and executable in mempool. | |
| 65 | +| `executed` | Transaction included in a block. | |
| 66 | +| `dropped` | Transaction removed due to expiration, mempool overflow, or invalid parameters. | |
| 67 | +| `replaced` | Transaction replaced by a new transaction (same sender and nonce, with higher gas price). | |
| 68 | + |
| 69 | +#### Execution Status |
| 70 | + |
| 71 | +| Status | Meaning | |
| 72 | +|------------|---------| |
| 73 | +| `successful`| Transaction executed successfully and included in a block. | |
| 74 | +| `reverted` | Transaction failed during execution. | |
| 75 | +| `unknown` | Transaction not yet executed. | |
| 76 | +| `error` | Unexpected error in query node. Should rarely occur. | |
| 77 | + |
| 78 | +### Journey Field Example |
| 79 | + |
| 80 | +#### Queued |
| 81 | + |
| 82 | +```json |
| 83 | +{ |
| 84 | + "event_type": "queued", |
| 85 | + "timestamp": "2025-06-19T17:22:23.27Z", |
| 86 | + "node_type": "l2geth-bootnode-0", |
| 87 | + "event_detail": "Transaction added to future queue (initial processing - will be promoted to pending if nonce is correct and all validity checks pass, or wait for conditions to be met)" |
| 88 | +} |
| 89 | +``` |
| 90 | + |
| 91 | +#### Pending |
| 92 | + |
| 93 | +```json |
| 94 | +{ |
| 95 | + "event_type": "pending", |
| 96 | + "timestamp": "2025-06-19T17:22:23.27Z", |
| 97 | + "node_type": "l2geth-bootnode-0", |
| 98 | + "event_detail": "Transaction promoted from future queue to pending pool (passed all checks: correct nonce sequence, sufficient balance including L1 data fee, gas limit compliance, and account pending limit)" |
| 99 | +} |
| 100 | +``` |
| 101 | + |
| 102 | +#### Executed |
| 103 | + |
| 104 | +```json |
| 105 | +{ |
| 106 | + "event_type": "executed", |
| 107 | + "timestamp": "2025-06-19T17:22:23.299Z", |
| 108 | + "node_type": "l2geth-mpt-signer-1", |
| 109 | + "event_detail": "Transaction successfully included in a block and executed on-chain" |
| 110 | +} |
| 111 | +``` |
| 112 | + |
| 113 | +#### Dropped |
| 114 | + |
| 115 | +```json |
| 116 | +{ |
| 117 | + "event_type": "dropped", |
| 118 | + "timestamp": "2025-06-19T17:22:23.352Z", |
| 119 | + "node_type": "l2geth-bootnode-2", |
| 120 | + "event_detail": "Transaction rejected (validation failed - insufficient funds, unsupported transaction type, or other validation errors)" |
| 121 | +} |
| 122 | +``` |
| 123 | + |
| 124 | +1. `Queued`: Transaction waiting for execution (e.g., nonce gap) |
| 125 | +2. `Pending`: Transaction ready for inclusion by Scroll Sequencer. |
| 126 | +3. `Executed`: Transaction included in a block. |
| 127 | +4. `Dropped` or `Replaced`: Transaction invalidated or replaced before execution. |
| 128 | + |
| 129 | +### Common Failure Reasons |
| 130 | + |
| 131 | +**Dropped:** |
| 132 | +- Timeout: Stuck too long in queue. |
| 133 | +- Mempool full. |
| 134 | +- Invalid parameters (e.g., nonce too low, fee cap below block base fee). |
| 135 | + |
| 136 | +**Replaced:** |
| 137 | +- Same nonce transaction with higher gas price replaces previous. |
0 commit comments