Repository navigation
feat(ui): raw transaction inspector on the transaction details sheet - #824
Merged
Merged
Conversation
Two new rows on the transaction detail sheet, above View in Block Explorer: - View Transaction: a full consensus-field inspector for the stored raw bytes — version/DIP-2 type (named), size, locktime, block height, fee; every input (outpoint, best-effort sender address, amount when the spent output is the wallet's own TXO, sequence, scriptSig); every output (value, P2PKH/P2SH address via ScriptAddressCodec, OP_RETURN contents as hex + ASCII when printable, non-standard scripts flagged, scriptPubKey); the DIP-2 special payload (type name, parsed fields for CbTx and Asset Lock credit outputs, full hex); and the complete raw hex. Every value is tap-to-copy. - Copy Raw Transaction: copies the serialized transaction hex; reports "Raw transaction unavailable" when the row's bytes aren't stored instead of copying nothing. Data layer: RawTransactionInspector fetches PersistentTransaction .transactionData from the wallet's SwiftData store and consensus-parses it app-side (ParsedRawTransaction — version/type split, scriptSigs, sequences, locktime, extra payload; throws on malformed bytes rather than guessing), merged with the SDK TransactionDecoder's input-address recovery and the wallet's own TXO rows for input values. Display-only — nothing feeds signing or validation. Co-Authored-By: Claude Fable 5 <[email protected]>
QuantumExplorer
added a commit
that referenced
this pull request
Jul 16, 2026
The bare `tx` pattern (added in 2e34e82 to ignore a locally downloaded Transifex CLI binary) also matched the tracked source directories DashWallet/Sources/UI/Tx/ and DashWallet/Sources/Models/Tx/ on case-insensitive filesystems (core.ignorecase=true, the macOS default). Existing tracked files were unaffected, but any NEW file created under those directories was silently ignored — this bit RawTransactionView.swift on PR #824, which had to be force-added. Anchor the pattern to the repo root as `/tx`, which is where the CLI binary lands. Verified: - git check-ignore DashWallet/Sources/UI/Tx/Details/RawTransactionView.swift no longer matches - a new probe file under Sources/UI/Tx/ now shows up in git status - a root-level `tx` file is still ignored Co-authored-by: Claude Fable 5 <[email protected]>
QuantumExplorer
added a commit
that referenced
this pull request
Jul 16, 2026
…ector #824, Topper fix #823) — keep send-sheet arrow wiring + adopt onInfo Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two new rows on the transaction detail sheet, above "View in Block Explorer":
txid:vout), best-effort sender address (SDKTransactionDecoderP2PKH scriptSig recovery), amount when the spent output is the wallet's own TXO (raw txs carry no input values), sequence, full scriptSig hex. Coinbase inputs labeled.ScriptAddressCodec), OP_RETURN contents (hex + ASCII when fully printable), non-standard scripts flagged, full scriptPubKey hex.Implementation
RawTransactionInspector(new, Models/Transactions/Model): fetchesPersistentTransaction.transactionDatafrom the wallet SwiftData store and consensus-parses it app-side (ParsedRawTransaction: version/type split, scriptSigs, sequences, locktime, DIP-2 extra payload; CompactSize reader; throws on malformed/trailing bytes — the UI shows an honest "unavailable" state instead of guessed structure). Input addresses merge from the SDK decoder; input values from the wallet's own TXO rows keyed byPersistentTxo.makeOutpoint.RawTransactionView(new, SwiftUI +@MainActorViewModel) presented in the existingBottomSheetchrome fromTXDetailViewController, which gains a.rawTransactionsection with the two action rows.Note for reviewers: the repo
.gitignorecontains a baretxpattern that (case-insensitively) swallows new files underSources/UI/Tx/—RawTransactionView.swiftis force-added. Possibly worth scoping that ignore pattern separately.Testing
Testnet smoke on QA-iPhone16 / iPhone 16 Pro sims: classic sends/receives (inputs, outputs, scripts), a Core→Shielded transfer (Asset Lock payload with decoded credit outputs), coinbase rewards (CbTx payload, coinbase input), copy actions. Unit-test target pre-existing-broken per CLAUDE.md.
🤖 Generated with Claude Code