Skip to content

feat(tx): add stellar tx send-via-core subcommand - #2858

Closed
jdjioe5-cpu wants to merge 1 commit into
stellar:mainfrom
jdjioe5-cpu:feat/issue-2391-tx-send-via-core
Closed

jdjioe5-cpu wants to merge 1 commit into
stellar:mainfrom
jdjioe5-cpu:feat/issue-2391-tx-send-via-core

Conversation

@jdjioe5-cpu

Copy link
Copy Markdown

Summary

Adds the stellar tx send-via-core subcommand to submit base-64 encoded XDR transaction envelopes directly to a stellar-core HTTP endpoint (/tx?blob=...), bypassing Soroban RPC.

Closes #2391

Changes

  • cmd/soroban-cli/src/commands/tx/send_via_core.rs:
    • Implements stellar tx send-via-core [TX_XDR] --core-url <CORE_URL> (also configurable via STELLAR_CORE_URL).
    • Accepts transaction envelope XDR from a positional argument, a file path, or stdin (reusing super::xdr::tx_envelope_from_input).
    • Encodes the transaction envelope as canonical base-64 XDR and constructs the GET <core-url>/tx?blob=<url-encoded-xdr> request URL.
    • Parses and pretty-prints the JSON response from stellar-core (status, optional error, and any additional diagnostic fields).
  • cmd/soroban-cli/src/commands/tx/mod.rs:
    • Registers the send-via-core subcommand under stellar tx.

Testing

  • Added unit and end-to-end mock server tests in commands::tx::send_via_core::tests covering URL construction, CLI argument parsing, response deserialization, and HTTP submission to /tx?blob=....

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Oct 23, 2026
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add stellar tx send-via-core command

2 participants