[mkdocs] docs: add transfer xem tutorial#883
Open
zero4862 wants to merge 3 commits into
Open
Conversation
zero4862
commented
Jun 3, 2026
zero4862
commented
Jun 3, 2026
[mkdocs] docs: clean code
41c3ab1 to
d054e4b
Compare
zero4862
commented
Jun 3, 2026
segfaultxavi
requested changes
Jun 4, 2026
|
|
||
| {{ tutorial.code_snippet_tagged('step-2') }} | ||
|
|
||
| The snippet defines the transfer amount in the `xem` variable, loaded from the `XEM_AMOUNT` environment variable. |
Contributor
There was a problem hiding this comment.
The code assumes that XEM_AMOUNT is an integer, so the text should mention it.
Author
There was a problem hiding this comment.
Good catch. I'm replacing it with a float since that seems like a common use case (e.g. transferring 1.5 XEM).
| Instead of floating with network demand, NEM uses a fixed, published schedule, so the fee can be calculated in | ||
| advance without contacting a node. | ||
|
|
||
| For an XEM transfer, the fee depends only on the amount being sent: |
Contributor
There was a problem hiding this comment.
Ugh, I had no idea!
We definitely need to explain this in the Textbook, in a section about fees.
You can just move this description there and link it from here. And add the message cost, I guess.
And the regular transactions page in the Textbook also needs a section about fees :(
Author
There was a problem hiding this comment.
Agree, and it gets way more complex when transferring non-XEM mosaics. I'm updating the textbook with all those learnings.
segfaultxavi
reviewed
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapts the transfer transaction tutorial to NEM.
Note: We'll have a separate one for transferring mosaics.