Skip to content

Add RPC resource limit estimation opt-out#290

Open
catmcgee wants to merge 1 commit into
anza-xyz:mainfrom
catmcgee:catmcgee/rpc-compute-unit-limit-mode
Open

Add RPC resource limit estimation opt-out#290
catmcgee wants to merge 1 commit into
anza-xyz:mainfrom
catmcgee:catmcgee/rpc-compute-unit-limit-mode

Conversation

@catmcgee

@catmcgee catmcgee commented Jun 29, 2026

Copy link
Copy Markdown

Adds resourceLimitEstimation: "estimate" | "none" to the RPC planner/executor path.

By default, behavior is unchanged: the planner reserves provisional resource-limit instructions and the executor estimates/sets missing limits before sending

When set to none:

  • rpcTransactionPlanner does not add provisional resource-limit instructions
  • rpcTransactionPlanExecutor does not simulate to estimate or inject missing limits
  • explicit resource limits already present in a transaction message are preserved
  • solanaRpc passes the same setting to both planner and executor

This is useful for transactions that are close to the message size limit, where adding a compute-budget instruction can make an otherwise valid transaction too large

@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f534476

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@solana/kit-plugin-rpc Patch
@solana/kit-client-rpc Patch
@solana/kit-plugins Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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