# Get a container for your dapp · Chromia Docs (concept)

> In this topic, you'll go through the steps of getting a container for your dapp.

Source: https://docs.chromia.com/build/deployment/mainnet/get-container/

# Get a container for your dapp

On this page

* [Prerequisites](#prerequisites)
* [Step 1: Create a Chromia account](#step-1-create-a-chromia-account)
* [Step 2: Lease container space](#step-2-lease-container-space)

In this topic, you'll go through the steps of getting a container for your dapp.

## Prerequisites

Before you begin, ensure you have the following:

* [Chromia CLI](https://docs.chromia.com/get-started/installation/)
* [Project config file](https://docs.chromia.com/build/configuration/project-config/) (`chromia.yml`)
* [Generate your key pair](https://docs.chromia.com/build/cli/commands/keygen/) - You'll need your public key to lease a container and deploy your
  dapp. See the [keygen command](https://docs.chromia.com/build/cli/commands/keygen/) for instructions on generating key pairs and the
  [key pair management guide](https://docs.chromia.com/build/cli/key-pair-management/) for configuration details.

## Step 1: Create a Chromia account

When you lease a container, you must pay the network in native CHR tokens. These fees are collected into a resource pool
and distributed to network providers and stakeholders. You need a Chromia account with CHR tokens to pay for the
container lease.

To create a Chromia account, you must deposit CHR from either BNB Smart Chain or Ethereum Mainnet to the Chromia Economy
Chain:

1. **Prepare your wallet**: Ensure you have at least 10 CHR tokens on either BNB Smart Chain or Ethereum Mainnet in a
   compatible wallet (e.g., MetaMask).
2. **Visit the Chromia Vault**: Go to <https://vault.chromia.com/en/deposit>.
3. **Connect your wallet**: Connect your EVM-compatible wallet to the Vault interface.
4. **Select your source network**: Choose either BNB Smart Chain or Ethereum Mainnet as your source network.
5. **Deposit CHR**: Follow the deposit process to transfer CHR from your chosen network to the Chromia Economy Chain.
6. **Account activation**: Your Chromia account will be created and activated automatically during the deposit process.

Next, you use the Chromia account to lease a container for your dapp.

## Step 2: Lease container space

Chromia checks your account for any ongoing leases. If you don't have any existing lease, it asks you to lease a new
container.

1. On the [Container lease](https://vault.chromia.com/en/containers/) page, click the **Lease a container** button.
2. Select your container cluster.
3. Next, you configure and lease container space by entering your [public key](https://docs.chromia.com/build/cli/commands/keygen/), adjusting for
   [SCUs, storage, and duration](https://docs.chromia.com/get-started/about/hosting/). You can also enable auto-renewal for the lease.
4. Once you accept the total price for the given configuration, click **Lease**. A payment is initiated for the given
   amount. Then, you are allocated the container lease.

   Once the process is complete, note down your Container ID, which will be used in the
   [deployment](https://docs.chromia.com/build/deployment/mainnet/deploy-dapp/) process.

note

If the container lease process fails for some reason, a refund is initiated for the same amount.

[View this page on docs.chromia.com](https://docs.chromia.com/build/deployment/mainnet/get-container/)Content mirrored from the live docs
