diff --git a/content/docs.yml b/content/docs.yml index 7850609c4..f4bd9e6b7 100644 --- a/content/docs.yml +++ b/content/docs.yml @@ -1649,6 +1649,23 @@ navigation: path: wallets/pages/transactions/send-batch-transactions/index.mdx - page: Parallel transactions path: wallets/pages/transactions/send-parallel-transactions/index.mdx + - section: Sponsor gas + path: wallets/pages/transactions/sponsor-gas/overview.mdx + contents: + - page: Gas sponsorship quickstart + path: wallets/pages/transactions/sponsor-gas/index.mdx + - page: Create sponsorship policies + path: wallets/pages/transactions/sponsor-gas/sponsorship-policy-management.mdx + - page: Sponsorship policy rules + path: wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx + - page: Monitor sponsorship usage + path: wallets/pages/transactions/sponsor-gas/monitor-sponsorship-usage.mdx + - page: Bundler Sponsored Operations + path: wallets/pages/transactions/sponsor-gas/bundler-sponsored-operations.mdx + - page: Pay gas with any token (ERC-20) + path: wallets/pages/transactions/pay-gas-with-any-token/index.mdx + - page: Solana sponsorship + path: wallets/pages/transactions/sponsor-gas/solana/index.mdx - section: Debug transactions path: wallets/pages/transactions/debug-transactions/index.mdx contents: @@ -1659,25 +1676,6 @@ navigation: contents: - page: Undelegate 7702 account path: wallets/pages/transactions/undelegate-account/index.mdx - - section: Sponsor gas - path: wallets/pages/transactions/sponsor-gas/overview.mdx - contents: - - page: Full sponsorship - path: wallets/pages/transactions/sponsor-gas/index.mdx - - page: Conditional sponsorship rules - path: wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx - - page: Pay gas with any token - path: wallets/pages/transactions/pay-gas-with-any-token/index.mdx - - page: Solana sponsorship - path: wallets/pages/transactions/sponsor-gas/solana/index.mdx - - page: Bundler Sponsored Operations - path: wallets/pages/transactions/sponsor-gas/bundler-sponsored-operations.mdx - - section: Swap tokens - contents: - - page: Same-chain swaps - path: wallets/pages/transactions/swap-tokens/index.mdx - - page: Cross-chain swaps - path: wallets/pages/transactions/cross-chain-swap-tokens/index.mdx - section: Grant session keys contents: - page: Overview diff --git a/content/tutorials/smart-wallets/gas-manager-apis/setup-a-gas-manager-policy.mdx b/content/tutorials/smart-wallets/gas-manager-apis/setup-a-gas-manager-policy.mdx index 7bb92df34..defacc89d 100644 --- a/content/tutorials/smart-wallets/gas-manager-apis/setup-a-gas-manager-policy.mdx +++ b/content/tutorials/smart-wallets/gas-manager-apis/setup-a-gas-manager-policy.mdx @@ -15,6 +15,10 @@ An example of spending rules is included in the screenshot below: Creating a gas policy through Alchemy Dashboard + + For a walkthrough of creating and managing policies in the Gas Sponsorship dashboard, see [here](/docs/wallets/transactions/sponsor-gas/sponsorship-policy-management). + + ### Video Tutorial Prefer a video guide? Watch the video below for a step-by-step walkthrough, or follow the written tutorial. @@ -35,7 +39,7 @@ Start by [creating a new application](https://dashboard.alchemy.com/signup) or u ## Step 2: Draft a New Policy -Log in and navigate to the "Gas Policies" section and click the [create a policy](https://dashboard.alchemy.com/gas-policies/new) button. +Log in and navigate to the "Gas Policies" section and click the [create a policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) button. ![Create Policy](https://alchemyapi-res.cloudinary.com/image/upload/v1764180249/docs/tutorials/smart-wallets/gas-manager-apis/aa17e8c-Screenshot_2023-05-23_at_3.39.26_PM.png) diff --git a/content/wallets/pages/authentication/login-methods/sms-login.mdx b/content/wallets/pages/authentication/login-methods/sms-login.mdx index 5a8b29ee4..b4683e702 100644 --- a/content/wallets/pages/authentication/login-methods/sms-login.mdx +++ b/content/wallets/pages/authentication/login-methods/sms-login.mdx @@ -29,7 +29,7 @@ Pricing varies by country and requires specific area codes to be enabled for you ## Prerequisites * Early access to SMS auth configured on your account: [Request early access!](mailto:wallets@alchemy.com) -* A configured app with [smart wallets](/docs/wallets/pages/react/quickstart.mdx) and a [gas sponsorship policy](https://dashboard.alchemy.com/gas-manager/policy/create). +* A configured app with [smart wallets](/docs/wallets/pages/react/quickstart.mdx) and a [gas sponsorship policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). * SDK version ≥v4.53.0 ## Implementation diff --git a/content/wallets/pages/concepts/smart-account-client.mdx b/content/wallets/pages/concepts/smart-account-client.mdx index e18dbe76d..1c7a01e86 100644 --- a/content/wallets/pages/concepts/smart-account-client.mdx +++ b/content/wallets/pages/concepts/smart-account-client.mdx @@ -13,7 +13,7 @@ The `SmartWalletClient` extends viem's [Client](https://viem.sh/docs/clients/cus ## Prerequisites * [API key](https://dashboard.alchemy.com/apps) -* (Optional) [A gas policyID](https://dashboard.alchemy.com/gas-manager/policy/create) +* (Optional) [A gas policyID](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) * `@alchemy/wallet-apis` and `viem` installed (see the [quickstart](/docs/wallets/quickstart)) ## Implementation @@ -24,7 +24,7 @@ The `SmartWalletClient` extends viem's [Client](https://viem.sh/docs/clients/cus 1. Replace the placeholders: * API key from your [Alchemy dashboard](https://dashboard.alchemy.com/apps) - * Policy ID from your [gas policy](https://dashboard.alchemy.com/gas-manager/policy/create) + * Policy ID from your [gas policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) * Signer from [authentication](/docs/wallets/authentication/login-methods/email-otp#step-4-check-authentication-status) or your own signer 2. Create the client using `createSmartWalletClient` — the client defaults to EIP-7702 using the signer's address diff --git a/content/wallets/pages/core/quickstart.mdx b/content/wallets/pages/core/quickstart.mdx index 471b66c4f..5b2544e27 100644 --- a/content/wallets/pages/core/quickstart.mdx +++ b/content/wallets/pages/core/quickstart.mdx @@ -38,7 +38,7 @@ your client. 2. Create a **`configuration`** in the [`Wallet APIs` dashboard](https://dashboard.alchemy.com/services/smart-wallets/configuration) to enable login methods. -3. Create a policy in your [gas manager dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) to set rules for sponsorship. +3. Create a policy in the [Gas Sponsorship dashboard](/docs/wallets/transactions/sponsor-gas/sponsorship-policy-management) to set rules for sponsorship. If your setup allows, store both the policy and API key in a `.env` so you can use them in the following steps. Otherwise you can hold onto them for the next section where you will make use of them! diff --git a/content/wallets/pages/gas-manager-admin-api/gas-manager-errors.mdx b/content/wallets/pages/gas-manager-admin-api/gas-manager-errors.mdx index 86e74f2f8..bdd58334c 100644 --- a/content/wallets/pages/gas-manager-admin-api/gas-manager-errors.mdx +++ b/content/wallets/pages/gas-manager-admin-api/gas-manager-errors.mdx @@ -15,7 +15,7 @@ Gas manager policies can only be tied to one app. To resolve this issue ensure: ### This userOp's cost will put the team over their MAX token limit for this network. -This userOp will cause you to exceed your sponsorship limit. Increase your limit by buying gas credits in USD through the [Gas Manager Dashboard](https://dashboard.alchemy.com/gas-manager). +This userOp will cause you to exceed your sponsorship limit. Increase your limit by buying gas credits in USD through the [Gas Manager Dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). ### Policy's max spend per spender exceeded. diff --git a/content/wallets/pages/gas-manager-admin-api/gas-manager-faqs.mdx b/content/wallets/pages/gas-manager-admin-api/gas-manager-faqs.mdx index e1a1d423c..491b034df 100644 --- a/content/wallets/pages/gas-manager-admin-api/gas-manager-faqs.mdx +++ b/content/wallets/pages/gas-manager-admin-api/gas-manager-faqs.mdx @@ -11,7 +11,7 @@ slug: wallets/reference/gas-manager-faqs ### How much gas can I sponsor? Sponsor as much gas as you want. Gas is fronted up to a base limit based on your tier, and added to your monthly bill. Note that both gas sponsorship and ERC-20 gas payments contribute towards your limit. -If you need more gas, boost your limits by buying gas manager credits in USD via the [Gas Manager Dashboard](https://dashboard.alchemy.com/gas-manager). This is a one time purchase that is applied to your bill at the end of the month and rolls over until it is used up. +If you need more gas, boost your limits by buying gas manager credits in USD via the [Gas Manager Dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). This is a one time purchase that is applied to your bill at the end of the month and rolls over until it is used up. | Tier | Mainnet Base Limit | Testnet Limit | Team Policy Creation Limit | | ---------- | --------------------------------------- | -------------------------- | -------------------------- | @@ -45,7 +45,7 @@ The ERC-20 Gas Manager supports any token supported by the [Token Prices By Addr ### Supported ERC-20 tokens -You can browse and enable the tokens below in the **Tokens & Networks** panel of the [Gas Manager Dashboard](https://dashboard.alchemy.com/gas-manager). +You can browse and enable the tokens below in the **Tokens & Networks** panel of the [Gas Manager Dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). **Need a token or network that isn't listed?** Contact us at diff --git a/content/wallets/pages/guide-template.mdx b/content/wallets/pages/guide-template.mdx index 10ef377f3..9394318da 100644 --- a/content/wallets/pages/guide-template.mdx +++ b/content/wallets/pages/guide-template.mdx @@ -31,7 +31,7 @@ Example: * API key from your [dashboard](https://dashboard.alchemy.com/apps) * [Wallet APIs installed and configured in your project](/docs/wallets/pages/react/setup.mdx). -* [A "pay gas with any token" policy](https://dashboard.alchemy.com/gas-manager/policy/create). +* [A "pay gas with any token" policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). ## Implementation diff --git a/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/basic-gas-sponsorship.mdx b/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/basic-gas-sponsorship.mdx index 2059ca2eb..5609c36fb 100644 --- a/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/basic-gas-sponsorship.mdx +++ b/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/basic-gas-sponsorship.mdx @@ -58,7 +58,7 @@ A gas manager policy defines which transactions (userOps) are eligible for gas s To learn more about policy configuration, refer to the guide on [setting up a gas manager policy](/docs/setup-a-gas-manager-policy). -Once you have decided on policy rules for your app, create a policy in the [Gas Manager dashboard](https://dashboard.alchemy.com/gas-manager/policy/create/?a=api-docs). +Once you have decided on policy rules for your app, create a policy in the [Gas Manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). Now you should have a Gas policy created with a policy id you can use to sponsor gas for your users. diff --git a/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/conditional-gas-sponsorship.mdx b/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/conditional-gas-sponsorship.mdx index 3a94a5767..84b0e7c60 100644 --- a/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/conditional-gas-sponsorship.mdx +++ b/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/conditional-gas-sponsorship.mdx @@ -50,7 +50,7 @@ A gas manager policy defines which transactions (userOps) are eligible for gas s * **URL**: the webhook URL the Gas Manager will make a POST request to every time you request gas sponsorship * **Sponsor on error or timeout**: when selected, the userOp will be sponsored in the event of an error or timeout. -Create a policy via the [Gas Manager dashboard](https://dashboard.alchemy.com/gas-manager/policy/create/?a=api-docs) or the [Create policy API](https://www.alchemy.com/docs/wallets/api/gas-manager-admin-api/admin-api-endpoints/create-policy). +Create a policy via the [Gas Manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) or the [Create policy API](https://www.alchemy.com/docs/wallets/api/gas-manager-admin-api/admin-api-endpoints/create-policy). ### 3. Get Gas Manager's signature diff --git a/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/pay-gas-with-any-erc20-token.mdx b/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/pay-gas-with-any-erc20-token.mdx index ca9b4aff9..736d857e8 100644 --- a/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/pay-gas-with-any-erc20-token.mdx +++ b/content/wallets/pages/low-level-infra/gas-manager/gas-sponsorship/using-sdk/pay-gas-with-any-erc20-token.mdx @@ -32,7 +32,7 @@ If you want to use APIs directly, follow these steps. ### 2. Create a Gas Manager policy -To enable your users to pay gas using an ERC-20 token, you need to create a “Pay gas with any token” Policy via the [Gas Manager dashboard](https://dashboard.alchemy.com/gas-manager/policy/create). You can customize the policy with the following: +To enable your users to pay gas using an ERC-20 token, you need to create a “Pay gas with any token” Policy via the [Gas Manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). You can customize the policy with the following: * Receiving address: an address of your choosing where the users' ERC20 tokens will be sent to as they pay for gas (this is orchestrated by the paymaster contract and happens automatically at the time of the transaction). * Tokens: the tokens the user should be able to pay gas with. Learn more [here](/docs/reference/gas-manager-faqs). diff --git a/content/wallets/pages/react/getting-started/quickstart-content.mdx b/content/wallets/pages/react/getting-started/quickstart-content.mdx index b9bd31890..9a3869619 100644 --- a/content/wallets/pages/react/getting-started/quickstart-content.mdx +++ b/content/wallets/pages/react/getting-started/quickstart-content.mdx @@ -21,7 +21,7 @@ NEXT_PUBLIC_ALCHEMY_API_KEY=YOUR_ALCHEMY_API_KEY NEXT_PUBLIC_ALCHEMY_POLICY_ID=YOUR_PAYMASTER_POLICY_ID ``` -Remember: you must create a [`Configuration`](https://dashboard.alchemy.com/services/smart-wallets/configuration) and a [`Paymaster Policy`](https://dashboard.alchemy.com/services/gas-manager/configuration) if you want to use Wallet APIs. +Remember: you must create a [`Configuration`](https://dashboard.alchemy.com/services/smart-wallets/configuration) and a [`Paymaster Policy`](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) if you want to use Wallet APIs. Both the `Configuration` and the `Policy ID` must be linked to the application diff --git a/content/wallets/pages/react/getting-started/setup.mdx b/content/wallets/pages/react/getting-started/setup.mdx index b6357ab6f..fd7b5989f 100644 --- a/content/wallets/pages/react/getting-started/setup.mdx +++ b/content/wallets/pages/react/getting-started/setup.mdx @@ -10,7 +10,7 @@ To use Wallet APIs, you need to: 2. Create a **`configuration`** in the [`Wallet APIs` dashboard](https://dashboard.alchemy.com/services/smart-wallets/configuration) to enable login methods. -3. Create a policy in your [gas manager dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) to set rules for sponsorship. +3. Create a policy in your [gas manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) to set rules for sponsorship. Create a `.env` at root of your project: diff --git a/content/wallets/pages/react/solana-wallets/get-started.mdx b/content/wallets/pages/react/solana-wallets/get-started.mdx index a1f468741..f07d6bd4a 100644 --- a/content/wallets/pages/react/solana-wallets/get-started.mdx +++ b/content/wallets/pages/react/solana-wallets/get-started.mdx @@ -95,7 +95,7 @@ createConfig({ commitment: "confirmed", } ), - policyId: "" // Optional - gas/rent sponsorship policy ID: https://dashboard.alchemy.com/gas-manager + policyId: "" // Optional - gas/rent sponsorship policy ID: https://dashboard.alchemy.com/apps/latest/gas-sponsorship } } ``` diff --git a/content/wallets/pages/recipes/programmatic-wallet-creation.mdx b/content/wallets/pages/recipes/programmatic-wallet-creation.mdx index 227c65c61..75e3f3b83 100644 --- a/content/wallets/pages/recipes/programmatic-wallet-creation.mdx +++ b/content/wallets/pages/recipes/programmatic-wallet-creation.mdx @@ -30,7 +30,7 @@ This recipe shows how to programmatically create a smart wallet: you’ll genera ```bash # Get your app API key: https://dashboard.alchemy.com/apps ALCHEMY_API_KEY=YOUR_API_KEY - # Get your gas sponsorship policy ID: https://dashboard.alchemy.com/services/gas-manager/configuration + # Get your gas sponsorship policy ID: https://dashboard.alchemy.com/apps/latest/gas-sponsorship ALCHEMY_POLICY_ID=YOUR_POLICY_ID # Generate a secure access key for server wallet authentication - see step 3 below ACCESS_KEY=your-secure-access-key-here diff --git a/content/wallets/pages/shared/create-gas-policy.mdx b/content/wallets/pages/shared/create-gas-policy.mdx index d03bf0de0..aeed25075 100644 --- a/content/wallets/pages/shared/create-gas-policy.mdx +++ b/content/wallets/pages/shared/create-gas-policy.mdx @@ -7,7 +7,7 @@ A gas manager policy is a set of rules that define which transactions are eligib To learn more about policy configuration, refer to the guide on [setting up a gas manager policy](https://alchemy.com/docs/setup-a-gas-manager-policy/?a=ak-docs). -Once you have decided on policy rules for your app, [create a policy](https://dashboard.alchemy.com/gas-manager/policy/create/?a=ak-docs) in the Gas Manager dashboard. +Once you have decided on policy rules for your app, [create a policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) in the Gas Manager dashboard. You should now have a gas policy created with a policy id you can use to sponsor gas for your users. diff --git a/content/wallets/pages/signer/authentication/server-wallets.mdx b/content/wallets/pages/signer/authentication/server-wallets.mdx index 432f83004..2b6d54a98 100644 --- a/content/wallets/pages/signer/authentication/server-wallets.mdx +++ b/content/wallets/pages/signer/authentication/server-wallets.mdx @@ -142,7 +142,7 @@ console.log("Transaction sent:", id); ## Solana support -Server wallets also work on Solana. To start sending sponsored transactions on Solana, set up a Solana sponsor gas policy in the [dashboard](https://dashboard.alchemy.com/gas-manager) and follow the guide below. +Server wallets also work on Solana. To start sending sponsored transactions on Solana, set up a Solana sponsor gas policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and follow the guide below. diff --git a/content/wallets/pages/signer/solana-wallets/solana-signer-package.mdx b/content/wallets/pages/signer/solana-wallets/solana-signer-package.mdx index 52ece2f3c..2fd31a762 100644 --- a/content/wallets/pages/signer/solana-wallets/solana-signer-package.mdx +++ b/content/wallets/pages/signer/solana-wallets/solana-signer-package.mdx @@ -92,7 +92,7 @@ await connection.sendTransaction(signedTransaction); To sponsor transaction fees on Solana: -1. Set up your [sponsorship policy](https://dashboard.alchemy.com/services/gas-manager/configuration) in the dashboard to retrieve a **policy ID** +1. Set up your [sponsorship policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) in the dashboard to retrieve a **policy ID** 2. Add sponsorship to the prepared transaction before signing and sending ```ts sponsored-solana-transaction-signer.tsx @@ -115,7 +115,7 @@ async function signTransaction( const transaction = await signer.addSponsorship( instructions, connection, - "", // Replace with your solana sponsorship policy ID: https://dashboard.alchemy.com/services/gas-manager/configuration + "", // Replace with your solana sponsorship policy ID: https://dashboard.alchemy.com/apps/latest/gas-sponsorship ); // Sign the transaction using the Solana wallet diff --git a/content/wallets/pages/smart-wallets/quickstart/index.mdx b/content/wallets/pages/smart-wallets/quickstart/index.mdx index b8eda389c..069d477bf 100644 --- a/content/wallets/pages/smart-wallets/quickstart/index.mdx +++ b/content/wallets/pages/smart-wallets/quickstart/index.mdx @@ -12,7 +12,7 @@ To use this guide, you'll need: * An account you can sign with (e.g. an [authentication provider](/docs/wallets/signer/what-is-a-signer#alchemy-signer) or an EOA) * An API key — [create an app](https://dashboard.alchemy.com/apps) to get one -* A [gas manager policy ID](https://dashboard.alchemy.com/gas-manager/policy/create) if sponsoring gas +* A [gas manager policy ID](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) if sponsoring gas Start using the Wallets API today! [Get started for diff --git a/content/wallets/pages/third-party/signers/openfort.mdx b/content/wallets/pages/third-party/signers/openfort.mdx index 6c799905d..983778b30 100644 --- a/content/wallets/pages/third-party/signers/openfort.mdx +++ b/content/wallets/pages/third-party/signers/openfort.mdx @@ -43,7 +43,7 @@ Upgrade existing Openfort embedded wallets to Wallet APIs to enable gasless tran * Go to the [Alchemy Dashboard](https://dashboard.alchemy.com/) * Create or select an app and copy the API key * Gas sponsorship Policy ID (Gas Manager): - * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) and copy its Policy ID + * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and copy its Policy ID * Openfort Publishable Key: * Go to the [Openfort Dashboard](https://dashboard.openfort.xyz/) * Create or select a project and copy the Publishable Key @@ -220,7 +220,7 @@ Upgrade existing Openfort embedded wallets to Wallet APIs to enable gasless tran * Go to the [Alchemy Dashboard](https://dashboard.alchemy.com/) * Create or select an app and copy the API key * Gas sponsorship Policy ID (Gas Manager): - * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) and copy its Policy ID + * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and copy its Policy ID * Openfort Publishable Key: * Go to the [Openfort Dashboard](https://dashboard.openfort.xyz/) * Create or select a project and copy the Publishable Key diff --git a/content/wallets/pages/third-party/signers/privy.mdx b/content/wallets/pages/third-party/signers/privy.mdx index 3b83fd5c3..9636945f7 100644 --- a/content/wallets/pages/third-party/signers/privy.mdx +++ b/content/wallets/pages/third-party/signers/privy.mdx @@ -45,7 +45,7 @@ Upgrade existing Privy wallets to Wallet APIs to enable gasless transactions, ba * Go to the [Alchemy Dashboard](https://dashboard.alchemy.com/) * Create or select an app and copy the API key * Gas sponsorship Policy ID (Gas Manager): - * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) and copy its Policy ID + * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and copy its Policy ID * Privy App ID: * Go to the [Privy Dashboard](https://dashboard.privy.io/) * Create or select an app and copy the App ID @@ -346,7 +346,7 @@ Upgrade existing Privy wallets to Wallet APIs to enable gasless transactions, ba * Go to the [Alchemy Dashboard](https://dashboard.alchemy.com/) * Create or select an app and copy the API key * Gas sponsorship Policy ID (Gas Manager): - * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) and copy its Policy ID + * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and copy its Policy ID * Privy App ID & Secret: * Go to the [Privy Dashboard](https://dashboard.privy.io/) * Create or select an app and copy the App ID and App Secret diff --git a/content/wallets/pages/third-party/signers/turnkey.mdx b/content/wallets/pages/third-party/signers/turnkey.mdx index 9b4360111..fa0492367 100644 --- a/content/wallets/pages/third-party/signers/turnkey.mdx +++ b/content/wallets/pages/third-party/signers/turnkey.mdx @@ -43,7 +43,7 @@ Upgrade existing Turnkey wallets to Wallet APIs to enable gasless transactions, * Go to the [Alchemy Dashboard](https://dashboard.alchemy.com/) * Create or select an app and copy the API key * Gas sponsorship Policy ID (Gas Manager): - * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) and copy its Policy ID + * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and copy its Policy ID * Turnkey Organization ID & Auth Proxy Config ID: * Go to the [Turnkey Dashboard](https://app.turnkey.com/) * Create or select an organization and copy the Organization ID @@ -229,7 +229,7 @@ Upgrade existing Turnkey wallets to Wallet APIs to enable gasless transactions, * Go to the [Alchemy Dashboard](https://dashboard.alchemy.com/) * Create or select an app and copy the API key * Gas sponsorship Policy ID (Gas Manager): - * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration) and copy its Policy ID + * Create a gas sponsorship policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and copy its Policy ID * Turnkey Credentials: * Go to the [Turnkey Dashboard](https://app.turnkey.com/) * Create or select an organization and copy the Organization ID diff --git a/content/wallets/pages/transactions/cross-chain-swap-tokens/client.mdx b/content/wallets/pages/transactions/cross-chain-swap-tokens/client.mdx index 3b45a4f3a..0abc9f5d7 100644 --- a/content/wallets/pages/transactions/cross-chain-swap-tokens/client.mdx +++ b/content/wallets/pages/transactions/cross-chain-swap-tokens/client.mdx @@ -6,7 +6,7 @@ You'll need the following env variables: * `ALCHEMY_API_KEY`: An [Alchemy API key](https://dashboard.alchemy.com/apps) -* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy ID +* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy ID * `PRIVATE_KEY`: A private key for a signer diff --git a/content/wallets/pages/transactions/cross-chain-swap-tokens/index.mdx b/content/wallets/pages/transactions/cross-chain-swap-tokens/index.mdx index db60ea51a..a4df65612 100644 --- a/content/wallets/pages/transactions/cross-chain-swap-tokens/index.mdx +++ b/content/wallets/pages/transactions/cross-chain-swap-tokens/index.mdx @@ -50,7 +50,7 @@ When requesting a cross-chain swap quote, you can specify either a `fromAmount` Before you begin, ensure you have: * An [Alchemy API key](https://dashboard.alchemy.com/apps) -* If you're sponsoring gas, then a [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy +* If you're sponsoring gas, then a [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy * A small amount of tokens for testing (~$1 worth is enough!) * **Important**: You'll need to send these tokens to your smart wallet address to be able to swap! * A signer to own the account and sign messages diff --git a/content/wallets/pages/transactions/debug-transactions/index.mdx b/content/wallets/pages/transactions/debug-transactions/index.mdx index 118413f60..4df4fba2c 100644 --- a/content/wallets/pages/transactions/debug-transactions/index.mdx +++ b/content/wallets/pages/transactions/debug-transactions/index.mdx @@ -107,7 +107,7 @@ Clicking the button sends the error context to an AI model that analyzes the fai - Gas sponsorship was rejected by the gas manager policy. Verify that your [gas policy](https://dashboard.alchemy.com/gas-manager) is active, has sufficient balance, and that the transaction meets your sponsorship rules. + Gas sponsorship was rejected by the gas manager policy. Verify that your [gas policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) is active, has sufficient balance, and that the transaction meets your sponsorship rules. diff --git a/content/wallets/pages/transactions/pay-gas-with-any-token/index.mdx b/content/wallets/pages/transactions/pay-gas-with-any-token/index.mdx index dd7fc1f48..68a7baf46 100644 --- a/content/wallets/pages/transactions/pay-gas-with-any-token/index.mdx +++ b/content/wallets/pages/transactions/pay-gas-with-any-token/index.mdx @@ -17,7 +17,7 @@ Post-operation mode is recommended for most use cases. If the token approval is ## Prerequisites * API key from your [dashboard](https://dashboard.alchemy.com/apps) -* [A "pay gas with any token" policy](https://dashboard.alchemy.com/gas-manager/policy/create). +* An [ERC-20 Policy](/docs/wallets/transactions/sponsor-gas/sponsorship-policy-management) in the Gas Sponsorship dashboard. ## Implementation diff --git a/content/wallets/pages/transactions/retry-transactions/client.mdx b/content/wallets/pages/transactions/retry-transactions/client.mdx index 198dc9317..a493a53ae 100644 --- a/content/wallets/pages/transactions/retry-transactions/client.mdx +++ b/content/wallets/pages/transactions/retry-transactions/client.mdx @@ -3,7 +3,7 @@ When re-sending calls without a `nonceOverride`, the client automatically uses t You'll need the following env variables: * `ALCHEMY_API_KEY`: An [Alchemy API key](https://dashboard.alchemy.com/apps) -* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy ID +* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy ID * `PRIVATE_KEY`: A private key for a signer diff --git a/content/wallets/pages/transactions/retry-transactions/index.mdx b/content/wallets/pages/transactions/retry-transactions/index.mdx index 986d6a0c8..b4955e80c 100644 --- a/content/wallets/pages/transactions/retry-transactions/index.mdx +++ b/content/wallets/pages/transactions/retry-transactions/index.mdx @@ -32,7 +32,7 @@ Key use cases: ## Prerequisites * An [Alchemy API key](https://dashboard.alchemy.com/apps) -* A [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy +* A [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy * A signer to own the account and sign messages diff --git a/content/wallets/pages/transactions/send-parallel-transactions/client.mdx b/content/wallets/pages/transactions/send-parallel-transactions/client.mdx index cfc5caba8..0b0a2a0ca 100644 --- a/content/wallets/pages/transactions/send-parallel-transactions/client.mdx +++ b/content/wallets/pages/transactions/send-parallel-transactions/client.mdx @@ -3,7 +3,7 @@ Use the `nonceOverride` capability on the smart wallet client's [`sendCalls`](/d You'll need the following env variables: * `ALCHEMY_API_KEY`: An [Alchemy API key](https://dashboard.alchemy.com/apps) -* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy ID +* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy ID * `PRIVATE_KEY`: A private key for a signer diff --git a/content/wallets/pages/transactions/send-parallel-transactions/index.mdx b/content/wallets/pages/transactions/send-parallel-transactions/index.mdx index 3e266b6e9..6d86ae9d6 100644 --- a/content/wallets/pages/transactions/send-parallel-transactions/index.mdx +++ b/content/wallets/pages/transactions/send-parallel-transactions/index.mdx @@ -9,7 +9,7 @@ This guide explains how to send multiple parallel transactions. Note that you do ## Prerequisites * An [Alchemy API key](https://dashboard.alchemy.com/apps) -* A [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy +* A [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy * A signer to own the account and sign messages The `nonceKey` override must fit into a `uint152`! diff --git a/content/wallets/pages/transactions/solana/sponsor-gas-solana.mdx b/content/wallets/pages/transactions/solana/sponsor-gas-solana.mdx index 5574fc2c4..59d152535 100644 --- a/content/wallets/pages/transactions/solana/sponsor-gas-solana.mdx +++ b/content/wallets/pages/transactions/solana/sponsor-gas-solana.mdx @@ -23,7 +23,7 @@ When you request sponsorship for a transaction using a configured policy, the po * API key from your [dashboard](https://dashboard.alchemy.com/apps) * Wallet APIs for Solana [set up](/docs/wallets/react/solana-wallets/get-started) in your project if you want to enable sign up/login for creation of wallets -* A sponsorship policy to cover fees and/or rent: [create a policy](https://dashboard.alchemy.com/gas-manager/policy/create/) +* A sponsorship policy to cover fees and/or rent: [create a policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) ## Implementation diff --git a/content/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx b/content/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx index bdcefb6ee..4951c58e2 100644 --- a/content/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx +++ b/content/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx @@ -1,10 +1,10 @@ --- -title: Conditional sponsorship rules +title: Policy rules description: Control gas sponsorship with spend limits and custom rules slug: wallets/transactions/sponsor-gas/conditional-sponsorship-rules --- -Conditional sponsorship gives you precise control over what transactions get sponsored. +Gas sponsorship policies allow you to set limits, allowlist, and custom rules to give you precise control over what transactions get sponsored. Use it to: @@ -16,25 +16,42 @@ Use it to: You can configure the same policy logic in two ways: -1. **Dashboard**: Create or edit a Gas Manager policy in the [dashboard](https://dashboard.alchemy.com/gas-manager/policy/create) +1. **Dashboard**: Create or edit a Gas Manager policy in the [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) 2. **Admin API**: Create or update policies programmatically with the [Gas Manager Admin API](/docs/wallets/api-reference/gas-manager-admin-api/admin-api-endpoints/get-policy) Most teams start in the dashboard, then move to API-based management for automation. -## Built-in policy limits +## Policy limits and rules -Use built-in limits when you want fast setup without maintaining backend logic. +These limits are ideal for growth campaigns, onboarding credits, and controlled rollouts. -You can combine these controls in one policy: +Basic spending and access limits are supported out of the box and you can combine multiple controls in one policy. The types of supported rules depend on the policy type. -* **Time-bounded policies**: Only sponsor during a specific start/end window -* **Per-user spend limits**: Cap sponsorship spend per wallet/user -* **Per-transaction spend limits**: Cap sponsorship per transaction -* **Global max spend**: Set a hard maximum spend for the full policy -* **Max transactions per user**: Limit number of sponsored transactions per user -* **Sender allowlist / blocklist**: Explicitly allow or deny sponsorship for selected senders + + Both EVM policy types support the same rules. -These limits are ideal for growth campaigns, onboarding credits, and controlled rollouts. + * **Spending limits** — cap total spend, spend per sender, and spend per transaction. Use these to control cost exposure. + * **Transaction limits** — cap total count and count per sender. Use these to limit how many transactions a policy sponsors. + * **Access control** — set a sender allowlist or blocklist to restrict which addresses the policy sponsors. + * **Custom rules** — add a webhook URL so your server can approve or reject sponsorship in real time, and choose whether to sponsor on webhook error or timeout. See [custom rules](/docs/wallets/transactions/sponsor-gas/conditional-sponsorship-rules#custom-rules-with-webhooks). + + + + * **Spending limits** — cap total spend and spend per transaction. + * **Transaction limits** — cap total count. + + See [Solana sponsorship](/docs/wallets/transactions/sponsor-gas/solana) for the Solana-specific request options. + + + + ERC-20 policies configure which tokens to accept and how users pay, instead of spend and access controls. In the editor, networks for an ERC-20 policy come from the tokens you enable: turn on a token for a chain to sponsor that chain. There is no separate network selector on the editor. + + ![Policy editor for an ERC-20 policy showing the Tokens, Transfer mode, and Settings tabs](https://alchemyapi-res.cloudinary.com/image/upload/v1786381902/docs/aa-sdk/images/wallets/erc20-editor.png) + + * **Tokens** — choose which ERC-20 tokens to accept on which chains, and set a price multiplier to add a margin over the token's gas value. + * **Transfer mode** — choose whether the user pays the token after the transaction executes (recommended) or before. After is recommended because it doesn't require an onchain allowance ahead of the transaction. See [pay gas with any token](/docs/wallets/transactions/pay-gas-with-any-token). + * **Settings** — set the recipient address that receives the tokens. + ## Custom rules with webhooks @@ -104,17 +121,6 @@ In the Admin API, this configuration is represented as: } ``` -## Recommended setup pattern - -For most teams, the best approach is: - -1. Start with built-in limits for immediate spend protection -2. Add webhook rules for business-specific checks -3. Decide your failure mode (`approveOnFailure`) based on risk tolerance: - * Prefer uptime: set to `true` - * Prefer strict control: set to `false` - ## Next steps -* [Full sponsorship implementation](/docs/wallets/transactions/sponsor-gas) -* [Gas Manager Admin API endpoints](/docs/wallets/api-reference/gas-manager-admin-api/admin-api-endpoints/get-policy) +* [Gas sponsorship quickstart](/docs/wallets/transactions/sponsor-gas) diff --git a/content/wallets/pages/transactions/sponsor-gas/index.mdx b/content/wallets/pages/transactions/sponsor-gas/index.mdx index f86018b6a..076b1ec0b 100644 --- a/content/wallets/pages/transactions/sponsor-gas/index.mdx +++ b/content/wallets/pages/transactions/sponsor-gas/index.mdx @@ -15,7 +15,7 @@ and bills in fiat. ## Prerequisites * API key from your [dashboard](https://dashboard.alchemy.com/apps) -* [A gas sponsorship policy](https://dashboard.alchemy.com/gas-manager/policy/create). +* [A gas sponsorship policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). ## Implementation diff --git a/content/wallets/pages/transactions/sponsor-gas/monitor-sponsorship-usage.mdx b/content/wallets/pages/transactions/sponsor-gas/monitor-sponsorship-usage.mdx new file mode 100644 index 000000000..62dad1338 --- /dev/null +++ b/content/wallets/pages/transactions/sponsor-gas/monitor-sponsorship-usage.mdx @@ -0,0 +1,41 @@ +--- +title: Monitor usage +description: Track gas sponsorship spend and understand your sponsorship limit +slug: wallets/transactions/sponsor-gas/monitor-usage +--- + +## Your sponsorship limit + +To sponsor gas, you need funds available: [add funds](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) in the dashboard to set your sponsorship limit. Your limit at any time is your base limit (if any) plus unused funds. + +* **Enterprise** plans get a pre-agreed base limit included. You can sponsor beyond it by adding more funds. +* **PAYG** plans must add funds to start sponsoring. + +Billing admins get an email alert at 50%, 75%, 90%, and 100% of your sponsorship limit. + +## What the Usage tab shows + +Open the **Usage** tab in the [Gas Sponsorship dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) to see current usage including: + +* **This month** — spend accrued in the current billing period +* **Unpaid prior** — unpaid spend carried over from previous periods. This counts against your limit until paid. +* **Pending** — sponsorships already signed but not yet mined onchain. These count against your limit as soon as they're signed. + +Usage resets to zero once your bill is paid at the end of the month. + +You can also see: + +* A daily spend breakdown +* Lifetime usage per policy + +## More detailed usage + +* Use [Get Policy Stats](/docs/wallets/api-reference/gas-manager-admin-api/admin-api-endpoints/get-policy-stats) for a more detailed usage breakdown. +* Use [Get Sponsorships](/docs/wallets/api-reference/gas-manager-admin-api/admin-api-endpoints/get-sponsorships) for a paginated history per policy including individual transaction spend. + +## Next steps + +* [Gas sponsorship quickstart](/docs/wallets/transactions/sponsor-gas) +* [Create a policy](/docs/wallets/transactions/sponsor-gas/sponsorship-policy-management) — set up a policy before you can sponsor gas +* [Policy rules](/docs/wallets/transactions/sponsor-gas/conditional-sponsorship-rules) — spend limits and custom rules +* [Gas Manager API](/docs/wallets/low-level-infra/gas-manager/policy-management/api-endpoints) — manage policies programmatically diff --git a/content/wallets/pages/transactions/sponsor-gas/overview.mdx b/content/wallets/pages/transactions/sponsor-gas/overview.mdx index 90cbfbfd4..e95e2497a 100644 --- a/content/wallets/pages/transactions/sponsor-gas/overview.mdx +++ b/content/wallets/pages/transactions/sponsor-gas/overview.mdx @@ -10,7 +10,7 @@ Gas fees are a significant barrier to entry for new users. With gas sponsorship, Start sponsoring gas in minutes: -1. **Create a policy** in your [dashboard](https://dashboard.alchemy.com/apps/latest/services/gas-manager/configuration) and configure sponsorship rules +1. **Create a policy** in your [dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) and configure sponsorship rules 2. **Send sponsored transactions** using your policy ID No need to manage crypto or pre-fund accounts. Gas is fronted for your transactions and you pay the equivalent USD amount. @@ -20,6 +20,13 @@ Get started with the [gas sponsorship guide](/docs/wallets/transactions/sponsor- ## Sponsorship options + + Create and manage gas sponsorship policies in the dashboard + + + Select the app you want to sponsor gas for. Policies are app-scoped and can only be applied to a single app. + + + See [Policy types](#policy-types) below. **Gas Sponsorship / BSO** is recommended for most apps. + + ![Create policy dialog showing the policy type picker](https://alchemyapi-res.cloudinary.com/image/upload/v1786381902/docs/aa-sdk/images/wallets/create-policy-type-picker.png) + + + Enable the chains you want to sponsor gas on. + + Chains must already be enabled on the app. Sponsoring gas on mainnet requires a PAYG or Enterprise plan; Solana sponsorship requires Enterprise. Testnets are available on every plan. + + + ![Create policy dialog showing chain selection](https://alchemyapi-res.cloudinary.com/image/upload/v1786381905/docs/aa-sdk/images/wallets/create-policy-select-chains.png) + + For ERC-20 policies, networks come from the tokens you enable instead — see [pay gas with any token](/docs/wallets/transactions/pay-gas-with-any-token). + + + Copy your **Policy ID** and pass it to your SDK or API calls to start [sending sponsored transactions](/docs/wallets/transactions/sponsor-gas). + + + +## Policy types + +| Policy type | Best for | +| --- | --- | +| **Gas Sponsorship** (recommended) | Sponsoring gas across EVM chains (ERC-4337 + ERC-7702 compatible). Powered by [Bundler Sponsored Operations (BSO)](/docs/wallets/transactions/sponsor-gas/bundler-sponsored-operations) for faster confirmations and automatic retries. | +| **Onchain Paymaster** | Sponsoring gas with an onchain paymaster contract on EVM chains (standard ERC-4337 paymaster). | +| **Solana Fee Sponsorship** | Sponsoring transaction fees for your users on Solana. Requires an Enterprise plan. | +| **ERC-20** | Letting users pay gas with any ERC-20 token, such as USDC or USDT, instead of you sponsoring it. See [pay gas with any token](/docs/wallets/transactions/pay-gas-with-any-token). | + +## Configure rules + +Rules control who and what a policy sponsors: spend caps, transaction limits, allowlists, and webhook-based approval. See all supported rules [here](/docs/wallets/transactions/sponsor-gas/conditional-sponsorship-rules). + +Edit rules from the policy dashboard or by using the [Gas Manager API](/docs/wallets/low-level-infra/gas-manager/policy-management/api-endpoints). + +A policy only sponsors transactions while it's **Active**. Toggle status from the dashboard to activate, deactivate, or check whether it's expired. + +## Next steps + +* [Sponsor gas](/docs/wallets/transactions/sponsor-gas) — sponsor gas for smart wallet transactions +* [Support sponsorship policy rules](/docs/wallets/transactions/sponsor-gas/conditional-sponsorship-rules) — webhooks and access controls +* [Pay gas with any token](/docs/wallets/transactions/pay-gas-with-any-token) — ERC-20 gas payments +* [Solana sponsorship](/docs/wallets/transactions/sponsor-gas/solana) — sponsor fees on Solana +* [Gas Manager API](/docs/wallets/low-level-infra/gas-manager/policy-management/api-endpoints) — manage policies programmatically diff --git a/content/wallets/pages/transactions/swap-tokens/client.mdx b/content/wallets/pages/transactions/swap-tokens/client.mdx index a1aff1af9..aec505bff 100644 --- a/content/wallets/pages/transactions/swap-tokens/client.mdx +++ b/content/wallets/pages/transactions/swap-tokens/client.mdx @@ -1,7 +1,7 @@ You need the following environment variables: * `ALCHEMY_API_KEY`: An [API key](https://dashboard.alchemy.com/apps) -* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy ID +* `ALCHEMY_POLICY_ID`: A [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy ID * `PRIVATE_KEY`: A private key for an owner diff --git a/content/wallets/pages/transactions/swap-tokens/index.mdx b/content/wallets/pages/transactions/swap-tokens/index.mdx index 8f2bb6f91..6a5ba1b29 100644 --- a/content/wallets/pages/transactions/swap-tokens/index.mdx +++ b/content/wallets/pages/transactions/swap-tokens/index.mdx @@ -49,7 +49,7 @@ import { parseUnits } from "viem"; Before you begin, ensure you have: * An [API key](https://dashboard.alchemy.com/apps) -* If you're sponsoring gas, a [Gas Manager](https://dashboard.alchemy.com/gas-manager/policy/create) policy +* If you're sponsoring gas, a [Gas Manager](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) policy * A small amount of USDC for testing (~$1 worth is enough) * **Important**: Send these tokens to your smart wallet address before swapping. * An owner to sign messages diff --git a/content/wallets/shared/create-gas-policy.mdx b/content/wallets/shared/create-gas-policy.mdx index c4803fd8e..838cc4560 100644 --- a/content/wallets/shared/create-gas-policy.mdx +++ b/content/wallets/shared/create-gas-policy.mdx @@ -7,7 +7,7 @@ A gas manager policy is a set of rules that define which transactions are eligib To learn more about policy configuration, refer to the guide on [setting up a gas manager policy](https://alchemy.com/docs/setup-a-gas-manager-policy/?a=ak-docs). -Once you have decided on policy rules for your app, [create a policy](https://dashboard.alchemy.com/gas-manager/policy/create/?a=ak-docs) in the Gas Manager dashboard. +Once you have decided on policy rules for your app, [create a policy](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) in the Gas Manager dashboard. You should now have a gas policy created with a policy ID you can use to sponsor gas. diff --git a/content/wallets/shared/setup-smart-account-client/smart-account-client-details.mdx b/content/wallets/shared/setup-smart-account-client/smart-account-client-details.mdx index 5366ba3ac..390f93351 100644 --- a/content/wallets/shared/setup-smart-account-client/smart-account-client-details.mdx +++ b/content/wallets/shared/setup-smart-account-client/smart-account-client-details.mdx @@ -26,7 +26,7 @@ Customize your client by specifying additional parameters to change account type To improve transaction UX, sponsor gas for your users. -* **`policyId`** (string) - [Gas Manager Policy ID](https://dashboard.alchemy.com/gas-manager/policy/create/?a=ak-docs) that enables gas sponsorship within policy limits +* **`policyId`** (string) - [Gas Manager Policy ID](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) that enables gas sponsorship within policy limits See the [full guide](/docs/wallets/transactions/sponsor-gas) for gas sponsorship. @@ -36,7 +36,7 @@ See the [full guide](/docs/wallets/transactions/sponsor-gas) for gas sponsorship | Usage | Parameter | Type | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Smart wallet implementation | `type` | One of `"ModularAccountV2"`, `"LightAccount"`, `"MultiOwnerLightAccount"`, `"MultiOwnerModularAccount"` | - | Sponsor gas for users. Get your policy ID from the [Gas Manager dashboard](https://dashboard.alchemy.com/gas-manager) | `policyId` | `string` | + | Sponsor gas for users. Get your policy ID from the [Gas Manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship) | `policyId` | `string` | | Simulate user operations before sending (i.e. use [`alchemyUserOperationSimulator`](https://github.com/alchemyplatform/aa-sdk/blob/v4.x.x/account-kit/infra/src/middleware/userOperationSimulator.ts)) | `useSimulation` | `boolean` | | Custom middleware to run before requesting sponsorship | `customMiddleware` | `ClientMiddlewareFn` | | Override fee estimation middleware (if you are using the Wallet APIs RPCs, use the default [`alchemyFeeEstimator`](https://github.com/alchemyplatform/aa-sdk/blob/v4.x.x/account-kit/infra/src/middleware/feeEstimator.ts)) | `feeEstimator` | `ClientMiddlewareFn` | diff --git a/content/wallets/shared/sponsor-gas-erc20-create-policy.mdx b/content/wallets/shared/sponsor-gas-erc20-create-policy.mdx index ef4757d37..05b3921ef 100644 --- a/content/wallets/shared/sponsor-gas-erc20-create-policy.mdx +++ b/content/wallets/shared/sponsor-gas-erc20-create-policy.mdx @@ -1,4 +1,4 @@ -To enable paying gas using an ERC-20 token, create a "Pay gas with any token" policy via the [Gas Manager dashboard](https://dashboard.alchemy.com/gas-manager/policy/create). Customize the policy with the following: +To enable paying gas using an ERC-20 token, create a "Pay gas with any token" policy via the [Gas Manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). Customize the policy with the following: * Receiving address: **you must specify** an address you own where the ERC-20 tokens are sent as gas is paid. The token transfer to this address is orchestrated by the gas sponsorship contract and happens automatically at transaction time. * Tokens: **you must select** which tokens to accept for gas payment. Learn more [here](https://www.alchemy.com/docs/reference/gas-manager-faqs). diff --git a/content/wallets/wallet-integrations/privy/react-migration.mdx b/content/wallets/wallet-integrations/privy/react-migration.mdx index 86ec61d9a..0c1a8ff02 100644 --- a/content/wallets/wallet-integrations/privy/react-migration.mdx +++ b/content/wallets/wallet-integrations/privy/react-migration.mdx @@ -15,7 +15,7 @@ After completing this migration, users will log in with Privy (wallet addresses ## Prerequisites * **Alchemy API Key** — From the [Alchemy Dashboard](https://dashboard.alchemy.com/). Must be the same app that has your Smart Wallets configuration and gas policy linked. -* **Gas Sponsorship Policy ID** — From the [Gas Manager dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration). +* **Gas Sponsorship Policy ID** — From the [Gas Manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). * A React app currently using Alchemy Account Kit (`@account-kit/react`). ## Overview diff --git a/content/wallets/wallet-integrations/privy/signer-migration-overview.mdx b/content/wallets/wallet-integrations/privy/signer-migration-overview.mdx index 3b2f0a53d..a592b6fc9 100644 --- a/content/wallets/wallet-integrations/privy/signer-migration-overview.mdx +++ b/content/wallets/wallet-integrations/privy/signer-migration-overview.mdx @@ -42,7 +42,7 @@ Before starting, confirm your setup and have the following ready: * Confirm your **account type**. Modular Account v2 (MAv2) is the default; Light Account and MAv1 are also supported. Pass the matching `accountType` value when calling `requestAccount` — see the [supported account types](/docs/wallets/transactions/using-eip-7702#supported-account-types) table for the full list. * Pick the **migration guide** that matches — React by default, JWT if you authenticate with JSON Web Tokens. * **Alchemy API key** — From the [Alchemy Dashboard](https://dashboard.alchemy.com/). Use the same app that has your Smart Wallets configuration and Gas Manager policy linked. -* **Gas Manager policy ID** — From the [Gas Manager dashboard](https://dashboard.alchemy.com/services/gas-manager/configuration). Must be linked to the app above. +* **Gas Manager policy ID** — From the [Gas Manager dashboard](https://dashboard.alchemy.com/apps/latest/gas-sponsorship). Must be linked to the app above. * **Privy account and app** — Create an app in the [Privy Dashboard](https://dashboard.privy.io/). Enable the same auth methods your Alchemy users originally signed up with. ## Edge cases