Skip to main content

The Record entity

The principal element of the BLOOCK SDKs is the Record as it's used on most of the functionalities. It's responsible for different interactions such as:

Record builders

In order to generate a Record, our SDKs provide different builders to do so. Those builders enable to set as input different data types, formats or encodings based on your needs.

Available builders

Currently, the following builders are available:

NameDescription
fromStringIt takes a UTF-8 string as input
fromBytesIt takes an array of bytes as input
fromHex

It takes a hash string (hex encoded 64-chars long string) as input

fromJsonIt takes a JSON as input
fromRecordIt takes a record as input
fromFileIt takes a file (as a byte array) as input
fromLoaderIt takes a Loader as input