forked from alchemyplatform/aa-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: begin refactoring the light account docs sections
- Loading branch information
Showing
11 changed files
with
105 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
outline: deep | ||
head: | ||
- - meta | ||
- property: og:title | ||
content: Light Account • Deployment Addresses | ||
- - meta | ||
- name: description | ||
content: Deployment Addresses for Light Account | ||
- - meta | ||
- property: og:description | ||
content: Deployment Addresses for Light Account | ||
--- | ||
|
||
# [Deployment Addresses](https://github.com/alchemyplatform/light-account/blob/v1.1.0/Deployments.md) | ||
|
||
The following tables list the deployed factory and account implementation contract addresses for `LightAccount` on different chains: | ||
|
||
| Chain | Factory Address | Account Implementation | | ||
| ---------------- | ------------------------------------------ | ------------------------------------------ | | ||
| Eth Mainnet | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Eth Sepolia | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Eth Goerli | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Polygon Mainnet | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Polygon Mumbai | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Optimism | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Optimism Goerli | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Base | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Base Goerli | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Arbitrum | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Arbitrum Goerli | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | | ||
| Arbitrum Sepolia | 0x00004EC70002a32400f8ae005A26081065620D20 | 0xae8c656ad28F2B59a196AB61815C16A0AE1c3cba | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
outline: deep | ||
head: | ||
- - meta | ||
- property: og:title | ||
content: Light Account • Getting Started | ||
- - meta | ||
- name: description | ||
content: Follow this guide to use Light Account with Account Kit, a vertically integrated stack for building apps that support ERC-4337. | ||
- - meta | ||
- property: og:description | ||
content: Follow this guide to use Light Account with Account Kit, a vertically integrated stack for building apps that support ERC-4337. | ||
- - meta | ||
- name: twitter:title | ||
content: Light Account | ||
- - meta | ||
- name: twitter:description | ||
content: Follow this guide to use Light Account with Account Kit, a vertically integrated stack for building apps that support ERC-4337. | ||
--- | ||
|
||
# Getting started | ||
|
||
Getting started with Light Account is really simple! Simply create a `SmartAccountClient` and an instance of `LightAccount` and you're ready to go. | ||
|
||
## Import | ||
|
||
::: code-group | ||
|
||
```ts [aa-alchemy] | ||
import { createLightAccountAlchemyClient } from "@alchemy/aa-alchemy"; | ||
``` | ||
|
||
```ts [aa-core] | ||
import { createLightAccount } from "@alchemy/aa-accounts"; | ||
import { createSmartAccountClient } from "@alchemy/aa-core"; | ||
``` | ||
|
||
::: | ||
|
||
## Usage | ||
|
||
The code snippet below demonstrates how to use Light Account with Account Kit. It creates a Light Account and sends a `UserOperation` from it: | ||
::: code-group | ||
|
||
<<< @/snippets/aa-alchemy/light-account.ts [aa-alchemy] | ||
|
||
<<< @/snippets/aa-core/smartAccountClient.ts [aa-core] | ||
|
||
::: code-group |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters