# How to buy energy/bandwidth?

{% stepper %}
{% step %}

### Go to the [market](https://tronpower.gitbook.io/docs/for-buyers/www.tronpower.xyz/market) page

{% endstep %}

{% step %}

### Connect your wallet

* Click "Select Wallet" on the header bar
* Choose your preferred wallet

<figure><img src="/files/sv7uoGzWZdqCud5pbc8d" alt=""><figcaption><p>Click select wallet button the header bar<br></p></figcaption></figure>

<figure><img src="/files/jM9s63DgLrptcGlaHUG8" alt="" width="287"><figcaption><p>Select your preferred wallet</p></figcaption></figure>
{% endstep %}

{% step %}

### Sign message (if not previously done)

<figure><img src="/files/SXgaLPyQkq50PT2i17ya" alt="" width="224"><figcaption><p>Secure Sign in to Tronpower.xyz</p></figcaption></figure>

{% hint style="info" %}
Signing a message is slightly different from signing a transaction. It does not cost  gas / money /&#x20;

We do this to verify that you are the owner of the wallet and in return , it give your browser a security credential that ensures that only you are sending instructions to our servers. This is the same as how websites work when you login with an email.
{% endhint %}
{% endstep %}

{% step %}

### Fill in the Buy Energy/Bandwidth form

* Choose **"Energy" or "Bandwidth"** on the switch button
* Enter your **target address** ( it should automatically fill in your connected wallet address)\ <sup>You can customize the target address except smart contract addresses</sup>
* Enter **Price**
* Choose **Duration**\
  You can click on  the input area with the time and clock icon to get a menu of duration options

<figure><img src="/files/1zeG0dSNW2nd0RVFetV3" alt="" width="241"><figcaption><p>Duration Menu</p></figcaption></figure>

{% hint style="info" %}
You may also set  [Advanced Settings](/docs/for-buyers/how-to-buy-energy-bandwidth/advanced-settings.md) to set the following

-Partial Fill

-Minimum amount filled by seller per transaction

-Instant Buy ( Fill or Kill)
{% endhint %}
{% endstep %}

{% step %}

### Confirm the order

* **Check that you meet the minimum requirements** for "amount" and "price" , there is a variable pricing mechanism that sets a minimum price depending on the amount and duration of energy rental.
* **Click the "Buy Button"**

<figure><img src="/files/VPq6QCKuX6wQfsU6YEXj" alt="" width="365"><figcaption><p>Confirm the order</p></figcaption></figure>
{% endstep %}

{% step %}

### Sign the transaction

<figure><img src="/files/mRjuVu1Hfo4eHjv6dkZ3" alt="" width="368"><figcaption><p>Sign the transaction to start processing the order</p></figcaption></figure>
{% endstep %}

{% step %}

### Wait for transaction to be confirmed

TRON transactions will be confirmed roughly 1 minute after being signed and broadcast to the network. The system will then fill your order if energy/bandwidth is available. You will be able to see your order in the history section\
\
![](/files/HPgYQeJsgXel28Inn7H9)\
\
If you did not set "Instant Buy" in advanced settings (disabled by default) and there is insufficient resources available at the time of processing , your order will be shown on the "Sell Order" section where anyone can manually sell energy/bandwidth to fill your order.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
**Why do you need to wait for 1 minute for the buy order to be processed?**

We implemented high levels of security standards similar to Centralized Exchanges (CEX) like Binance to wait for block confirmation , which is 1 minute on TRON. This means that your transaction is final on blockchain and can never be changed. This prevents double-spend attacks on our system ensuring your funds are secure to be used to pay to energy providers\
\
If a dApp doesnt wait for the transaction to confirm , a known exploit called a "double-spend" attack can lead to draining the dApps wallet.  For an energy market like us, it means energy sellers might not get paid and buyers will end up not getting the resources.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tronpower.gitbook.io/docs/for-buyers/how-to-buy-energy-bandwidth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
