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

# Adding Tron Extensions

> Add Tron blockchain support to your Dynamic client

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

## Installation

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

## Default Tron extension

If you wish to support Tron external wallets (via the TronWallet Adapter) and Dynamic embedded wallets,
you can add the default Tron extension to your client using the `addTronExtension` method.

```javascript theme={"system"}
import { createDynamicClient } from "@dynamic-labs-sdk/client";
import { addTronExtension } from "@dynamic-labs-sdk/tron";

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

addTronExtension();
```

This enables support for external wallets like TronLink, OKX Wallet, and TokenPocket (via TronWallet Adapter), as well as embedded wallets managed by Dynamic's infrastructure (via WaaS).

## Standalone Tron extensions

If you want to be more granular, you can add the standalone Tron extensions individually to your client.

### TronWallet Adapters extension

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

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

// this will add support for external Tron wallets via the TronWallet Adapter
addTronWalletAdaptersExtension();
```

### WaaS Tron extension

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

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

// this will add support for Dynamic embedded Tron wallets only
addWaasTronExtension();
```

Once the WaaS extension is registered, Tron embedded wallet accounts are created like any other chain's — see [creating WaaS wallet accounts](https://docs.dynamic.xyz/docs/javascript/reference/waas/creating-waas-wallet-accounts.md). Signed operations such as [sendTransaction](https://docs.dynamic.xyz/docs/javascript/reference/tron/send-transaction.md) work on the embedded Tron 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 { addTronWalletAdaptersExtension } from "@dynamic-labs-sdk/tron/walletAdapters";
import { addWaasTronExtension } from "@dynamic-labs-sdk/tron/waas";

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

addTronWalletAdaptersExtension();
addWaasTronExtension();
```

## Related functions

* [getTronWeb](https://docs.dynamic.xyz/docs/javascript/reference/tron/get-tron-web.md) - Get the TronWeb instance from a wallet account
* [sendTransaction](https://docs.dynamic.xyz/docs/javascript/reference/tron/send-transaction.md) - Send a Tron transaction
* [isTronWalletAccount](https://docs.dynamic.xyz/docs/javascript/reference/tron/checking-tron-wallet-account-type.md) - Check if a wallet account is a Tron account


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