Issue transaction binary format

Learn more about issue 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 3
3 Transaction version version Byte 1 Value must be 2
4 Chain ID chainId Byte 1 84 for test network, 87 for main network
5 Public key of the transaction sender senderPublicKey Array[Byte] 32
6.1 Token name length Short 2
6.2 Token name name Array[Byte] From 4 to 16
7.1 Token description length Short 2
7.2 Token description description Array[Byte] From 0 to 1000
8 Amount of the token that will be issued quantity Long 8
9 Number of decimal places of the token decimals Byte 1
10 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
11 Transaction fee fee Long 8
12 Transaction timestamp timestamp Long 8
13.1 Script existence flag Boolean 1 If the value is 0, then the token does not have a script.
If the value is 1, then the token has a script
13.2 Script length in bytes Short S S = 0 if the value of the "Script existence flag" field is 0.
S = 2if the value of the "Script existence flag" field is 1
13.3 Asset script or account script script String S S = 0 if the value of the "Script existence flag" field is 0.
0 < S ≤ 32768, if the value of the "Script existence flag" field is 1
14 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 3
2 Public key of the transaction sender Array[Byte] 32
3.1 Token name length Short 2
3.2 Token name Array[Byte] From 4 to 16
4.1 Token description length Short 2
4.2 Token description Array[Byte] From 0 to 1000
5 Amount of the token that will be issued Long 8
6 Number of decimal places of the token Byte 1
7 Reissue flag Boolean 1
8 Transaction fee Long 8
9 Transaction timestamp Long 8
10 Transaction signature Array[Byte] 64

results matching ""

    No results matching ""