alchemy_requestPaymasterAndData
Requests gas coverage for a UserOperation.
To be deprecated
Please use alchemy_requestGasAndPaymasterAndData instead.
While you can use alchemy_requestPaymasterAndData to request a paymaster signature, this method 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.
alchemy_requestGasAndPaymasterAndData both estimates gas and provides signed paymaster fields, which resolves the circular dependency.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
objectrequired
Object containing the sponsorship request parameters.
Responses
200
The response depends on the EntryPoint version used in the request.
Was this page helpful?