Serde

Serialization and deserialization of data happens exactly where you would expect, at contract boundaries. Here is a clear picture of the important pieces that might help. Note that the contract can hold some data (eg. primitive and custom types)

@nearBindgen is a decorator made for the serialization of custom classes before they are saved to storage onto the blockchain. @nearBindgen does not support class inheritance.

figures

Quiz

Answer the questions to check your understanding.

This lesson includes a short quiz.

Lesson discussion

Swap insights and ask questions about NEAR Developer Course

Be the first to start the discussion

Ask a question or share your thoughts about this lesson.