From 29ccc0234623e390998f6cda91809b5cfa835eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CCaleigh?= Date: Wed, 24 Sep 2025 10:38:17 -0400 Subject: [PATCH 1/2] docs: gas-override-general-faq --- docs/pages/resources/faqs.mdx | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/docs/pages/resources/faqs.mdx b/docs/pages/resources/faqs.mdx index 80fbf1db0e..9eb9fd65e6 100644 --- a/docs/pages/resources/faqs.mdx +++ b/docs/pages/resources/faqs.mdx @@ -213,6 +213,42 @@ We recommend adding error handling when sending a UO to handle potential gas and +### How to Send User Operations without Gas Sponsorship? + + + Sponsoring gas for your users is optional. If you prefer for users’ smart accounts to pay gas themselves in the native token. + + You can do this using one of two approaches: + + --- + + ### Option 1: Omit the gas policy in your config + + Don't include a gas policy in the `AlchemyAccountProvider` component configuration or in the `paymasterService` capabilities `policyId` parameter. + + --- + + ### Option 2: Override sponsorship at the UserOp level + + Explicitly disable sponsorship by setting `paymasterAndData` to `0x`. + + ```ts + const overrides: UserOperationOverrides = { + paymasterAndData: "0x", + }; + + const userOperationResult = await client.sendUserOperation({ + uo: { + target: "0x0000000000000000", + data: "0x", + value: 0n, + }, + overrides: overrides, + }); + ``` + + + ## Common Errors ### Replacement underpriced: `"code":-32602,"message":"replacement underpriced","data"...` From a514cae28cf85234ef9838295ce970cba1c4788d Mon Sep 17 00:00:00 2001 From: Caleigh Crossman <73799021+caleighc@users.noreply.github.com> Date: Wed, 24 Sep 2025 10:46:00 -0400 Subject: [PATCH 2/2] Update docs/pages/resources/faqs.mdx Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> --- docs/pages/resources/faqs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/resources/faqs.mdx b/docs/pages/resources/faqs.mdx index 9eb9fd65e6..4a4db1637e 100644 --- a/docs/pages/resources/faqs.mdx +++ b/docs/pages/resources/faqs.mdx @@ -216,7 +216,7 @@ We recommend adding error handling when sending a UO to handle potential gas and ### How to Send User Operations without Gas Sponsorship? - Sponsoring gas for your users is optional. If you prefer for users’ smart accounts to pay gas themselves in the native token. + Sponsoring gas for your users is optional. If you prefer for users' smart accounts to pay gas themselves in the native token, you can use one of the following approaches. You can do this using one of two approaches: