Skip to content

ToBytes

Purpose of the Node

The ToBytes node converts a given Struct into a byte array. It provides an option to either pretty print the JSON representation of the Struct before converting it to bytes.

Pins

The node has three pins: an input for the Struct to convert, a boolean to determine if the Struct should be pretty printed, and an output for the resulting byte array.

Pin NamePin DescriptionPin TypeValue Type
valueThe input Struct to be converted to bytesStructVariableType::Generic
prettyA boolean indicating if the Struct should be pretty printed before conversionBooleanVariableType::Boolean
bytesThe output byte array representing the StructBytesValueType::Array