Skip to content

feat(rpc): expose direct account reads on minimal validator RPC - #15955

Merged
apfitzge merged 2 commits into
anza-xyz:masterfrom
apfitzge:local_rpc_accounts
Oct 27, 2026
Merged

apfitzge merged 2 commits into
anza-xyz:masterfrom
apfitzge:local_rpc_accounts

Conversation

@apfitzge

@apfitzge apfitzge commented Oct 9, 2026 •

Copy link
Copy Markdown

Motivation

  • For an external scheduler implementing bundle / block-engine support we need to access account state to payout previous leader's tips, initialize tip accounts, etc. This is a consequence of jito's tip system: https://jito-foundation.gitbook.io/mev/mev-payment-and-distribution/high-level?utm_source=chatgpt.com
  • It makes little sense to implement a dedicate acct service as part of scheduler-bindings, which would be hacky due to allocation size restrictions, when we have an already implemented rpc method that achieves what we need.

Problem

  • full_rpc requires many internal flags and additional tracking by the validator
  • access to accounts (single and multiple) requires nothing additional except the rpc threads

Summary of Changes

  • expose getAccountInfo and getMultipleAccounts without full_api

@mergify

mergify Bot commented Oct 9, 2026

Copy link
Copy Markdown

If this PR represents a change to the public RPC API:

  1. Make sure it includes a complementary update to rpc-client/ (example)
  2. Open a follow-up PR to update the JavaScript client @solana/kit (example)

Thank you for keeping the RPC clients in sync with the server API @apfitzge.

@apfitzge

apfitzge commented Oct 9, 2026

Copy link
Copy Markdown
Author

One option here is to only enable this for local rpc.

Does anyone run a public rpc without full-api though?

@codecov-commenter

codecov-commenter commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.93939% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.2%. Comparing base (67e3306) to head (c7895e9).

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #15955     +/-   ##
=========================================
- Coverage    82.2%    82.2%   -0.1%     
=========================================
  Files         952      952             
  Lines      372750   372777     +27     
=========================================
- Hits       306684   306647     -37     
- Misses      66066    66130     +64     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apfitzge
apfitzge marked this pull request as ready for review October 16, 2026 15:53
@apfitzge
apfitzge requested a review from brooksprumo October 19, 2026 16:54

@brooksprumo brooksprumo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

expose getAccountInfo and getMultipleAccounts without full_api

Does this mean all validators now expose this RPC method, or is there some other cli arg for the minimal stuff?


Otherwise, the code lgtm. The get_account_info() and get_multiple_accounts() impls do per-account lookups and not account scans, so aren't the worst things in the world for accounts-db. All this with the usual caveats that we're trying to remove RPC not add more to it.

I'd also like to get approval from a product owner like person. @bw-solana tagging you in for this. Feel free to request reviews from folks that fit the bill.

@brooksprumo
brooksprumo requested a review from bw-solana October 20, 2026 15:05
@apfitzge

Copy link
Copy Markdown
Author

There's no separate flag for minimal rpc, it's just specifying an rpc-port and NOT having --full-rpc-api

@bw-solana

Copy link
Copy Markdown

for paper trail, can you update description to spell out the use case where we want access to accounts without the baggage of the full RPC API?

@bw-solana

Copy link
Copy Markdown

Here's my understanding of the summary.

Validator configuration Before After this PR
No --rpc-port No JSON-RPC server Unchanged
--rpc-port Neither account method available Both account methods available
--rpc-port + --full-rpc-api Both account methods already available Unchanged

I'm not sure who all is using that middle config and would thus be impacted. I'll ask around

@apfitzge

Copy link
Copy Markdown
Author

I'm not sure who all is using that middle config and would thus be impacted. I'll ask around

I think the more important is the middle one without --private-rpc. If they've got that, then there's real impact.

@apfitzge

Copy link
Copy Markdown
Author

for paper trail, can you update description to spell out the use case where we want access to accounts without the baggage of the full RPC API?

Added a Motivation section at the top of PR description.

@apfitzge

Copy link
Copy Markdown
Author

@bw-solana is this something we can merge for 4.5, would like to be using it for bundle stuff.

@bw-solana

Copy link
Copy Markdown

yes, I'm okay with it

@apfitzge

Copy link
Copy Markdown
Author

yes, I'm okay with it

one of you mind approving then lol?

@brooksprumo brooksprumo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

:shipit:

@apfitzge
apfitzge added this pull request to the merge queue Oct 27, 2026
Merged via the queue into anza-xyz:master with commit e5606fb Oct 27, 2026
48 checks passed
@apfitzge
apfitzge deleted the local_rpc_accounts branch October 27, 2026 16:07
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.

4 participants