Skip to content

fix: JSON-RPC error:null + omit empty params (BTC-family / Stellar) - #23

Closed
snowkide wants to merge 1 commit into
feat/jsonrpc-architecturefrom
fix/jsonrpc-error-null-and-omit-params
Closed

fix: JSON-RPC error:null + omit empty params (BTC-family / Stellar)#23
snowkide wants to merge 1 commit into
feat/jsonrpc-architecturefrom
fix/jsonrpc-error-null-and-omit-params

Conversation

@snowkide

Copy link
Copy Markdown

Summary

  • Treat upstream "error": null as success (Bitcoin Core / dogecoind / litecoind).
  • Omit empty params when remarsaling outbound requests (Stellar rejects params:[]).

Stacked on feat/jsonrpc-architecture.

Test plan

  • unit tests for marshal omit + error null
  • Publish jsonrpc-passthrough-4; smoke doge-testnet + stellar + BTC-family

Made with Cursor

Bitcoin-family nodes emit "error": null on success; ParseError("null")
was inventing a server-side exception and exhausting upstreams
(dogecoin/litecoin/mutiny via erpc).

Omit empty params on the wire so Stellar (and similar) accept
getHealth/getLatestLedger — they reject "params":[].

Co-authored-by: Cursor <cursoragent@cursor.com>
@snowkide

Copy link
Copy Markdown
Author

Superseded by combined PR #24 (rebased onto feat/websocket-support).

@snowkide

Copy link
Copy Markdown
Author

Closing in favor of #24.

@snowkide snowkide closed this Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant