> For the complete documentation index, see [llms.txt](https://xai-foundation.gitbook.io/xai-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xai-foundation.gitbook.io/xai-network/xai-gaming-dev-resources/build-with-thirdweb/account-abstraction.md).

# Account Abstraction

Everything you need to build ERC-4337 Smart Wallets for your users.

{% embed url="<https://portal.thirdweb.com/wallets/smart-wallet?utm_source=xai-network&utm_medium=documentation&utm_campaign=chain-docs>" %}

#### Features

thirdweb's smart wallets have the following features by default:

* The ability to have multiple owners on the same wallet.
* Give access to scoped session keys with restrictions.
* Execute transactions (single and batched).
* Send and receive native tokens to and from the smart wallet.
* Send and receive [ERC-721](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) and [ERC-1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) NFTs from the smart wallet.
* Store contract metadata.
* Pay for its own gas via a [paymaster](https://portal.thirdweb.com/wallets/smart-wallet/how-it-works?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs#paymaster).
* Assign roles and permissions such as signers and admins.
* Upgrade functionality over time when using the dynamic and managed factories.

And more!

Smart Wallets can be deployed via the [explore page](https://thirdweb.com/explore?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) or customized to each application's needs using the [Solidity SDK](https://portal.thirdweb.com/contracts/build/overview?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs).

The SmartWallet API is composable - you can use it with your own [ERC 4337](https://eips.ethereum.org/EIPS/eip-4337) compatible factory contract and you can also use your own bundler or paymaster services.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://xai-foundation.gitbook.io/xai-network/xai-gaming-dev-resources/build-with-thirdweb/account-abstraction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
