Association
Create an association between account. An association can represent any kind of relationship. The meaning is defined by the association type.
JSON
Associations that are recently expired may still be returned by the node. The public node will use the time of the last mined block to determine if an association is expired or not.
Association identifier
An association is identified by the sender, recipient, association type, and subject. With this information, the association can be revoked.
Submitting a new association transaction with the same sender, recipient, association type, and subject will overwrite the expiry date and data.
Since the subject is part of the identifier, it's not possible to change the subject of an existing association.
Data entries
Since version 4, association transactions can have data entries. These are similar to those of the data transaction.
Binary schema
The binary data structure of the unsigned transaction.
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
Recipient
Address (Array[Byte])
26
9
Association type
Int
4
10
Expires
Long
8
11
Subject length (N)
Short
2
12
Subject
Array[Byte]
N
13
Number of entries
Short
2
14
Entry 1
...
The encoding of a data entry depends on the type. For more information see "Binary schema of data entries".
Last updated