[SEASON 2] Steemit Crypto Academy Week 13 Homework Post for @sapwood | Bandwidth & Energy [TRON]

in SteemitCryptoAcademy3 years ago (edited)

Hey Guys..!!

Meet again with me Wahyu Nahrul on the other Steemit Crypto Academy homework. Today I will be working on homework given by one of our professors @sapwood.

The homework given by our professor this week is about Bandwidth & Energy and Blockchain which will be the topic of discussion this time is TRON.

1_FUCknQadLywxnP-NIRYP-Q.png

SOURCE

Okay, just get to the discussion. Happy Reading !!

Pembatas Utama.png

Connecting My TronLink Wallet To Tronscan.org

The first thing I will explain is how we connect our TronLink Wallet to Tronscan.org. The method is very simple. This time I will give an example using the TronLink Pro application that you can download on your respective smartphones, let's follow the steps.

Step 1

Open your TronLink Wallet application then click on the "Discover" option at the bottom.

photo_2021-05-14_12-10-43.jpg

Pembatas Sub.png

Step 2

After that, choose the DApp from Tronscan as shown in the image below.

photo_2021-05-14_12-10-49.jpg

Pembatas Sub.png

Step 3

After that you will get a pop-up notification that our wallet will be linked to a third-party DApp, you don't have to be afraid and just select "Enter". This will often happen if this is the first time you connect with another DApp, so all you have to do is select "Enter" if a notification similar to another DApp comes out.

photo_2021-05-14_12-10-51.jpg

Pembatas Sub.png

Step 4

As soon as you enter the Tronscan page, your wallet will automatically connect to Tronscan.org, this is indicated by the appearance of a notification that looks like the one in the image below.

photo_2021-05-14_12-10-53.jpg

Pembatas Sub.png

Step 5

But if you have any doubts, then you can check it by selecting the 3 line icon.

photo_2021-05-14_12-10-59.jpg

Pembatas Sub.png

Step 6

After that, select the "WALLET" option, then you will be shown that your wallet is connected to Tronscan.org, and you can issue it by selecting the "Exit Wallet" button.

photo_2021-05-14_12-11-03.jpg

Pembatas Utama.png

Freeze TRX To Obtain Bandwidth

Next, I'll show you how to freeze your TRX to add bandwidth to your wallet. There are several ways that we can freeze our TRX to add bandwidth For example, we do it on the website from Tronscan, but I think the steps will be difficult for many people to understand, so I will show you an easier way to freeze TRX without having to connect TronLink Our wallet to another DApp. The trick is to just freeze it using the TronLink Pro application that we installed earlier.

Step 1

On the wallet home page, select the "Bandwidth" option.

photo_2021-05-14_12-11-06.jpg

Pembatas Sub.png

Step 2

Then you will be taken to another page, scroll down from the new page until you get the "Freeze" option. After that, fill in the amount of TRX that you want to freeze. Finally, click on the "Freeze" button.

photo_2021-05-14_12-11-10.jpg

Pembatas Sub.png

Step 3

A pop-up will appear asking you to confirm the process of freezing TRX. Select the "Confirm" button.

photo_2021-05-14_12-11-12.jpg

Pembatas Sub.png

Step 4

Then you will be asked to enter your wallet password.

photo_2021-05-14_12-11-16.jpg

Pembatas Sub.png

Step 5

And done !!
Your TRX token has been successfully frozen and you are given additional bandwidth.

photo_2021-05-14_12-11-19.jpg

Pembatas Sub.png

Step 6

To see if your bandwidth has been added, you can look at the display at the beginning of the page.

For example, like me, my initial bandwidth was 5,000 and after freezing, my Tron Bandwidth increased to 5,015.

Before
After

Pembatas Utama.png

Freeze TRX To Obtain Energy

In addition to increasing bandwidth, we also have to add energy to our wallets. The method is very easy because almost all of the steps are the same as we added the bandwidth earlier

Step 1

Don't leave from the "Freeze" page earlier, to add Energy you just have to select the "Energy" option at the top of the page. After that, it is the same as before, all you have to do is fill in the amount of TRX that will be frozen and press the "Freeze" button.

photo_2021-05-14_12-11-29.jpg

Pembatas Sub.png

Step 2

I don't explain the next step again, because the steps are exactly the same as when we added the bandwidth earlier. So I will immediately see whether my Energy has entered or not.

If you look at the 2 pictures below, it is shown that even the amount of my energy has increased from 0 to 299.

After
Before

Pembatas Utama.png

Types Of Transactions That Only Use Bandwidth and Use Both Bandwidth & Energy

In the Tron Blockchain, there are 2 types of transactions that are differentiated based on the consumption power needed to complete a transaction, the types that mean:

  • Only Consume Bandwidth
  • Consume Bandwidth and Energy

Transactions that are included in "Only Consume Bandwidth" are Ordinary Transfer-Transactions. This transfer is usually done to send TRX tokens to another wallet for various purposes such as: making trades, converting them to fiat currency, or even as gifts for other users. To do this ordinary transfer, it doesn't cost anything because the burden that is imposed is only Bandwidth and for each Tron wallet we will be given bandwidth as much as 5,000 per day and if it is reduced when used on that day, the Bandwidth will be replenished tomorrow.

1. Only Use Bandwidth (Ordinary Transfer)

This time I will show an example of an ordinary transfer that is in my Tron wallet. For an example that displays on the Tronscan website, I will use a laptop and immediately use the official Tronscan website to take a picture and open it through the DApp, this is because after I tried it on the DApp on my smartphone, there are some details from the website that are not visible so that later I will reduce the info that readers will receive because I want you to feel comfortable reading my articles :).

Okay, let's continue with the discussion.

Step 1

Visit the official website of Tronscan (you can visit it directly by clicking here). Then enter your TRON Public Key in the search field on the start page of the Tronscan website.

Screenshot_2.png

Pembatas Sub.png

Step 2

After that, you scroll down and you will be given several options that have been provided, choose the "Transfer" option as shown in the image below.

Screenshot_3.png

Pembatas Sub.png

Step 3

Then choose the option "TRX & TRC-10 Transfer", then you will be shown the entire list of ordinary transfers that have ever been on your Tron Wallet, here I will try to look at the transfers at the bottom of the image.

Screenshot_9.png

Pembatas Sub.png

Step 4

As you can see in the image below, the consumption fee that is charged is cheap, this transaction is a Tron reward that is sent to my wallet after I payout my posts on the Steemit platform.

Screenshot_10.png

This also proves that we don't have to worry that the TRX reward we get will have problems when it enters our wallet, because the bandwidth required for each transfer is very small and every day the Bandwidth will be filled automatically and of course it's FREE.

Pembatas Sub.png

2. Use Bandwidth and Energy (Trigger Smart Contracts)

The next type of transaction is "Consume Bandwidth and Energy". Transactions that fall into the category of this type of transaction are Trigger Smart Contracts, to complete this transaction we will need bandwidth and energy at once, and usually, the amount of bandwidth and energy that must be spent is large enough for each transaction so we have to burn some of our TRX assets to complete the transaction in exchange for the less Bandwidth and Energy.

This time I will also show an example of a Trigger Smart Contracts type transaction that is in my wallet, if you want to try it, please follow the steps below.

Step 1

Just like before, visit the official website page of Tronscan. Then input your TRON Public Key in the search field on the start page of the Tronscan website.

Screenshot_2.png

Pembatas Sub.png

Step 2

After that, you scroll down and you will be given several options that have been provided, choose the "Transfer" option as shown in the image below.

Screenshot_3.png

Pembatas Sub.png

Step 3

Then choose the option "TRC-20 & TRC-721 Transfer", then you will be shown the entire list of Smart Contract Triggers that have been on your Tron Wallet, here I will try to look at transfers that are in sequence number two from the top of the list.

Screenshot_4.png

Pembatas Sub.png

Step 4

As you can see in the image below, the consumption costs are Bandwidth and Energy, even I had to burn some of my TRX assets to replace insufficient energy costs.

Screenshot_7.png

This transaction is a transaction to make supplies in the JustLend DApp which I will explain in the next explanation later.

Pembatas Utama.png

Check How Much Bandwidth and Energy Is Consumed In a Particular Transaction

It is very easy to check how much Bandwidth and Energy you spend to make a transaction.

Step 1

Enter your TRON Public Key in the search field on the start page of the Tronscan website.

Screenshot_2.png

Pembatas Sub.png

Step 2

Scroll down and select the "Transfer" option as shown below.

Screenshot_3.png

Pembatas Sub.png

Step 3

Then select the option "TRC-20 & TRC-721 Transfer", and select the transaction you want to see the amount of bandwidth and energy that has been consumed. To select it, click on the "Hash" column which is the first column of the list.

Screenshot_4.png

Pembatas Sub.png

Step 4

You will be shown the details of the transactions that you have done. As in my example this time, I made a supply that exchanged my 5 TRX for 499,837 jTRX to be used on the JustLend DApp.

Bandwidth fees are 284 and the Energy spent is 80,377, because my Energy is not enough, my TRX 11.20966 is burned to cover the lack of Energy from my Tron Wallet.

Screenshot_5.png

Pembatas Utama.png

Avoid Burning TRX To Accommodate The Energy Required For Transactions

As you can see in my explanation above, that any transactions that occur on the Tron Blockchain use Bandwidth and Energy, and often times we are always short of Energy so we have to give up our TRX assets burned to cover the lack of Energy in our Tron Wallet. In fact, we will often encounter this when making transactions, especially transactions on the DApp, as in the picture below an example of a transaction that I did use the JustSwap DApp, at the bottom, it is given a notification that if you use a smart contract it will require Energy and if Energy if we have less, our TRX assets will be automatically stabilized.

photo_2021-05-14_12-11-45 (2).jpg

Personally, I think burning TRX will cost us users and we will definitely find a solution. Now the question is, is there a way to reduce the occurrence of TRX combustion due to a lack of Energy? the answer is YES.

1. Freeze TRX

The most effective way is to freeze our TRX assets which will be replaced with Energy, this is the best way if we don't want to experience large losses on every transaction we make on smart contracts, By freezing TRX we have an advantage where We will be able to withdraw the TRX that we have frozen in a minimum of 72 hours. So we will not feel the loss.

2. Rent Energy

Then another way is renting Energy from third parties, I don't really recommend this to those of you who don't use smart contracts too often when making transactions on the Tron Blockchain, because when renting we will give them some TRX so that it can be replaced with Energy, if I calculate it myself then you will suffer a loss if you can't use it to its full potential.

While your part is active in making transactions on smart contracts on the Tron Blockchain, then renting Energy is a good alternative for you, because usually, the energy borrowed is so much that it doesn't run out if you use it all day long.

Pembatas Utama.png

Example Of Swapping On JustSwap and Borrowing On JustLend

Next, I will show you how to Swap on JustSwap and borrow tokens on JustLend DApp.

1. JustSwap

Step 1

The first step is to enter the JutSwap DApp which is on the DApp list in the "Discover" option.

photo_2021-05-14_12-11-35.jpg

Pembatas Sub.png

Step 2

Choose "Select a token" to choose the token you want.

photo_2021-05-14_12-11-40.jpg

Pembatas Sub.png

Step 3

Next, look for the token you want in the search field and select it on the token icon.

photo_2021-05-14_12-11-41.jpg

Pembatas Sub.png

Step 4

After that, enter the number of tokens you want to have. Then click on the "Swap" button.

photo_2021-05-14_12-11-43 (2).jpg

Pembatas Sub.png

Step 5

A notification will appear to confirm your swap. Click on "Confirm Swap".

photo_2021-05-14_12-11-44.jpg

Pembatas Sub.png

Step 6

Another notification will appear which will tell you the details of the transaction that we have done, click on "Confirm" to continue.

photo_2021-05-14_12-11-45 (2).jpg

Pembatas Sub.png

Step 7

Click on the "Continue" button.

photo_2021-05-14_12-11-45.jpg

Pembatas Sub.png

Step 8

Enter your Wallet password to approve the transaction and the swap process can be carried out.

photo_2021-05-14_12-11-46.jpg

Pembatas Sub.png

Step 9

Done!!
Your swap process has been successful, the token you want has entered your Wallet.

photo_2021-05-14_12-11-57 (2).jpg

Pembatas Sub.png

2. JustLend

Next, I will explain how to lend to the JutLend DApp.

Step 1

The first step is to enter the JutLend DApp which is on the DApp list in the "Discover" option.

1.jpg

Pembatas Sub.png

Step 2

After that, you will be shown the initial display of the DApp which looks like the image below.

3.jpg

Pembatas Sub.png

Step 3

Before we can make a loan to JustLend, we have to "Supply" first, this is because to borrow a token from JustLend, we have to do a "Top Up" first by making a supply which later the token we will supply will become a token called "jTRX".

Since I have sufficient TRX, I will supply my TRX to JustLend by clicking on the "Supply" button.

4.jpg

Pembatas Sub.png

Step 4

After that, enter the amount of TRX we are going to supply and click on the "Supply" button.

5.jpg

Pembatas Sub.png

Step 5

After that, a notification will appear that the transaction from TRX that we supply is being processed.

6.jpg

Pembatas Sub.png

Step 6

After my TRX became jTRX, I immediately tried to borrow USDT tokens, but there was a problem where apparently the number of TRX tokens I supplied was not enough to borrow USDT, so I had to supply 10 TRX once again.

7.jpg

This can also be a lesson for friends to calculate in advance the number of tokens to be supplied so that there is no waste of transactions like I did so that it will use more bandwidth and energy consumption.

Pembatas Sub.png

Step 7

After the number of tokens supplied is sufficient, then don't forget to activate jTRX as Collateral which will be a lending tool for the tokens we want.

photo_2021-05-14_12-11-48.jpg

Pembatas Sub.png

Step 8

After that, choose the token that you want to borrow, here I will borrow 1 USDT of USDT tokens. Then click the "Borrow" button.

photo_2021-05-14_12-11-56.jpg

Pembatas Sub.png

Step 9

Fill in the number of tokens that you want to borrow, then click on the "Borrow" button.

photo_2021-05-14_12-11-57.jpg

Pembatas Sub.png

Step 10

A notification will appear that your transaction is being processed, just close the notification.

y.jpg

Pembatas Sub.png

Step 11

To check whether your transaction has been successful, just look at the number of tokens you borrowed in the wallet column, if it has increased then your transaction has been completed.

For example, my USDT has increased to 2 USDT, previously 1 USDT from the previous token swap on the JustSwap DApp.

z.jpg

Pembatas Sub.png

3. Comparison of Bandwidth and Energy Consumption, and Burnt TRX

After I swapped at JustSwap and borrowed tokens from JustLend, my Bandwidth and Energy were drained due to these two transactions. Now I will compare the costs required to make transactions on each of these DApp.

In the JustSwap DApp the costs incurred are as follows:

  • Consume Bandwidth: 350 Bandwidth.
  • Energy Consume: 55,377 Energy.
  • TRX Burns For Energy: 7.71092 TRX.

Screenshot_5.png

Meanwhile, the JustLend DApp costs are as follows:

  • Consume Bandwidth: 313 Bandwidth.
  • Energy Consume: 189,506 Energy.
  • TRX Burns For Energy: 26.5307 TRX.

Screenshot_6.png

For a more detailed comparison, you can see the table below.

Screenshot_2.png

Comparison Table

From the table above, it can be concluded that the transaction fees required for JustLend DApp are more "Expensive" than JustSwap, this is evidenced by the amount of energy required to make transactions on JustLend, even the costs required are more than 3 times that of JustSwap.

But this can happen because of the different types of transactions between token swaps on JustSwap and borrowing tokens on JustLend. The token swap process on JustSwap has a transaction type "Mint" while borrowing on JustLend is of type "Borrow". Each type of transaction that occurs on a smart contract has a different consumption, and the "Borrow" type has the highest level of energy consumption among the others.

Pembatas Utama.png

Identify An Ordinary Transfer & Smart-Contract-Operated Transfer

To identify the difference between Ordinary Transfer & Smart-Contract-Operated Transfer, we can see the transaction fees charged for each type of transaction.

1. Smart-Contract-Operated Transfer

Step 1

Enter your TRON Wallet address in the search field.

Screenshot_2.png

Pembatas Sub.png

Step 2

To see the details of the transfer we usually see it in the "Transfer" option, but this time I will teach you an easier way by using the "Transaction" option.

Screenshot_2.png

Pembatas Sub.png

Step 3

After you select the "Transaction" option, then the next thing is to choose the type of transaction that you can select in the "Transaction Type" column. After that, select the "Trigger Smart Contracts" option.

Screenshot_3.png

Pembatas Sub.png

Step 4

So the list of transactions shown is only the Trigger Smart Contracts type transaction, Simple!

After that, choose the transaction that you want to see, here I am taking the newest transaction option.

Screenshot_4.png

Pembatas Sub.png

Step 5

After that you will be shown the details of your transaction, in the image below it shows that transactions with the Trigger Smart Contracts type will be subject to Bandwidth, Energy, and TRX Burning fees.

Screenshot_5.png

Pembatas Sub.png

2. Ordinary Transfer

Step 1

Just like before, enter your TRON Wallet address in the search field on the start page of the Tronscan website. Then click on the "Transfer" option.

After that, select the option "TRX & TRC-10 Token" then all the history of your transfer will come out and choose the one you want. Here I choose the transfer history of my steem reward.

Screenshot_7.png

Pembatas Sub.png

Step 2

Transfer details show that the fees charged for ordinary transfers are only bandwidth, no energy costs, etc.

Screenshot_8.png

Pembatas Sub.png

From my explanation above, it can be concluded that the difference between Ordinary Transfer & Smart-Contract-Operated Transfer in the fees charged.

Where Ordinary Transfer only uses Bandwidth while Smart-Contract-Operated requires Bandwidth and Energy simultaneously.

Pembatas Utama.png

Last Word (Conclusion)

In my opinion, the TRON Blockchain comes with a very good latest breakthrough, where we can send our TRX assets only by using the Bandwidth which is given free every day so that we don't need any fees for the TRX transfer transaction process, this is very good where at the time now many other Blockchains are charging ridiculous and ridiculous transfer fees.

Also the DApp issued by the TRON Blockchain is already very good, we can see that the TRON Blockchain is serious about serving its users, it has made various DApp's that can help its users.

I apologize if there are still many mistakes that you can get when reading my explanation earlier, I would be very grateful if you told me in the comments column below.

Thank you for reading my blog, hope it will be useful for all of you. 😁

Pembatas Sub.png

Note: All unsourced images and tables were created by the author.

Pembatas Sub.png

Sort:  

Thank you for attending the lecture in Steemit-Crypto-Academy- Season 2 & doing the homework task-5.

Bandwidth fees are 284 and the Energy spent is 80,377, because my Energy is not enough, my TRX 11.20966 is burned to cover the lack of Energy from my Tron Wallet.

That's correct.

The token swap process on JustSwap has a transaction type "Mint"

No.

The mint function is relevant to JustLend where you supply an asset to mint jTokens.

and the "Borrow" type has the highest level of energy consumption among the others.

That's correct.

Suggestions/Feedback

  • The author has produced real transactions to demonstrate Bandwidth & Energy.
  • The author has included all the screenshots relevant to this Task. He has also made a nice compartive analysis of resource consumption(Borrow & Swap function).

Thank you.


Homework Task -5 accomplished.
[9]

Thank you for the review and correction professor 😁

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 62104.41
ETH 2404.22
USDT 1.00
SBD 2.49