Transaction V1 with Explicit Resource Requests #202
blockiosaurus
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
If the resource requests aren't in the signed data, couldn't an MEV validator set max piority fees for all incoming transactions? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Add explicit resource requests to the
VersionedTransaction
type rather than to the ComputeBudget Program. No longer force inclusion of the ComputeBudget instruction in all transactions and remove it from signed data entirely.Motivation
Core devs have expressed a desire to better define transaction resource constraints by including explicit resource requests in a transaction. Currently this is done by overloading the ComputeBudget Program. However, this has several drawbacks such as transaction size, overhead, and difficulty building transactions. This data would be better represented and more efficient as native fields in the
VersionedTransaction
object.Additionally, most transactions originating from frontend wallets contain a
ComputeBudgetInstruction
injected via the wallet provider. For the sake of clarity and DevEx, these resource request fields should be removed from the signed data entirely to clearly indicate that these fields have no guaranteed originator.Alternatives Considered
New Terminology
ResourceRequest - An enum type for the different resources that can be requested for a transaction's execution.
Resources - Part of the
V1
VersionedTransaction
variant. An array of theResourceRequest
s that can are requested for a transaction.Detailed Design
Impact
Security Considerations
Beta Was this translation helpful? Give feedback.
All reactions