# Delegate Account Setup

#### What is a Delegate? <a href="#why-use-delegates" id="why-use-delegates"></a>

A delegate is a separate key pair authorized to trade on behalf of your main account. Orders placed by a delegate are attributed to the delegator’s account — they share the same balances, positions, and margin.

#### Why Use Delegates? <a href="#why-use-delegates" id="why-use-delegates"></a>

* **Security:** your main wallet key stays in your wallet; the delegate key is the only secret you handle - if the delegate key is compromised, your main wallet remains untouched
* **Scoped access:** delegates can perform trade actions, but cannot deposit or withdraw
* **Visibility:** all trades made by delegates appear in the app UI under your main account
* **Revocable:** delegate access can be removed anytime by your main account

*In some real world cases, a user may want to use a delegate to:*

* *Trade remotely on mobile, without the fear of their main account being compromised*
* *Trade securely from a cold wallet account without having to constantly manually approve transactions*
* *Run a trading bot via our trading APIs, which requires a wallet that can sign transactions automatically*

#### Delegate Accounts Setup

1. Ensure you are connected. Understand the different login methods on Bullet [here](https://docs.bullet.xyz/bulletx-exchange/how-to-guide/bullet-account-setup).
2. On the top navigation bar, click for more options (three dots icon) and go to the `Delegate Accounts` page.
3. Input a `Delegate Wallet Name` for the delegate account.
4. Input a `Delegate Wallet Address`, which should be an ed25519 address. This can be achieved by clicking the `Generate` button, or by [generating one locally](https://tradingapi.bullet.xyz/docs/delegate-accounts.html#1-generate-a-keypair).
5. Click `Confirm Delegation` once you are happy with the `Delegate Wallet Address` and an `Authorize Delegate Wallet` modal should appear.&#x20;
6. After **ensuring that the private key of the delegate account has been saved**, click `Authorize` to delegate the wallet.
7. The new delegate should appear in the delegates table.

#### Using Delegate Accounts via Bullet Trading API

Read more [here](https://tradingapi.bullet.xyz/docs/delegate-accounts.html) to learn about how to trade with delegate accounts via our APIs.
