# DataTransaction
Structure of a data transaction.
# Constructor
For Standard library version 3:
DataTransaction(data: List[DataEntry], id: ByteVector, fee: Int, timestamp: Int, version: Int, sender: Address, senderPublicKey: ByteVector, bodyBytes: ByteVector, proofs: List[ByteVector])
For Standard library version 4:
DataTransaction(data: List[BinaryEntry|BooleanEntry|DeleteEntry|IntegerEntry|StringEntry], id: ByteVector, fee: Int, timestamp: Int, version: Int, sender: Address, senderPublicKey: ByteVector, bodyBytes: ByteVector, proofs: List[ByteVector])
Standard library version 4 is available since node version 1.2.0 after activation of feature #15 “Ride V4, VRF, Protobuf, Failed transactions”. Node versions 1.2.x are currently available on Stagenet only.
# Fields
# | Name | Data type | Description |
---|---|---|---|
1 | data | For version 3: List[DataEntry] For version 4: List[BinaryEntry|BooleanEntry|DeleteEntry|IntegerEntry|StringEntry] | Transaction's data array |
2 | id | ByteVector | Transaction ID |
3 | fee | Int | Transaction fee |
4 | timestamp | Int | Transaction timestamp |
5 | version | Int | Transaction version |
6 | sender | Address | Address of a transaction sender |
7 | senderPublicKey | ByteVector | Account public key of a sender |
8 | bodyBytes | ByteVector | Transaction body bytes |
9 | proofs | List[ByteVector] | Array of proofs |