Statement
A public statement made by an account. The meaning is defined by the statement type.
The statement transaction is part of the Titanium release.
JSON
id
andheight
should be omitted when broadcasting. These fields are set by the node.recipient
andsubject
are optional.Binary strings are base58 encoded.
timestamp
is in microseconds since epoch.fee
includes 8 digits, soLTO * 10^8
Data entries
Statement transactions can have data entries. These are similar to those of the data transaction.
Binary schema
The binary data structure of the unsigned transaction.
# | Field Name | Type | Length |
---|---|---|---|
1 | Transaction type | Byte (constant, value=16) | 1 |
2 | Version | Byte (constant, value=3) | 1 |
3 | Network id | Byte | 1 |
4 | Timestamp | Long | 8 |
5 | Sender's key type | KeyType (Byte) | 1 |
6 | Sender's public key | PublicKey (Array[Byte]) | 32 | 33 |
7 | Fee | Long | 8 |
8 | Has recipient | Boolean (Byte) | 1 |
9 | Recipient | Address (Array[Byte]) | 26 |
10 | Statement type | Int | 4 |
11 | Subject length (N) | Short | 2 |
12 | Subject | Array[Byte] | N |
13 | Number of entries | Short | 2 |
14 | Entry 1 | ||
... |
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.
The encoding of a data entry depends on the type. For more information see "Binary schema of data entries".
Last updated