Tutorials:Sample Transaction
Transactions
Let's send some tokens to our wallet to observe the transaction details:
We have 141 Summer tokens and 105 Winter tokens, and 1.26 POL to pay for transactions.
Notice:
Metamask will inform you of the cost of the transaction (0.002939 POL) and ask for confirmation.
The transaction is sent, and while it says "Pending" you can see the Cancel and Speed up Buttons.
If you want the transaction to occur faster, you can add a higher transaction fee. Normally Metamask will suggest the fee based on current network conditions, but you can set the fee manually.
The price of GAS changes with demand, if lots of people want to speed up the transactions, they pay more for the transactions rising the GAS price.
Once the transaction is confirmed you can't revert it. Click on the transaction to see the summary.
Lets click on View on block explorer to open the transaction in Polygonscan.
Review Transaction Data:
- First we have the Transaction Hash, that string identifies the transaction, anybody with this string can find the transaction using Polygonscan or any other Polygon block explorer.
You can see that 151 blocks have been added to the Polygon blockchain in about 5 minutes, that is a whole lot more than Bitcoin or Ethereum.
- Then we have the transaction Action: Transfer of 141 Summer to our 0xF0E...312 test address.
- We see that we interacted with the Summer token smart contract in Polygon:
0xdd28ec6b06 ... d8d884d95264
This smart contract is responsible for changing the relevant account balances.
- Then we have the POL value of the transaction. (zero POL in this case)
- And the Transaction Fee and Gas Price.
Slippage
Notice that the Gas Price turned out to be less than the amount quoted by Metamask when we were doing the transaction.
This is called "slippage", in very active cryptos the Gas price or even the tokens prices are changing all the time, and it is possible that the value of a token or the gas in this case has changed from the moment the quote was made to the moment the transaction was executed.
In this case it was in our favor, and Polygon Gas prices are so low that it doesn't matter much. But this can be an issue with the Tokens prices.
For this reason you can set up the maximum slippage you will accept in Metamask. In the Swaps Tab you can click on the Gear icon to adjust the Slippage tolerance.
If the price of a token is higher than your Slippage tolerance, the transaction will not be executed.
Task:
- With the transaction ID:
0xf787981950eee48f6836497a5c793df05ae1215c35e7b6bec8a3a4211160c706
- Use PolygonScan to find the transaction and copy the Summer Token contract address.