alchemy_requestPaymasterAndData
Requests gas coverage for a UserOperation.
Please use alchemy_requestGasAndPaymasterAndData instead.
While you can use alchemy_requestPaymasterAndData to request a paymaster signature, it's important to note that this function requires gas fields to be part of the UserOperation passed as a parameter. These gas fields are influenced by the response of this endpoint, creating a circular dependency.
To simplify this process, we introduced alchemy_requestGasAndPaymasterAndData. This function both estimates gas and provides signed paymaster and paymasterData fields, therefore resolving the circular dependency.
Path Parameters
docs-demoFor higher throughput, create your own API key
Request
Object containing the sponsorship request parameters.
Responses
200
The response depends on the EntryPoint version used in the request.