Skip to content
Alchemy Logo

alchemy_requestPaymasterAndData

POST
/{apiKey}

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, 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

stringrequireddefaults to docs-demo

For 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?