Transfer transaction binary format

Learn more about transfer transaction

Transaction version 2

Field order number Field JSON field name Field type Field size in bytes Comment
1 Version flag Byte 1 Indicates the transaction version is version 2 or higher.
Value must be 0
2 Transaction type ID type Byte 1 Value must be 4
3 Transaction version version Byte 1 Value must be 2
4 Public key of the transaction sender senderPublicKey Array[Byte] 32
5.1 Flag WAVES/token 1 Value is 0 for transferring WAVES.
Value is 1 for transferring other tokens
5.2 Token ID assetId Array[Byte] S S= 0 if the value of the "flag WAVES/token" field is 0.
S = 32 if the value of the "flag WAVES/token" field is 1
5.3 Token fee feeAssetId Array[Byte] S Token to pay the commission. Currently it can be WAVES only.
S = 0 if the value of the "flag WAVES/token" field is 0.
S = 32 if the value of the "flag WAVES/token" field is 1
6 Address or aliasof the transfer recipient recipient Array[Byte] 32
7 Amount of tokens in the transfer amount Long 8
8 Transaction timestamp timestamp Long 8
9 Transaction fee fee Long 8
10.1 Attachment length Short 2
10.2 Attachment Array[Byte] 2 Arbitrary data attached to the transaction
11 Transaction proofs proofs Proofs S If the array is empty, then S = 3.
If the array is not empty, then S = 3 + 2 × N + (P1 + P2 + ... + Pn), where N is the number of proofs in the array, Pn is the size on N-th proof in bytes.
The maximum number of proofs in the array is 8. The maximum size of each proof is 64 bytes

JSON representation of the transaction

See the example in Node API.

Transaction version 1

Field order number Field Field type Field size in bytes Comment
1 Transaction type ID Byte 1 Value must be 4
2 Public key of the transaction sender Array[Byte] 32
3.1 Flag WAVES/token 1 Value is 0 for transferring WAVES.
Value is 1 for transferring other tokens
3.2 Token ID Array[Byte] S S = 0 if the value of the "flag WAVES/token" field is 0.
S = 32 if the value of the "flag WAVES/token" field is 1
3.3 Token fee Array[Byte] S Token to pay the commission. Currently it can be WAVES only.
S = 0 if the value of the "flag WAVES/token" field is 0.
S = 32 if the value of the "flag WAVES/token" field is 1
4 Address or alias of the transfer recipient Array[Byte] 32
5 Amount of tokens in the transfer Long 8
6 Transaction fee Long 8
7 Transaction timestamp Long 8
8.1 Attachment length Short 2
8.2 Attachment Array[Byte] 2 Arbitrary data attached to the transaction
9 Transaction signature Array[Byte] 64

results matching ""

    No results matching ""