You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simulateTransaction RPC method currently lacks support for the innerInstructions parameter. Adding this feature will allow users to include inner instructions in their simulations. This would be useful for developers who would like to simulate and debug complex transactions that involve multiple program invocations
Example use case
If a developer is working on a program with nested calls without the innerInstructions parameter, they cannot debug issues related to inner program invocations. By enabling innerInstructions, the developer can get a detailed log of all nested instructions, making it easier to identify and fix problems.
Moreover, developers looking to optimize their compute usage by first simulating their transactions with inner instructions are currently unable to do so via web3.js and would have to make the HTTP call directly.
Details
Behavior:
The simulateTransaction method should accept an optional innerInstructions parameter of type boolean
When the innerInstructions is set to true, the simulation response should include a detailed list of inner instructions executed during the transaction
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.
Motivation
The
simulateTransaction
RPC method currently lacks support for theinnerInstructions
parameter. Adding this feature will allow users to include inner instructions in their simulations. This would be useful for developers who would like to simulate and debug complex transactions that involve multiple program invocationsExample use case
If a developer is working on a program with nested calls without the
innerInstructions
parameter, they cannot debug issues related to inner program invocations. By enablinginnerInstructions
, the developer can get a detailed log of all nested instructions, making it easier to identify and fix problems.Moreover, developers looking to optimize their compute usage by first simulating their transactions with inner instructions are currently unable to do so via web3.js and would have to make the HTTP call directly.
Details
Behavior:
simulateTransaction
method should accept an optionalinnerInstructions
parameter of typeboolean
innerInstructions
is set totrue
, the simulation response should include a detailed list of inner instructions executed during the transactionImplementation:
SimulateTransactionConfig
type to include theinnerInstructions
parametersimulateTransaction
method to pass in this parameter if providedA PR implementing these changes will follow shortly! :)
The text was updated successfully, but these errors were encountered: