Gas Sponsorship API Endpoints

The Gas Coverage API Endpoints allows you to sponsor gas fees for your users, removing the biggest barrier to entry.

What are Gas Coverage API Endpoints?

The Gas Coverage API is a set of methods that allow you to sponsor gas for your users’ transactions, abstracting away the concept of “gas” from them. Below are the Gas Manager Admin API endpoints available and the corresponding docs for each of them.

MethodDescription
alchemy_requestGasAndPaymasterAndData[Start here / Recommended] Requests gas sponsorship and gas estimates for a UserOperation on EVM networks. If approved, returns: 1. paymaster and paymasterData 2. gas and fee estimates.
alchemy_requestPaymasterAndData[To be deprecated] Requests gas sponsorship for a UserOperation on EVM networks. If approved, returnspaymaster and paymasterData.
pm_getPaymasterStubDataReturns stub values to be used in paymaster-related fields of an unsigned user operation for gas estimation on EVM networks.
pm_getPaymasterDataReturns values to be used in paymaster-related fields of a signed user operation on EVM networks. These are not stub values and will be included in a signed user operation as part of an eth_sendUserOperation call.
alchemy_requestFeePayerRequest gas sponsorship for a transaction on Solana. Returns the serializedTransaction, including the feePayer signature.
alchemy_requestPaymasterTokenQuoteRequests ERC20 fee quote for a UserOperation. Optionally accepts fee parameter overrides to be used in the UserOperation