> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ana.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Accounts and permissions

> The two kinds of wallet Anafi serves, and the permission each one grants.

Anafi serves two kinds of account. The kind decides how the owner grants the permission and how the owner revokes it.

| Kind | Wallet | The permission | Revoke |
| - | - | - | - |
| `safe_module` | A [Safe](https://safe.global) smart account | The Anafi module, enabled in the Safe | `disableModule` from the Safe |
| `erc20_allow` | A regular wallet address | An ERC-20 allowance for each token the rule spends | `approve(adapter, 0)`, or pause |

## Safe accounts

A user with no Safe gets a deterministic 1-of-1 Safe. The SDK predicts its address with `predictSafe(owner)`, and Anafi can deploy it for free.

Every change to a Safe is one transaction that the owner signs. When the account has a sponsor, Anafi pays the gas.

## ERC-20 accounts

The account is the connected address itself. The owner approves each token that the rule spends, and can set a spend cap per token and period. Each owner transaction is a plain transaction from the owner's wallet.

## Find the accounts of a user

`GET /api/accounts/discover?eoa=0x…` lists the accounts that an address can use. The list is a suggestion. Each action on an account still needs a signature from that account's owner.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.