The idea behind this chapter is to give the reader some initial concepts so that they can better follow the documentation and so that the documentation doesn't have to be repetitive about concepts.
Chapter Structure
Introduction
- Present the overall idea of the "Core concepts" chapter
What's a box?
- Describe an Ergo Box in both conceptual and practical terms
Anatomy of a box
- Describe each property of a box (
value, ergoTree, assets, and so on)
- Explain why
value and assets#amount should be handled as integer rather than decimals.
- Briefly describe in a tip box how to use
decimalize() and undecimalize() functions from @fleet-sdk/common package to represent box integers as decimals.
What's a transaction?
- Describe an Ergo Transaction in both conceptual and practical terms
Anatomy of a transaction
- Describe each property of a transaction (
inputs, dataInputs, outputs, and transacionId)
Box lifecycle
- Describe how a box is created and destroyed by a transaction
The idea behind this chapter is to give the reader some initial concepts so that they can better follow the documentation and so that the documentation doesn't have to be repetitive about concepts.
Chapter Structure
Introduction
What's a box?
Anatomy of a box
value,ergoTree,assets, and so on)valueandassets#amountshould be handled as integer rather than decimals.decimalize()andundecimalize()functions from@fleet-sdk/commonpackage to represent box integers as decimals.What's a transaction?
Anatomy of a transaction
inputs,dataInputs,outputs, andtransacionId)Box lifecycle