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
4. Add some headroom to make room for the paymaster verification gas. In our testing we've found the following values work, but it would depend on your bundler:
50
+
3. If the request is successful and the response contains a hex-encoded byte array, use that as the `paymasterAndData` field in the userOp for gas estimation in step 4.
51
+
Note that this is a dummy signature that won't be accepted by the paymaster, except for gas estimation.
52
+
If an error is returned or the result is empty, the paymaster is not available for the given operation or chain. You can stop here and choose to proceed with another paymaster or self-funding the user operation.
53
+
4. Call estimate gas on your bundler of choice.
54
+
5. Add some headroom to make room for additional paymaster verification gas. In our testing we've found the following values work, but it would depend on your bundler:
6. If the request is successful and the response contains a hex-encoded byte array, use that as the `paymasterAndData` field in the userOp.
87
+
7. If the request is successful and the response contains a hex-encoded byte array, use that as the `paymasterAndData` field in the userOp.
85
88
If an error is returned or the result is empty, the paymaster is not available for the given operation or chain. You can choose to proceed with another paymaster or self-funding the user operation.
86
-
7. Sign the user operation, and submit to your bundler of choice.
89
+
8. Sign the user operation, and submit to your bundler of choice.
87
90
88
-
Note that the `paymasterAndData` returned in step 4 contains a signature of the provided userOp, so any modification of the userOp post step 4 (except for the `sig` field) will result in the paymaster rejecting the operation.
91
+
Note that the `paymasterAndData` returned in step 6 contains a signature of the provided userOp, so any modification of the userOp post step 6 (except for the `sig` field) will result in the paymaster rejecting the operation.
0 commit comments