NearBindgen
Last updated
Last updated
• Docs
/ / NearBindgen
NearBindgen(
options
):any
Extends this class with the methods needed to make the contract storable/serializable and readable/deserializable to and from the blockchain. Also tells the SDK to capture and expose all view, call and initialize functions. Tells the SDK whether the contract requires initialization and whether to use a custom serialization/deserialization function when storing/reading the state.
• options
Options to configure the contract behaviour.
• options.requireInit?: boolean
Whether the contract requires initialization.
• options.deserializer?
Custom deserializer function to use for reading the contract state.
• options.serializer?
Custom serializer function to use for storing the contract state.
any