Crypto Academy Week 13 Homework Post for ///@sapwood. [Bandwidth and Energy (Tron)] by @salemumar5

in sapwood-s2week5 •  3 years ago 

بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ

ٱلسَّلَامُ عَلَيْكُمْ

Hy steemians this my homework task for @sapwood here we will learn about bandwidth and Energy (Tron) and am gonna show practical analysis about this homework Iin a simple and easy way,so lets start the work.

QUESTION #1 :

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

They easy and simple way can be elaborate in mobile phone although you can also connect your wallet with extension of chrome too but for making it simple I use mobile phone for clear screen.

  • Open you Tron wallet and simply click Discover menu.
  • You can see the option (Tronscan) click on that.
  • After that you can see there is pop appear of privacy an policy enter that and continue for further detail.
  • Now you can see that login or register click on that and there will be a notifying alert either you can confirm through phone number or email for otp code I use phone number becuase there is some problem with email although than there you can see the pop show that wallet connected.

First Step

image.png

Second step

image.png

Third Step

image.png

fourth Step

image.png

fivth step

image.png

QUESTION # 2

(2) How do I freeze TRX to obtain Energy?

  • First go to Tron wallet and click on Freeze option click on that.

  • you can see now resources and freeze menu will be open and just open and fill that.

  • I used 6 Trx for transaction and finally you have to confirm the order with password of TRON.

  • you can see I have 0 energy and 5000 bandwidth now I have 179 energy and 4749 bandwidth left.

First Step

image.png

Second step

image.png

image.png

fourth Step

image.png

fivth step

image.png

QUESTION #3

How do I freeze TRX to obtain Bandwidth?

-Same work for freezing ennergy are use for bandwidth as well similarly go to tron wallet click on bandwidth instead of energy.

  • I utilized 5 TRX for bandwidth and use password the transaction will be done.

  • After that you can see my bandidth rose from 4748 to 4509 thats a simple and easy way to alert it.

First Step

image.png

Second step

image.png

Third Step

image.png

(4) What types of transaction consumes Bandwidth only and what types of transaction consume both Bandwidth & Energy

Professor explained us that there is two types of transactions ordinary and smart contract trigger, Ordinary transactions carry only bandwidth while smart contract transaction collects bandwidth and energy too.

Main thing that you all should aware of that every account in tron wallet have 5000 bandwidth as I show you below and it enables full bandwidth in 24hours, your consumption will reset to original in 24 hours in other words.

Ordinary transaction:

you can get more bandwith by freezing TRX as we had done below and depends how much you are trying to freezes. Here you can see the amount of energy is not enough my 0.1 something TRX is burn, so you have to look the amount of ttransaction that you done other wise after burning of trx and enrgy transaction some times fail.

I use 2 TRX and send in to my different wallet , you can watchh the transaction by opening the tron account open the discover button afterwards open transfer option and for ordinary transaction use TRX &TRXC10 and you can also check this transaction in history.

image.png

As I see many students have skip the step of bandwidth and energy consumed together so I also elaborate it in next QUESTION BEWARE.

QUESSTION #4

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

  • You can visit to tronscan.
  • Paste the address after that you can see there is transaction button click on that.
  • After that click on TRC20 and TRC721 for smart contract trigger.
  • i will do the transaction by just lend like Supply (TRX for jTRX) , Burrow (USDT) and repay burrowed
    asset.

same thing that we are pasting address than transaction after that history will be shown , you can click on transactions hash so my history of smart contract triggers like, Mint , Borrow , Repay.

image.png

Now let's look for transaction hash of all smart contract triggers like, Mint , Borrow , Repay.

Method of calling- Mint(Supply)

The picture clears you the bandwidth and energy .

image.png

You can see how bandwidth and energy are consuming at same time.

QUESTION # 6

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

As you all know guys if we have 5000 badwidth after direct 24hrs if energy available by freezing TRX is not sufficient for a transaction than additional amount of energy required will be obtained by burning TRX, so safe the burning TRX FREEZE the TRX for gaining more energy so lets see this too.

image.png

You can see that for 7 TRX you can get 179 energy , You can easily satisfy with the amount you like the most because we know 1 Energy - 1 microsecond.

QUESTION # 7

(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)?

  • Exact and same way go to discover you will see Dapp page, go to justswap adn open the page
  • Prefer the amount you have to write I utilize 1 trx
  • After licking on swap the pass key and authentication you will see than confirm the tgransaction.

image.png

image.png

image.png

image.png
AS you can see the swap has been done safe and sound let me show my transaction history too where you can see clear picture of bandwidth and energy used.

image.png

##QUESTION # 8

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

HERE i will you all the transaction that are placed by my screen shots

  • Using the same go to tronscan.org and paste the address as mentioned above after that in the same manner go to transaction select the network I will sshow you in subheadings in screenshots.

As we use ordinary transaction first you all know the rule that bandwidth only consume here.

TRX and TRC10 transactions

image.png

TRC 20 & TRC 721 transaction

image.png

Ordinary transaction

image.png

ALL PICTURE TRANSACTIONS ARE CAPTURED FROM MYSLEF

Thanks
Regard
@salemumar5

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:  

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

so you have to look the amount of ttransaction that you done other wise after burning of trx and enrgy transaction some times fail.

If you don't have sufficient TRX to accommodate Energy, then it will still burn the insufficient TRX and yet the transaction will fail out of energy. So before you call a smart contract you must ensure that you have either sufficient Energy or you have sufficient TRX to accommodate the required Energy.

Explore Tronscan(check your own wallet) to identify an "ordinary transfer" & a "Smart-contract-operated transfer"?

Another way to explore--

  • Go to Tronscan.org
  • Click on "Transactions".
  • Select the Trsnaction type as Smart contract trigger.
  • It will then sort all the smart contract operated transactions.

Suggestions/Feedback

  • The author has produced real transactions for the "mint" function in JustLend and "swap" function in Justswap. But he did not borrow in JustLend, so borrow function is missing and the comparative analysis of resource consumption is also missing.
  • One round of proof-reading is required and better formatting will render a professional touch to your article.
  • We would suggest the author to comply with the requirement of the sub-parts of a Task.

Thank you.


Homework Task -5 accomplished.
[5]

I dont have enough balance to complete the parts sorry for this next time ai will put full effort for attending all parts thank you