docs(relayer): document SUI_GRPC_URL gRPC write-path option#481
Conversation
#355 adds an optional SUI_GRPC_URL environment variable that opts the relayer write path (Walrus register/certify, SEAL, Enoki build) into gRPC instead of JSON-RPC, ahead of the Sui JSON-RPC sunset. It is off by default; the blob query/restore path stays on JSON-RPC. Documents it across the operator-facing pages: - Environment Variables reference: new SUI_GRPC_URL row + note [BEDU-816] - Configuration reference: relayer transport pointer [BEDU-813] - Relayer Overview: Sui RPC transport section [BEDU-814] - Self-Hosting: Sui RPC Transport (gRPC write path) section [BEDU-815] Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017oS4PdhkXAzbfhJx2ZhRvh
jessiemongeon1
left a comment
There was a problem hiding this comment.
the docs repeatedly say the blob query / restore path stays on JSON-RPC when SUI_GRPC_URL is set. That does not match current code.
services/server/scripts/sidecar/routes/walrus-query.ts switches /walrus/query-blobs to gRPC via listOwnedObjects + getDynamicField when SUI_GRPC_URL is set, and /api/restore calls that sidecar route through query_blobs_by_owner.
…e path Review feedback (jessiemongeon1): the docs claimed the blob query/restore path stays on JSON-RPC when SUI_GRPC_URL is set. That is wrong. Per services/server/scripts/sidecar/routes/walrus-query.ts and clients.ts, when SUI_GRPC_URL is set the query/restore path also runs on gRPC (listOwnedObjects + getDynamicField); the JSON-RPC getOwnedObjects/ getDynamicFieldObject/queryTransactionBlocks path is the fallback used only when SUI_GRPC_URL is unset. Corrected across the environment-variables, configuration, relayer overview, and self-hosting pages to describe SUI_GRPC_URL as a single reversible switch that moves both the write path and the query/restore path to gRPC. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017oS4PdhkXAzbfhJx2ZhRvh
|
You're right, thanks for catching this. I checked Fixed in 3c52a1a: all four pages now describe Generated by Claude Code |
Style Guide AuditAll 4 file(s) pass the style guide audit. |
Style-guide audit flagged title-cased 'Transport' in the self-hosting heading. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017oS4PdhkXAzbfhJx2ZhRvh
jessiemongeon1
left a comment
There was a problem hiding this comment.
A few style guide issues and inconsistencies - are you using the Sui Style Guide skill in your Claude configuration?
…inline single bullet - Normalize SEAL -> Seal (product name) in relayer/config docs - Correct Sui JSON-RPC sunset to July 2026 (was 2026-07-31) - Inline single-item SUI_GRPC_URL bullet into prose per review
|
Thanks Jessie, all applied in
One thing worth flagging: the rest of this repo overwhelmingly uses uppercase Yes, I'm using the Sui Style Guide skill; these date/casing slips were mine, not the tooling. I'll keep them off the next batch. Generated by Claude Code |
…C_URL relayer docs, #482 agent-memory developer guides)
Description
Documents the optional
SUI_GRPC_URLenvironment variable added in #355, which opts the relayer write path (Walrus register and certify, SEAL, and Enoki build) into gRPC instead of JSON-RPC ahead of the Sui JSON-RPC sunset on 2026-07-31. The option is off by default, so leaving it empty keeps the existing JSON-RPC behavior. The blob query and restore path continues to use JSON-RPC index methods and is not affected.Covers the four operator-facing pages so the behavior is consistent across the docs:
reference/environment-variables.md) — newSUI_GRPC_URLrow in the self-hosted relayer table plus a note (BEDU-816).reference/configuration.md) — a "Relayer configuration" pointer to the write-path transport option, since that page otherwise covers SDK config shapes (BEDU-813).relayer/overview.md) — a "Sui RPC transport" subsection (BEDU-814).relayer/self-hosting.md) — a "Sui RPC Transport (gRPC write path)" subsection with an example and the JSON-RPC caveat (BEDU-815).Test plan
services/server/scripts/sidecar/config.ts,clients.ts,walrus-query.ts, andservices/server/src/main.rs): the opt-in default, which write-path operations move to gRPC, the startup validation of the URL, and the fact that the blob query and restore path stays on JSON-RPC index methods.🤖 Generated with Claude Code
https://claude.ai/code/session_017oS4PdhkXAzbfhJx2ZhRvh
Generated by Claude Code