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

# Adding Aleo Extensions

> Add Aleo blockchain support to your Dynamic client

Make sure you enable Aleo chain in the [Dynamic Console](https://console.dynamic.xyz/dashboard/chains-and-networks#aleo).

## Installation

```bash theme={"system"}
npm install @dynamic-labs-sdk/aleo
```

## Standalone Aleo extensions

Aleo has no default extension, so you add the standalone extensions individually to your client. Add at least one external-wallet extension (Wallet Standard or Wallet Adapters) and, optionally, the WaaS extension for embedded wallets.

### Aleo Wallet Standard extension

```javascript theme={"system"}
import { createDynamicClient } from "@dynamic-labs-sdk/client";
import { addAleoWalletStandardExtension } from "@dynamic-labs-sdk/aleo/walletStandard";

const dynamicClient = createDynamicClient({
  environmentId: "YOUR_ENVIRONMENT_ID",
});

// this will add support for external Aleo wallets implementing the Aleo Wallet Standard
addAleoWalletStandardExtension();
```

### Aleo Wallet Adapters extension

```javascript theme={"system"}
import { createDynamicClient } from "@dynamic-labs-sdk/client";
import { addAleoWalletAdaptersExtension } from "@dynamic-labs-sdk/aleo/walletAdapters";

const dynamicClient = createDynamicClient({
  environmentId: "YOUR_ENVIRONMENT_ID",
});

// this will add support for external Aleo wallets using the adapter API, such as Shield
addAleoWalletAdaptersExtension();
```

The extension registers each supported adapter wallet once it reports itself as installed. A wallet whose browser extension loads after the SDK is still picked up: adapters that are not installed yet at registration time are added when their ready state changes.

### WaaS Aleo extension

```javascript theme={"system"}
import { createDynamicClient } from "@dynamic-labs-sdk/client";
import { addWaasAleoExtension } from "@dynamic-labs-sdk/aleo/waas";

const dynamicClient = createDynamicClient({
  environmentId: "YOUR_ENVIRONMENT_ID",
});

// this will add support for Dynamic embedded Aleo wallets only
addWaasAleoExtension();
```

Once the WaaS extension is registered, Aleo embedded wallet accounts are created like any other chain's — see [creating WaaS wallet accounts](https://www.dynamic.xyz/docs/javascript/reference/waas/creating-waas-wallet-accounts.md). Signed operations work on the embedded Aleo account the same way they do on an external one.

## Combining extensions

You can combine as many extensions as you want to support all the wallets you want to support.

```javascript theme={"system"}
import { createDynamicClient } from "@dynamic-labs-sdk/client";
import { addAleoWalletAdaptersExtension } from "@dynamic-labs-sdk/aleo/walletAdapters";
import { addAleoWalletStandardExtension } from "@dynamic-labs-sdk/aleo/walletStandard";
import { addWaasAleoExtension } from "@dynamic-labs-sdk/aleo/waas";

const dynamicClient = createDynamicClient({
  environmentId: "YOUR_ENVIRONMENT_ID",
});

addAleoWalletStandardExtension();
addAleoWalletAdaptersExtension();
addWaasAleoExtension();
```


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