post https://{network}.g.alchemy.com/v2/
Requests coverage for a UserOperation
. Returns paymasterAndData
if approved, errors if not.
Network Support
Chain | Mainnet | Testnet |
---|---|---|
Ethereum | ||
Polygon | ||
Arbitrum | ||
Optimism | ||
Base |
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 theUserOperation
. These gas fields are influenced by thepaymasterAndData
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 signedpaymasterAndData
containing that gas estimation, therefore resolving the circular dependency.