Sends a UserOperation to the paymaster. If approved for sponsorship, it returns the paymasterAndData along with updated gas values.

Recipes
🧑‍🏫 Tutorial #1
Open Recipe
Use a Paymaster
Open Recipe

Need an API Key? Get one here!

📘

Building a UserOperation can involve several complex steps.

For an interactive experience, check out the ERC-4337 examples repo.

The context field

The context field instructs the paymaster on how you would like your gas to be sponsored. The Stackup Paymaster currently has two types.

  1. payg: Paymaster sponsors the gas and invoices the fee in USD to your monthly subscription.
  2. erc20token: Paymaster sponsors the gas and pulls enough tokens from the sender account to cover the cost.

For more details see the guide on Paymaster RPC.

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