Open
Conversation
Bundle Size Report
Chunk changes (>1KB)
Compared against main branch (baseline from 4/27/2026, 4:02:54 PM) |
Cloudflare Deployments
|
Adds /receipt/voucher route that renders offchain payment channel state from a signed MPP voucher. Accepts channelId, cumulativeAmount, and signature as URL search params. - Reads channel state on-chain via the stream channel escrow contract - Verifies voucher signature via EIP-712 typed data recovery - Shows on-chain state (deposit, settled) alongside offchain state (cumulative amount, unsettled delta, remaining balance) - Displays channel status (open/closing/closed) and participants - Unverified signatures show a warning banner - noindex/nofollow to prevent voucher URL leakage via search engines Co-Authored-By: Georgios Konstantopoulos <17802178+gakonst@users.noreply.github.com> Amp-Thread-ID: https://ampcode.com/threads/T-019d9db9-63d7-70bb-be99-3c3693f8db6b
901d160 to
3e8b77a
Compare
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.
Summary
Adds a
/receipt/voucherroute to the block explorer that renders offchain MPP payment channel state from a signed voucher. Users can paste a voucher via URL params (channelId,cumulativeAmount,signature) to inspect the current state of a payment channel.Motivation
For long-running MPP sessions, offchain state is invisible between channel open and close. This gives clients and servers a way to inspect the current channel state by combining on-chain data with a signed voucher — essentially a "channel inspector" embedded in the explorer.
Came from this discussion about improving visibility for MPP sessions.
Changes
apps/explorer/src/routes/_layout/receipt/voucher.tsx— new route that:getChannelon the stream channel escrow contractauthorizedSignernoindex,nofollow,noarchiveto prevent search engine indexing of voucher URLsapps/explorer/src/routeTree.gen.ts— wired up new routeUsage
Prompted by: georgios