-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance the runtime API dry_run
to eliminate the need for signatures and SignedExtra
#4432
Comments
Would you be interested on working on this? Generally it should not be that complicated, we mainly need some runtime api and implement it:
|
This is already covered by #3872 (ignore the xcm bits, you can dry run any extrinsic) Right? |
No is it not. This is also only supports to execute either an |
You mean the issue is you have to pass an extrinsic, not a call, right? |
Yes.
Change what? The XCM dry run? |
Yeah change the XCM dry run to just take in a call. |
We should change the |
We can change both if it's more useful to take in a call. I think we'd like to have the same API so it's easier for UIs to use one or the other. |
Yeah changing both sounds about right or maybe having one for call and one extrinsic. |
you should check which (call vs extrinsic) is easily integrated in PJS and PAPI the majority of usage will go through one of those two |
The |
This is done, available in the SDK, and also integrated in system chains. |
As an application developer, it's essential to have simulation execution functionalities like
eth_call
that don't require accompanying signatures. This helps apps better protect user security and save on gas fees.However, the
system_dryRun
provided by Substrate requires signatures andSignedExtra
information, which can be disastrous for some apps, especially multi-signature apps.I initially came across this issue which proposed a great idea: executing without signatures and being able to return events generated during simulation execution. However, it's unclear why this hasn't been implemented.
Do you have any plans to provide a dryRun API method that doesn't require signatures or
SignedExtra
. It would be even better if it could return events.The text was updated successfully, but these errors were encountered: