Token Transfer flow
In the previous article we saw an example of token transfer between accounts found in different shards. That example was simplified and missed a few steps in the process. That was intentional, to keep the article and the video short yet explanatory, in order to give you a bigger picture for understanding concepts.
In this article we're going to have a look at the same data flow, but in detail and we will consider two additional scenarios:
- Token transfer between accounts found in different shards
- Token transfer between accounts found in the same shard
You may be asking what was missing in the previous explanation. The short answer is: Gas Refunds or simply Refunds.
If you don't know what Gas is, please first read the article about Gas from our docs.
As for Refunds, here's a quote from the Gas article:
Attach extra gas; get refunded!
...
- If you attach more gas than needed, you'll get refunded
...
From NEAR Protocol docs Gas. Attach extra gas; get refunded!
It means that literally every Transaction includes a refund.
OK, this should be enough for introduction, now let's move on to examples.