|
| 1 | +--- |
| 2 | +title: Account Abstraction |
| 3 | +sidebar_label: Account Abstraction |
| 4 | +description: "@web3auth/react-native-sdk Native Account Abstraction | Documentation - Web3Auth" |
| 5 | +--- |
| 6 | + |
| 7 | +import TabItem from "@theme/TabItem"; |
| 8 | +import Tabs from "@theme/Tabs"; |
| 9 | +import AccountAbstractionDescription from "@site/src/common/sdk/pnp/web/_account-abstraction-description.mdx"; |
| 10 | +import AccountAbstractionProviderInstallation from "@site/src/common/sdk/pnp/web/_aa-provider-installation.mdx"; |
| 11 | +import AAProviderConfiguration from "@site/src/common/sdk/pnp/web/_aa-provider-configuration.mdx"; |
| 12 | +import ConfigureSmartAccountProvider from "@site/src/common/sdk/pnp/web/_smart-account-provider-configuration.mdx"; |
| 13 | +import ConfigureBundler from "@site/src/common/sdk/pnp/web/_bundler-configuration.mdx"; |
| 14 | +import ConfigureSponsoredPaymaster from "@site/src/common/sdk/pnp/web/_sponsored-paymaster-configuration.mdx"; |
| 15 | +import ConfigureERC20Paymaster from "@site/src/common/sdk/pnp/web/_erc20-paymaster-configuration.mdx"; |
| 16 | + |
| 17 | +import AARNBareSetup from "@site/src/common/sdk/pnp/react-native/_aa-rn-setup.mdx"; |
| 18 | +import AARNExpoSetup from "@site/src/common/sdk/pnp/react-native/_aa-rn-expo-setup.mdx"; |
| 19 | +import ConfigureSigners from "@site/src/common/sdk/pnp/web/_configure-aa-signers.mdx"; |
| 20 | +import SmartAccountAddress from "@site/src/common/sdk/pnp/web/_aa-address.mdx"; |
| 21 | +import SmartAccountSendTransaction from "@site/src/common/sdk/pnp/web/_aa-send-transaction.mdx"; |
| 22 | + |
| 23 | +import GrowthPlanNote from "@site/src/common/docs/_growth_plan_note.mdx"; |
| 24 | + |
| 25 | +<AccountAbstractionDescription /> |
| 26 | +<GrowthPlanNote /> |
| 27 | + |
| 28 | +## Installation |
| 29 | + |
| 30 | +<AccountAbstractionProviderInstallation /> |
| 31 | + |
| 32 | +## Configure |
| 33 | + |
| 34 | +<AAProviderConfiguration /> |
| 35 | + |
| 36 | +Please note this is the important step for setting the Web3Auth account abstraction provider. |
| 37 | + |
| 38 | +- [Configure Smart Account provider](#configure-smart-account-provider) |
| 39 | +- [Configure Bundler](#configure-bundler) |
| 40 | +- [Configure Sponsored Paymaster](#sponsored-paymaster) |
| 41 | +- [Configure ERC-20 Paymaster](#erc-20-paymaster) |
| 42 | + |
| 43 | +## Configure Smart Account Provider |
| 44 | + |
| 45 | +<ConfigureSmartAccountProvider /> |
| 46 | + |
| 47 | +## Configure Bundler |
| 48 | + |
| 49 | +<ConfigureBundler /> |
| 50 | + |
| 51 | +## Configure Paymaster |
| 52 | + |
| 53 | +You can configure the paymaster of your choice to sponsor gas fees for your users, along with the |
| 54 | +paymaster context. The paymaster context lets you set additional parameters, such as choosing the |
| 55 | +token for ERC-20 paymasters, defining gas policies, and more. |
| 56 | + |
| 57 | +### Sponsored Paymaster |
| 58 | + |
| 59 | +<ConfigureSponsoredPaymaster /> |
| 60 | + |
| 61 | +### ERC-20 Paymaster |
| 62 | + |
| 63 | +<ConfigureERC20Paymaster /> |
| 64 | + |
| 65 | +## Set up |
| 66 | + |
| 67 | +### Configure Web3Auth Instance |
| 68 | + |
| 69 | +<Tabs |
| 70 | + values={[ |
| 71 | + { label: "React Native Bare App", value: "rn-bare" }, |
| 72 | + { label: "React Native Expo App", value: "rn-expo" }, |
| 73 | + ]} |
| 74 | +> |
| 75 | +<TabItem value="rn-bare" default> |
| 76 | + |
| 77 | +<AARNBareSetup /> |
| 78 | + |
| 79 | +</TabItem> |
| 80 | +<TabItem value="rn-expo"> |
| 81 | + |
| 82 | +<AARNExpoSetup /> |
| 83 | + |
| 84 | +</TabItem> |
| 85 | +</Tabs> |
| 86 | + |
| 87 | +### Configure Signer |
| 88 | + |
| 89 | +<ConfigureSigners /> |
| 90 | + |
| 91 | +## Smart Account Address |
| 92 | + |
| 93 | +<SmartAccountAddress /> |
| 94 | + |
| 95 | +## Send Transaction |
| 96 | + |
| 97 | +<SmartAccountSendTransaction /> |
| 98 | + |
| 99 | +## Advanced Smart Account Operations |
| 100 | + |
| 101 | +To learn more about supported transaction methods, and how to perform batch transactions, |
| 102 | +[checkout our detailed documentation of AccountAbstractionProvider](/docs/sdk/pnp/web/providers/aa-provider/#send-batch-transaction). |
0 commit comments