alchemy_requestPaymasterAndData

Requests coverage for a UserOperation. Returns paymasterAndData if approved, errors if not.

Network Support

ChainMainnetTestnet
Ethereum:white-check-mark::white-check-mark:
Polygon:white-check-mark::white-check-mark:
Arbitrum:white-check-mark::white-check-mark:
Optimism:white-check-mark::white-check-mark:
Base:white-check-mark::white-check-mark:

📘

NOTE

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. These gas fields are influenced by the paymasterAndData content (size and validation gas), creating a circular dependency.

To simplify this process, we recommend using alchemy_requestGasAndPaymasterAndData. This function not only provides a gas estimation, but also returns a signed paymasterAndData containing that gas estimation, therefore resolving the circular dependency.

Language
URL
Click Try It! to start a request and see the response here!
ReadMe