Crypto Academy Week 13 | Homework Post for @sapwood | Bandwidth & Energy (Tron)

in hive-108451 •  3 years ago 

Hello everyone, hello Prof.@sapwood, it is my pleasure attending your class this week. I have learned a lot and here is the output of knowledge I acquired from your lectures.

For this homework task, i created a new wallet in my TronLink Wallet and attached here with is the new wallet address THjmNBbfPCJfkhyQNUQ8sihqTLR14eNVim

PicsArt_05-14-09.46.29.jpg

(1) How do I connect my TronLink Wallet to Tronscan.org?(With Screenshots)

Below are the processes to which I connect my Tronlink Wallet to Tronscan.org.

PicsArt_05-13-09.31.10.jpg

First, I will launch my TronLink Wallet and on the home page, I will click on Discover

Screenshot_20210513-051520.png

Here is the Discover window

Screenshot_20210513-051623.png

Then I will search for tronscan.org

PicsArt_05-13-10.08.26.jpg

This window shows that the wallet has been automatically connected successfully.

Screenshot_20210513-100608.png

And by clicking the parallel three strokes at the top right, this window will pop up, and clicking on wallet shows and confirms that the wallet is successfully connected.


(2) How do I freeze TRX to obtain Bandwidth? (With Screenshots)

Here, I will show the whole processes of how I can freeze TRX to obtain Bandwidth and energy for the duration of at least 72 hours.

PicsArt_05-13-10.26.35-01.jpeg

On my successfully connected wallet on tronscan.org I will click on the three parallel strokes at the right top.

PicsArt_05-13-10.35.49-01.jpeg

On this slide, I click on wallet, then click my wallet address

PicsArt_05-13-10.36.48-01.jpeg

The next thing that will pop up will be this window then I will hit the Resources icon.

PicsArt_05-13-10.37.37-01.jpeg

On this window, I will click on Obtain.

Screenshot_20210513-103026-01.jpeg

This window requires me to input the amount of TRX I want to freeze.

PicsArt_05-13-10.39.45-01.jpeg

Here, I have decided to freeze 10trx for at least 72 hours. Then I will proceed by clicking on Next

PicsArt_05-13-10.40.54-01.jpeg

Here, I need to approve the transaction by imputing my password and hit Done

PicsArt_05-13-10.43.42-01.jpeg

I have now successfully freezed 10trx. But I will have to give it a waiting time of 1 minute.

Screenshot_20210513-112109-01.jpeg

This is the confirmation that I have successfully freezed 10trx and obtained 15 Bandwith with zero energy.


(3) How do I freeze TRX to obtain Energy? (With Screenshots)

PicsArt_05-13-01.23.39-01.jpeg

On the home page of the successfully connected wallet, I will click on three top-right parallel stroke.

PicsArt_05-13-01.26.03.jpg

Then I will click on wallet, then click on the wallet address.

PicsArt_05-13-01.28.55-01.jpeg

Then click on Resources, then on Obtain.

PicsArt_05-13-01.31.34-01.jpeg

Switch from Tron Power And Bandwidth to Tron Power And Energy

PicsArt_05-13-01.33.27-01.jpeg

Here is the window with the Tron Power And Energy because it is the Energy that I want to obtain.

PicsArt_05-13-01.34.46-01.jpeg

I want to freeze 9trx. My 9trx is giving me an estimated 270.176 energy.

PicsArt_05-13-01.35.26-01.jpeg

On this next slide, I will authorize the transaction by imputing my password and click on Done

PicsArt_05-13-02.50.32-01.jpeg

Here, I have successfully freezed and obtained 270 energy


(4) What types of transaction consumes Bandwidth only and what types of transaction consume both Bandwidth & Energy? Example of both types of your own wallet? (With Screenshots)

On the Tron blockchain, it is observed that Ordinary transactions done can only consume bandwidth but any transaction has to do with Smart Contract Trigger consumes both the Bandwidth and the Energy.

Below are screenshots of transaction that consumes only Bandwidth

PicsArt_05-13-03.45.29-01.jpeg

On the homepage of tronscan.org, I will paste my wallet address in the search bar and search.

PicsArt_05-13-03.47.29-01.jpeg

Then I will scroll to where I have Transfers

PicsArt_05-13-03.48.27-01.jpeg

The next slide, I will choose TRX&TRC10 because I am looking for transactions that consumed only *Bandwidth

PicsArt_05-13-03.52.42-01.jpeg

I will click on the wallet address of the outgoing transaction as shown above

PicsArt_05-13-03.54.37-01.jpeg
From the above screenshot, 12 days 5 hours ago, I transfered 41.072628 TRX and a total of 286 Bandwidth was consumed.
N/B: Only Bandwidth was consumed in the transaction.

Below are screenshots of transactions that consumed both Bandwidth and Energy

PicsArt_05-13-03.45.29-01.jpeg

Back to the hompage of tronscan.org, I will paste my wallet address and hit the search icon

PicsArt_05-13-03.47.29-01.jpeg
Then I will scroll to where i have Transfers

PicsArt_05-13-04.01.34-01.jpeg

Then I will click on TRC20&TRC721 because this time, I am concerned about smart contract triggered transaction.

PicsArt_05-13-04.03.56-01.jpeg
Here is a successful transaction of 1 USDT transfer. So i will click on it.

PicsArt_05-13-04.05.33-01.jpeg

As seen above, 13 days 8 hours ago, I successfully transacted 1USDT and a total of 313 Bandwidth was consumed and also, a total of 87,301 Energy was consumed.
N/B: Both Bandwidth and Energy was consumed, therefore, that was a smart contract trigger transaction.

PicsArt_05-13-05.34.10-01.jpeg

Here is another precise example of smart contract trigger where i practically supplied 20TRX to JustLend and I received 1,9999.37 jTRX in the week 11 homework task.

PicsArt_05-13-05.36.25-01.jpeg

From the above smart contract trigger transaction,I have deduced the following datas

Consumed Bandwidth284 Bandwidth
Consumed Energy80,377 Energy
Burned TRX for Energy11.25278TRX

(5) How do I check "how much Bandwidth and Energy are consumed in a particular transaction"?(With Screenshots)

PicsArt_05-13-03.45.29-01.jpeg
From the hompage of https//:tronscan.org, I will paste my wallet address and hit the search icon

PicsArt_05-13-03.47.29-01.jpeg
I will now scroll to where i have Transfers

PicsArt_05-13-04.01.34-01.jpeg

Then I will click on TRC20&TRC721 because I want to check for two things which are how much Bandwidth and Energy was consumed in the below transaction

PicsArt_05-13-04.03.56-01.jpeg

Here is a successful transaction of 1 USDT on JustLend, So i will click on it.

PicsArt_05-13-06.35.43.jpg

As seen above, 13 days 8 hours ago, I successfully transacted 1USDT on JustLend below are the datas.

Consumed Bandwidth313 Bandwidth
Consumed Energy87,301 Energy
Burned TRX for Energy12.22214 TRX

(6) How do I avoid burning TRX to accommodate the Energy required for a transaction?

Before i answer this question, let me share this practical experience, and i stand to be corrected.
During the week 11 homework task, I actually supplied and borrowed asset on JustLend. After a successful transaction, few hours later, I started noticing some shortage in my TRX balance, i was scared that someone hacked into my wallet.

When I checked the transaction history, I was seeing Smart Contract Trigger. I did not know what it meant. But after reading this class, I have now realized that my TRX was being burned because I did not have enough Energy to sustain and accommodate my transaction. To avoid that, i should have had frozed my TRX.

Now to answer the question, to avoid burning TRX to accommodate the energy required for a transaction, I should freeze my TRX. And by freezing my TRX, I can stand the chance of gaining Bandwidth or Energy and also gain votes which can in turn give me potential reward

Energy obtained can calculated via tronstation calculator
Below is a practical example.

Screenshot_20210513-191711-01.jpeg
As at the time of writing this post, to freeze 1TRX, 29.98406 Energy is required. Though the amount of energy is not always constant. It changes with time, but it is approximately 30.

So right now, to freeze 100TRX, 2998.406 Energy will be required.


(7) Include the real example of your interaction with JustLend & Justswap? Indicate how a "swap"(in Justswap) function consumes different "Energy & Bandwidth" than a "borrow" function(in JustLend)? You can trade a small amount(as little as 1 USDT)? (Screenshots Included)

Transaction on Justswap
Screenshot_20210513-051520.png
On my TronLink wallet, I clicked on Discover

Screenshot_20210513-193701.png
Then I search for justswap.io

PicsArt_05-14-04.48.40-01.jpeg
I chosed the asset I want to swap TRX to which is USDT. So here, i will be swapping 8.5TRX

PicsArt_05-14-04.38.47-01.jpeg
Confirm Swap

PicsArt_05-14-04.39.33-01.jpeg

Input my password to continue

Screenshot_20210514-004323-01.jpeg
Transaction successful.

To check the details of my transaction, i will head to tronscan.org

PicsArt_05-14-04.46.48-01.jpeg

The screenshot above shows that I successfully swapped 8.5TRX to and i received 1.017USDT. So,
Bandwidth consumed is 350
Energy consumed is 48,363
6.794TRX Burned for energy

Transaction on JustLend
I will be using images from week 11 homework post.
3RTd4iuWD6NUeJEn5AVrJUoyatFqBqfcCJi1N7UixR4g2KPKN7w8NpZJXWivKGSw417x1Mw3VmoZESofWnL3YoqKGRSsyyVyD7SoQE2FDzZ3ea7n9hSH77Psg42dvedKjEZU8iH8BJZPFKbrno5A8sKBowu48aCiXHBNDfvmErRhiE.jpeg
Here, I wanted to borrow USDT so i clicked on it.

8DAuGnTQCLptZgjHUrRAJGcW4y1D4A5QVJJ7zjzqqKdfVHSS6NapSCC6vBZ2mdhaZMoDbziVqGLAGMKLrbfnjzysNbbBFXRUbtsbBeNyEG3jYYYM5siXL9JqCKHJboX9LPyV1qV62sCM5NDkdyNf7gVzSudMCGkgqKtoeTWAMyp.jpeg

Here I wanted to borrow 1 USDT

8DAuGnTQCLptZgjHUrRAJGcW4y1D4A5QVJJ7zjzqqKdfVHSS6NapSCC6vBZ2mdhaZMoDbziVqGKxfWYWB2XC3ZQTyfETfBiNZrZwr9goJRWAu9MpytKNKCFQt5ArNmiqHH8yuvxc3AJb83Yy3MEpXRtzKq9pP6BxxfWjArzZ2fx.jpeg
Borrow successful

3RTd4iuWD6NUeJEn5AVrJUoyatFqBqfcCJi1N7UixR4g2KPKN7w8NpZJXWivKGSw417x1Mw3VmobziLDwCCHKkfPmtRWBwMsqFGJjtMft58zEgpMLX7MSFFTL6emzJVxRkAoLvhtmeUFSNXKmmbABVcZdKYNf8nXuUfNWGhfgJNMiN.jpeg

The borrowed asset was added to my borrow list.

I will proceed to tronscan.org to check my transaction details

PicsArt_05-14-06.00.17.jpg
From the above screenshot, i borrowed 1 USDT on JustLend.
Consumed Bandwidth was 313.
Consumed Energy was 87,301
12.222TRX was Burned to accommodate the energy required for the transaction.

Comparing JustSwap Swap transaction and JustLend Borrow transaction

ResourcesJustLend (Borrow)JustSwap (Swap)
Bandwidth313350
Energy87,30148,363
TRX Burned For Energy12.22214TRX6.76942TRX

From the table above, it can be deduced that in transacting 1USDT on both Justswap and JustLend, Justswap consumed a little more amount of Bandwidth than JustLend but when it has to do with Energy, JustLend consumed a greater amount of Energy than Justswap.
Also, TRX burned to accommodate Energy on JustLend is greater than the TRX burned to accommodate Energy for my transaction on Justswap.

This simply means that in smart contracts, consumption of Bandwidth is almost always the same. If there is always any difference, it is not always really big a figure, it is always very small. But Energy consumption always vary greatly most especially when it comes to borrowing (a clear example is the borrow of 1USDT that I have shown above in my screenshot).


(8) Explore Tronscan(check your own wallet) to identify an "ordinary transfer" & a "Smart-contract-operated transfer"? Indicate the difference between the two?

To do this, i visit the website tronscan.org

PicsArt_05-13-03.45.29-01.jpeg

Copy and paste my wallet's address in the search bar and hit the search icon

PicsArt_05-13-03.47.29-01.jpeg

Go to Transfers

PicsArt_05-13-03.48.27-01.jpeg

Choose TRX&TRC10

PicsArt_05-13-03.52.42-01.jpeg

Choose a successfully transacted asset

AmRc67RgYaWTamZtjiRVK9pxDgRdg2RtnXmG5dbeGuzK3WNfkBktwpfiv6fPcjGtis3fVxx9cSDVQviULH141LNCuyh1ywHAjNZhehxrKvkkcdRL1nhA8HQPDZsFmrhbaDp4z8Ra8EhRc9fJsSnnvC9XVEafPWRt.jpeg

Here, only Bandwidth was consumed

Smart Contract Transfer

To do this, i visit the website tronscan.org

PicsArt_05-13-03.45.29-01.jpeg

Copy and paste my wallet's address in the search bar and hit the search icon

PicsArt_05-13-03.47.29-01.jpeg

Go to Transfers

PicsArt_05-13-04.01.34-01.jpeg

Choose TRC20&TRC721

PicsArt_05-13-04.03.56-01.jpeg

Choose a successfully transacted asset

PicsArt_05-14-06.56.06-01.jpeg

Here, both Bandwidth and Energy were consume in the transaction.

Difference between Ordinary Transfer and Smart Contract Transfer

Ordinary TransferSmart Contract Transfer
Only Bandwidth is consume during transactionBoth Bandwidth and Energy are consumed during transaction
Conclusion

Transaction on the TronLink wallet is really simple and rewarding if you what to do and how to it.
Freezing TRX to gain Bandwidth or Energy can most times bring potential rewards after a period of 72 hours.

Thanks Prof. @sapwood

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hello distinguished and respected Prof. @sapwood, greetings to you from my humble end. Please my week 13 homework post actually exceeded the 7days payout date without being curated and this is the repost. Below is the link to the original post.

https://steemit.com/hive-108451/@davosimple/crypto-academy-week-13-or-homework-post-for-sapwood-or-bandwidth-and-energy-tron

Thank you