#
Preface
Operation formatters in the @hiveio/wax
library provide a mechanism for converting complex operation objects into human-readable text representations. This is useful for displaying operations in a user-friendly format, making them easier to understand.
#
How Formatters Work
Formatters work by taking operation objects (such as transactions, custom JSON operations, NAI assets, witness properties etc.) and transforming them into strings or JavaScript objects based on predefined or custom formatting rules. The formatting rules can match specific properties or types within the operation objects and then apply the necessary transformations.
#
Regular Usage
Object traverse direction
Wax transformers traverse given object from the bottom to the top without modifying the input data, e.g. in the following object, properties will be matched alphabetically:
{ b: { a: 10 }, c: 20 }