Add `stellar tx send-via-core` command

Open
#2,391 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli, networking

Research direction

Locate the implementation and tests for the existing stellar tx send command, then trace its transaction-input handling and network configuration. Compare that flow with stellar-core's /tx endpoint and verify the new command accepts argument, file, and stdin inputs, submits to the configured core URL, and prints the response.

Written by the indexing model from the issue text.

Description

feature request
What problem does your feature solve?

The existing stellar tx send command submits transactions exclusively through Soroban RPC's sendTransaction endpoint. There is no way to submit a transaction directly to stellar-core, or horizon.

Submitting directly to stellar-core is useful when:

  • Ops work setting up new networks where an RPC isn't running but a classic tx needs sending.
  • Debugging transaction submission issues where you want to isolate whether the problem is in RPC or core.
  • Operating in environments where Soroban RPC is unavailable but stellar-core is accessible.
  • Testing core directly during development or network upgrades.
What would you like to see?

A new stellar tx send-via-core subcommand that submits a transaction envelope directly to a stellar-core instance, bypassing Soroban RPC.

The command would follow the same pattern as stellar tx send:

stellar tx send-via-core [TX_XDR] --core-url <url>
  • Accept a base-64 encoded transaction envelope XDR from a positional argument, file, or stdin (same as stellar tx send).
  • Accept a --core-url flag (or resolve it from network configuration) pointing to a stellar-core HTTP endpoint.
  • Submit the transaction to stellar-core's tx HTTP endpoint.
  • Print the response from core.
What alternatives are there?
  • Use curl to manually POST the transaction XDR to a stellar-core instance's /tx endpoint.
  • Submit via stellar tx send through RPC, which internally forwards to core anyway.
Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.