feat: JWT-gated Soroban RPC passthrough proxy - #40
Merged
Conversation
Add POST /api/v1/rpc behind the user jwtMiddleware. Forwards the JSON-RPC 2.0 body verbatim to the server-side STELLAR_RPC_URL and relays the response unchanged, so the SDK Server works against it directly. The RPC-Pro token stays server-side and never reaches the moonlight-pay bundle. Method allowlist (getAccount, getLedgerEntries, simulateTransaction, sendTransaction, getTransaction, getLatestLedger); non-allowlisted methods are rejected with a JSON-RPC error, not a 500. Logs method + status only — never request/response bodies.
Contributor
Author
|
Soroban RPC proxy — 6-PR batch (ship together). Each backend+frontend pair is a vertical slice:
Relates to ClickUp 86c9n8cby. |
2.8.3 regressed import-map override resolution (the test mock for @/config/env.ts is bypassed, so the real loader throws 'DATABASE_URL is not loaded' and crashes the integration runner). Pin until the upstream regression is fixed.
AquiGorka
force-pushed
the
feat/soroban-rpc-proxy
branch
from
June 11, 2026 21:46
76faff3 to
b975962
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.
Adds
POST /api/v1/rpcbehind the userjwtMiddleware. Forwards the JSON-RPC 2.0 body verbatim to the server-sideSTELLAR_RPC_URLand relays the response unchanged, so the SDKServerworks against it directly — the RPC-Pro token stays server-side and never reaches the moonlight-pay bundle.Paired frontend: moonlight-pay. Part of a 6-PR batch that proxies Soroban RPC through the platforms so the Quasar Pro RPC token never ships in any browser bundle (3 backends + 3 frontends; each backend+frontend pair ships together).
Relates to ClickUp 86c9n8cby.
CI note: pins deno to 2.8.2 — 2.8.3 regressed import-map override resolution; tracking upstream.