Skip to content

feat(rpc): Adds getBundleStatuses rpc method#608

Open
0xzrf wants to merge 4 commits intosolana-foundation:mainfrom
0xzrf:fetch_bundle_status
Open

feat(rpc): Adds getBundleStatuses rpc method#608
0xzrf wants to merge 4 commits intosolana-foundation:mainfrom
0xzrf:fetch_bundle_status

Conversation

@0xzrf
Copy link
Copy Markdown
Contributor

@0xzrf 0xzrf commented Apr 2, 2026

Summery

This PR adds the getBundleStatuses rpc method in the jito.rs file to get statuses of the transactions submitted via sendBundle rpc method

Changes

  • Adds jito_bundles: Box<dyn Storage<String, Vec<String>>> to SurfnetSvm to persist jito bundles based on bundle_id
  • Adds get_bundle and process_bundle helper methods to inside locker.rs
  • Adds SimnetCommand::SendBundle to send the bundle to runloop via simet_command_tx
  • Calls SimnetCommand::SendBundle inside sendBundle rpc call
  • Adds get_bundle_statuses method inSurfpoolJitoRpc which takes a bundle_id: String, looks it up in via get_bundle helper, and then calls SurfpoolFullRpc::get_signature_statuses and sends back status of each transaction in the same order as originally sent in sendBundle

Closes #595

Copy link
Copy Markdown
Collaborator

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get this PR rebased on main? Currently it's including commits from another PR (sigterm one) as well

Comment thread crates/core/src/rpc/jito.rs Outdated
Comment thread crates/core/src/rpc/jito.rs Outdated
Comment thread crates/core/src/surfnet/locker.rs Outdated
Comment thread crates/core/src/surfnet/locker.rs Outdated
@0xzrf 0xzrf force-pushed the fetch_bundle_status branch from 80c2f9e to 6220ce5 Compare April 10, 2026 09:33
@0xzrf 0xzrf requested a review from MicaiahReid April 10, 2026 10:07
Comment thread crates/core/src/rpc/jito.rs Outdated
Comment thread crates/core/src/rpc/jito.rs Outdated
Comment thread crates/core/src/rpc/jito.rs Outdated
Comment thread crates/core/src/surfnet/locker.rs Outdated
Comment thread crates/types/src/types.rs
@0xzrf 0xzrf requested a review from MicaiahReid April 10, 2026 17:15
Copy link
Copy Markdown
Collaborator

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff, almost there!

Comment thread crates/core/src/rpc/jito.rs
Comment thread crates/core/src/surfnet/locker.rs Outdated
@MicaiahReid MicaiahReid changed the title feature(rpc): Adds getBundleStatuses rpc method feat(rpc): Adds getBundleStatuses rpc method Apr 10, 2026
@0xzrf 0xzrf requested a review from MicaiahReid April 12, 2026 13:40
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.

Implement getBundleStatuses jito method

2 participants