Validate User Operation
We can check if a userOp is valid and will be accepted by the bundler.
A sample request through curl like this can be used, with any Skandha bundler deployment being the endpoint.
This can be run in any command line.
skandha_validateUserOperation is the method.
The skandha_validateUserOperation method accepts 2 params:
- userOp : a full userOp to check.
- entryPoint: The entryPoint contract address.
In return the bundler will return a collection of historical gas prices for submitted userops.
A successful response will look like this:
This response means we’ve already created a wallet at this address.