# Reissue Transaction Binary Format
Learn more about Reissue transaction.
# Version 3
Binary format of version 3 is defined in transaction.proto protobuf scheme. The fields that are common to all types of transactions are described in the Transaction Binary Format article.
Version 3 is enabled by feature #15 “Ride V4, VRF, Protobuf, Failed transactions”.
message ReissueTransactionData {
Amount asset_amount = 1;
bool reissuable = 2;
};
message Amount {
bytes asset_id = 1;
int64 amount = 2;
};
Field | Size | Description |
---|---|---|
asset_amount.asset_id | 32 bytes | ID of token to reissue |
asset_amount.amount | 8 bytes | Amount of token to reissue, specified in the minimum fraction (“cents”) |
reissuable | 1 byte | Reissue availability flag |
# Version 2
# | Field | JSON field name | Field type | Field size in bytes | Comment |
---|---|---|---|---|---|
1 | Version flag | Byte | 1 | Indicates the transaction version is 2 or higher. Value must be 0 | |
2 | Transaction type ID | type | Byte | 1 | Value must be 5 |
3 | Transaction version | version | Byte | 1 | Value must be 2 |
4 | Chain ID | chainId | Byte | 1 | 87 — for Mainnet 84 — for Testnet 83 — for Stagenet |
5 | Public key of the transaction sender | senderPublicKey | Array[Byte] | 32 | |
6 | Token ID | assetId | Array[Byte] | 32 | |
7 | Amount of token that will be reissued | quantity | Long | 8 | |
8 | Reissue flag | reissuable | Boolean | 1 | If the value is 0, then token reissue is not possible. If the value is 1, then token reissue is possible |
9 | Transaction fee | fee | Long | 8 | |
10 | Transaction timestamp | timestamp | Long | 8 | |
11 | Transaction proofs | proofs | See Transaction Proofs Binary Format | S | If the array is empty, then S = 3. If the array is not empty, then S = 3 + 2 × N + 64 × N , where N is the number of proofs in the array.The maximum number of proofs in the array is 8. The size of each proof is 64 bytes |
The fields numbered in bold are the transaction body bytes.
# JSON Representation of Transaction
See the example in Node API.
# Version 1
Field order number | Field | Field type | Field size in bytes | Comment |
---|---|---|---|---|
1 | Transaction type ID | Byte | 1 | Value must be 5 |
2 | Transaction signature | Array[Byte] | 64 | |
3 | Transaction type ID | Byte | 1 | This field duplicates field 1 |
4 | Public key of the transaction sender | Array[Byte] | 32 | |
5 | Token ID | Array[Byte] | 32 | |
6 | Amount of token that will be reissued | Long | 8 | |
7 | Reissue flag | Boolean | 1 | If the value is 0, then token reissue is not possible. If the value is 1, then token reissue is possible |
8 | Transaction fee | Long | 8 | |
9 | Transaction timestamp | Long | 8 |
The fields numbered in bold are the transaction body bytes.