Data
Data transaction sets data entries in sender's account data storage.
JSON
id
andheight
should be omitted when broadcasting. These fields are set by the node.Binary strings are base58 encoded.
timestamp
is in microseconds since epoch.fee
includes 8 digits, soLTO * 10^8
Data entries
Data entries are one of 4 types: "boolean", "integer", "string", and "binary". A data transaction can have a maximum of 100 data entries.
In JSON, the value of a binary data entry must be base64 encoded and prefixed with "base64:"
. The value of the integer type is a signed long (8 bytes).
Fees
The fees of a data transaction are determined by the size of the data entries. The base fee is 1 LTO, with an additional fee of 0.1 LTO per 256 bytes.
Binary schema
The binary data structure of the unsigned transaction.
Anchor length and Anchor can be repeated for each anchor hash.
Network id can be obtained by taking the 2nd byte from the sender address.
Each key type has a numeric id in addition to the reference from the JSON.
Integers (short, int, long) have a big endian byte order.
Binary schema of data entries
The encoding of a data entry depends on the type.
Integer
Boolean
Binary
String
Last updated