This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
RPC to dry run a transaction #6298
Labels
J0-enhancement
An additional feature request.
Comments
And this is an unsafe RPC? |
In terms of safeness, I think this is similar to submit extrinsic? or Any places for me to check is |
I mean, if you open a RPC where everyone can send you transactions to dry run them. They can ddos your node. Especially if they can disable signature checking. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A new RPC to allow user submit transaction and dry run it and return all events.
It should respect to weight limits so this cannot be used to DOS the node.
Should have an option to disable signature validation to make this more useful (able to detect transaction will not success before asking user to sign).
state_call
withBlockBuilder_apply_extrinsic
may be able to achieve something similar but it is way too hard to use and does not expose events.This will need to be an unsafe RPC to avoid ddos nodes.
The text was updated successfully, but these errors were encountered: