Steemit Crypto Academy | Season 2: Week5-- Bandwidth & Energy(Tron) Post by @sapwood // Homework done by @xkool24
Hello friends, it's another technical and practical week from our highly respected Prof @sapwood. I really come in peace to participate in this week's homework task and hope to be on point in all deliverables.
(1) How do I connect my TronLink Wallet to Tronscan.org?(Screenshots needed)
This step by step are direct procedures to connect the tronlink wallet to the Trinscan.org
- Launch your already downloaded Tronlink wallet
- Click on the Discover icon below your screen
- Input the Tronscan.org and search or select it from the list of popular apps in view
- this process connects with your wallet automatically.
- For more confirmation, also click on the three parallel lines on your top left screen.
Click on the wallet icon to confirm details from then drop-down
Just like what Prof said, we have 5000bandwidth on default, which also resets after 24hrs. From the last image , you can see that. Energy status is on zero (0).
(2) How do I freeze TRX to obtain Bandwidth? (Screenshots needed)
This is simply a process of locking up a certain amount of TRX for a period of time not less than 72hrs in order to obtain bandwidth and Energy.
Kindly follow through my process to see a step by step via screenshots.
- the tronlink wallet is already connected to the tronscan
- click on the 3 parallel for more options
- click on wallet icon
- click on the RESOURCE then on the OBTAIN icon
- from the obtain option (from the drop down) select TRON Power and Bandwidth.
- Input the amount of Tron to be locked ( Will be working with 5TRX which gives me 7bandwidth)
- Click on the Confirm box and then on FREEZE.
- Input your password to authenticate process.
NOTE: Handling fee is seen in bandwidth... (245bandwidth)
Note:
- Total handling fee was seen to be 245bandwidth
- total Bandwidth obtained is 7 Bandwidth
- Total TRX frozen is 5TRX
(3) How do I freeze TRX to obtain Energy? (Screenshots needed)
This step is similar to the just concluded screenshot we used in demonstrating how to free TRX to get Bandwidth, just that this time we will select the TRON Power and Energy icon.
- the tronlink wallet is already connected to the tronscan
- click on the 3 parallel for more options
- click on wallet icon
- click on the RESOURCE then on the OBTAIN icon
- from the obtain option (from the drop down) select TRON Power and Energy.
- Input the amount of Tron to be locked ( Will be working with 5TRX which gives me 150 Energy)
- Click on the Confirm box and then on FREEZE.
- Input your password to authenticate process.
Note:
- Total handling fee was seen to be 247bandwidth
- total Energy obtained is 150 Energy
- Total TRX frozen is 5TRX
(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? (Screenshots needed).
From our Lectures and the practical screenshots to be shown from the tronlink wallet and tronscan, normal Transfer like TRX consumes only Bandwidth but Smart Contract Trigger consumes both Bandwidth and Energy.
Example of a transaction that consumes Both Bandwidth and Energy
I will be using an example from my last homework task where I supplied some amount of TRX via JustLend. This can be ascertained very easily, just follow my steps.
- Open your Tronlink wallet
- Click on the TRX asset
- Select the "sent" icon on top of the screen to make your search abit faster and easier
- Select and click on the transaction to show details
- then this displays the transaction in question. In this case, I am to show us the energy and bandwidth consumed in a Smart Contract Trigger.
- Also not that the the transaction shown here can also be viewed in details. Kindly click on the icon below with "View Detailed Data".
- then all details are published for our use
Note:
Bandwidth consumed was 284bandwidths
Energy used was 80,377energy
TRX burn / Fee was 11.25278TRX
Value used for transaction was 50TRX
jTRX minted was 4,998.415689
Example of a transaction that consumes Both Bandwidth and Energy
Just like the process used for the Bandwidth and Energy, I will be select a transaction done that consumes only bandwidth and this transaction was solely done by transferring TRX.
- Open your Tronlink wallet
- Click on the TRX asset
- Select the "sent" icon on top of the screen to make your search abit faster and easier
- Select and click on the transaction to show details
- then this displays the transaction in question. In this case, I am to show us transactions that only consumes bandwidth.
Note:
Bandwidth consumed here was 269bandwidths
Energy consumed us 0 ( this is a normally transaction,hence no need for energy used)
Fee/TRX burn is 0
(5) How do I check "how much Bandwidth and Energy are consumed in a particular transaction"?(Screenshots needed)
Checking for any transaction that consumes how much bandwidth and Energy invariably means we are checking for art contract Triggers.
- quickly goto your tronlink wallet
- click on the TRX assets
- Select any transaction from your list of Transactions that have consumed both bandwidth and Energy
- then extract all details requested
I will be showing us how I swapped 2TRX for USDT to consume both Bandwidth and Energy
Note:
Value of transaction was 2TX
Minting 0.256519 USDT
Consume Bandwidth of 349
Consume Energy of 48,363
Burn 6.77682TRX for energy.
(6) How do I avoid burning TRX to accommodate the Energy required for a transaction?
To avoid burning TRX assets from your Tronlink wallet unnecessarily z one need to makes sure that he tries to freeze a certain number of TRX enough to power all transactions required for both normal transactions that requires only Bandwidth consumption and smart contract Triggers which consumes both Bandwidth and Energy. But should incase Bandwidth and Energy generated from TRX-Freeze isn't enough we are meant to freeze more TRX or else out TRX would be burn to generate more bandwidth and Energy.
Let us remember this can be calculated by using the tronscan.io/calculator for easy arithmetic.
For Manual calculations;
Energy Obtained = (TRX frozen for gaining Energy/Total TRX frozen for gaining Energy in the entire network) * Total Energy limit.
(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 needed)
For the JustLend transactions, I will be calling up the last transaction made in our last lecture for comparison. This is in line with our Profs request should in case we participated in the last class
So for the Just Swap ,I will be performing a step by step approach how to do that.
- Since our Tronlink wallet and Tronscan is connected, quickly goto discovery at the bottom of the screen.
- select the JustSwap from the popular options or type in the word JustSwap in search area to generate.
- from JustSwap interface, select the token to swap TRX with. For the purpose of this post, I would be swapping TRX to USDT
- Enter the amount of USDT needed for the transaction. I will be inputting 1USDT which is about 7TRX
- click on the confirm button and Also reconfirm this process.
- Input your password and click on the Done button.
- to ascertain the details of the total energy and bandwidth consumed, we will follow the usual process.
- goto the tronlink wallet
- click on the TRX asset
- select and click on the transaction
- the interface brings an overview of transaction details
- you can also click on the view detailed data for more information.
NOTE: ( JUST SWAP)
- ENERGY : 40,377
- BANDWIDTH : 350
- BURN : 5.63178 (Generated 40,277 Energy)
- ENERGY USED FROM FROZEN TRX: 150 Energy
FOR THE JUSTLEND TRANSACTION DONE IN LAST LECTURE
- to ascertain the details of the total energy and bandwidth consumed, we will follow the usual process.
- goto the tronlink wallet
- click on the TRX asset
- select and click on the transaction
- the interface brings an overview of transaction details
- you can also click on the view detailed data for more information.
NOTE: ( JUST LEND)
- ENERGY : 80,377
- BANDWIDTH : 284
- BURN : 12.25278
COMPARING JUSTSWAP AND JUSTLEND ENERGY/BANDWIDTH TRANSACTION
JUST LEND
- ENERGY: 80,377
- BANDWIDTH: 284
- BURN: 12.25278
JUST SWAP
- ENERGY: 40,377
- BANDWIDTH: 350
- BURN: 5.63178 (Generated 40,277 Energy)
- ENERGY USED FROM FROZEN TRX: 150 Energy
Remarks:
From the Transaction done on both Just Lend and JustSwap Dapps, it is obvious that we have higher Energy consumed in the JUST LEND than in the Just Swap but a lesser Bandwidth consumed in the JustLend than in the Just Swap. I think because we have a higher energy consumed in the JustLend that led to a higher amount of TRX Burn seen from the Transaction.
(8) Explore Tronscan(check your own wallet) to identify an "ordinary transfer" & a "Smart-contract-operated transfer"? Indicate the difference between the two?
ORDINARY TRANSFER TRANSACTIONS FROM MY WALLET
- goto your tronlink wallet
- select the desired Transaction. This must include Transfer of TRX/TRC10 only.
- Transaction details pops up. Also click on view detailed data for more view.
KEY NOTES:
- Transaction type : TRX Transfer
- Bandwidth consumed: 268
- ENERGY consumed : 0
SMART-CONTRACT-OPERATED TRANSFER
- goto your tronlink wallet
- select the desired Transaction. This must include Transfer of TRC20/TRC721 only.
- Transaction details pops up. Also click on view detailed data for more view.
KEY NOTES:
Transaction type : TRC20 Transfer
Bandwidth consumed: 350
ENERGY consumed : 40,377
BURN : 5.63178 TRX
The difference seen in both transaction is simply in the Energy generated which is not applicable in the ordinary transfer of TRX while it is seen in the Smart contract operated Transaction.
Thank you Prof @sapwood for coming up with this handful of practical Lectures, it was not just only impactful but also knowledgeable to know when to apply and use the JustLend and JustSwap Dapps.
This is my entry for your homework assignment
This Post was written by @xkool24