waves_logo Docs
  • Why Waves
    Why Waves
  • Waves Basics
    Waves Basics
  • Account
    • Creating Account
      Creating Account
    • Address
      Address
    • Account Balance
      Account Balance
    • Account Data Storage
      Account Data Storage
    • Alias
      Alias
    • dApp and Smart Account
      dApp and Smart Account
    Account
  • Token (Asset)
    • Non-Fungible Token
      Non-Fungible Token
    • Smart Asset
      Smart Asset
    • Token ID
      Token ID
    • WAVES
      WAVES
    Token (Asset)
  • Transaction
    • Transaction Fee
      • Sponsored Fee
        Sponsored Fee
      Transaction Fee
    • Signature and Proofs
      Signature and Proofs
    • Transaction Types
      • Burn Transaction
        Burn Transaction
      • Create Alias Transaction
        Create Alias Transaction
      • Data Transaction
        Data Transaction
      • Exchange Transaction
        • Order
          Order
        Exchange Transaction
      • Genesis Transaction
        Genesis Transaction
      • Invoke Script Transaction
        Invoke Script Transaction
      • Issue Transaction
        Issue Transaction
      • Lease Cancel Transaction
        Lease Cancel Transaction
      • Lease Transaction
        Lease Transaction
      • Mass Transfer Transaction
        Mass Transfer Transaction
      • Reissue Transaction
        Reissue Transaction
      • Set Asset Script Transaction
        Set Asset Script Transaction
      • Set Script Transaction
        Set Script Transaction
      • Sponsor Fee Transaction
        Sponsor Fee Transaction
      • Transfer Transaction
        Transfer Transaction
      • Update Asset Info Transaction
        Update Asset Info Transaction
      • Ethereum-like Transaction
        Ethereum-like Transaction
      Transaction Types
    • Transaction Validation
      Transaction Validation
    Transaction
  • Block
    • Transactions Root Hash
      Transactions Root Hash
    • Genesis Block
      Genesis Block
    Block
  • Node
    • Leasing
      Leasing
    • Generator’s Income
      Generator’s Income
    • Monetary Policy
      Monetary Policy
    Node
  • Mainnet, Testnet, Stagenet
    Mainnet, Testnet, Stagenet
  • Unit Zero
    Unit Zero
  • Oracle
    Oracle
  • Protocols & Data formats
    • Cryptographic Practical Details
      Cryptographic Practical Details
    • Leased Proof of Stake
      Leased Proof of Stake
    • Waves-NG Solution
      Waves-NG Solution
    • Waves-NG Protocol
      Waves-NG Protocol
    • Waves 1.5
      Waves 1.5
    • Blockchain Data Types
      Blockchain Data Types
    • Binary Format
      • Address Binary Format
        Address Binary Format
      • Alias Binary Format
        Alias Binary Format
      • Block Binary Format
        Block Binary Format
      • Network Message Binary Format
        • Block Message Binary Format
          Block Message Binary Format
        • Checkpoint Message Binary Format
          Checkpoint Message Binary Format
        • Get Block Message Binary Format
          Get Block Message Binary Format
        • Get Peers Message Binary Format
          Get Peers Message Binary Format
        • Get Signatures Message Binary Format
          Get Signatures Message Binary Format
        • Handshake Message Binary Format
          Handshake Message Binary Format
        • Peers Message Binary Format
          Peers Message Binary Format
        • Score Message Binary Format
          Score Message Binary Format
        • Signatures Message Binary Format
          Signatures Message Binary Format
        • Transaction Message Message Binary Format
          Transaction Message Message Binary Format
        Network Message Binary Format
      • Order Binary Format
        Order Binary Format
      • Transaction Binary Format
        • Burn Transaction Binary Format
          Burn Transaction Binary Format
        • Create Alias Transaction Binary Format
          Create Alias Transaction Binary Format
        • Data Transaction Binary Format
          Data Transaction Binary Format
        • Exchange Transaction Binary Format
          Exchange Transaction Binary Format
        • Genesis Transaction Binary Format
          Genesis Transaction Binary Format
        • Invoke Script Transaction Binary Format
          Invoke Script Transaction Binary Format
        • Issue Transaction Binary Format
          Issue Transaction Binary Format
        • Lease Cancel Transaction Binary Format
          Lease Cancel Transaction Binary Format
        • Lease Transaction Binary Format
          Lease Transaction Binary Format
        • Mass Transfer Transaction Binary Format
          Mass Transfer Transaction Binary Format
        • Reissue Transaction Binary Format
          Reissue Transaction Binary Format
        • Set Asset Script Transaction Binary Format
          Set Asset Script Transaction Binary Format
        • Set Script Transaction Binary Format
          Set Script Transaction Binary Format
        • Sponsor Fee Transaction Binary Format
          Sponsor Fee Transaction Binary Format
        • Transfer Transaction Binary Format
          Transfer Transaction Binary Format
        • Update Asset Info Transaction Binary Format
          Update Asset Info Transaction Binary Format
        • Ethereum-like Transaction Binary Format
          Ethereum-like Transaction Binary Format
        Transaction Binary Format
      • Transaction Proof Binary Format
        Transaction Proof Binary Format
      Binary Format
    • Validation Rules
      Validation Rules
    Protocols & Data formats
  • Glossary
    Glossary
      • English
      • Русский
      On this page
        • Version 3
        • Version 2
        • JSON Representation of Transaction
        • Version 1
        • Invalid characters in token names and descriptions
      waves_logo Docs

          # Issue Transaction Binary Format

          Learn more about Issue 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 IssueTransactionData {
              string name = 1;
              string description = 2;
              int64 amount = 3;
              int32 decimals = 4;
              bool reissuable = 5;
              bytes script = 6;
          };
          
          Field Size Description
          name From 4 to 16 bytes Token name
          description From 0 to 1000 bytes Token description
          amount 8 bytes Amount of token to issue, specified in the minimum fraction (“cents”)
          decimals 1 byte Number of decimal places
          reissuable 1 byte Reissue availability flag
          script Up to 8192 bytes Asset script

          # 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 3
          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.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 = 2 if the value of the "Script existence flag" field is 1
          13.3 Asset script script String S S = 0 if the value of the "Script existence flag" field is 0.
          0 < S ≤ 8192, if the value of the "Script existence flag" field is 1
          14 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 Field type Field size in bytes Comment
          1 Transaction type ID Byte 1 Value must be 3
          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.1 Token name length Short 2
          5.2 Token name Array[Byte] From 4 to 16
          6.1 Token description length Short 2
          6.2 Token description Array[Byte] From 0 to 1000
          7 Amount of the token that will be issued Long 8
          8 Number of decimal places of the token Byte 1
          9 Reissue flag Boolean 1
          10 Transaction fee Long 8
          11 Transaction timestamp Long 8

          The fields numbered in bold are the transaction body bytes.

          # Invalid characters in token names and descriptions

          Before feature 15 “Ride V4, VRF, Protobuf, Failed transactions” was activated, it was possible to create tokens with names and descriptions which are not valid UTF-8 strings. There are no such tokens on Mainnet, they exist only on Testnet (see example ).

          The following interfaces use the replacement character � instead of data that does not match any UTF-8 character:

          • REST API and gRPC Server both in Node Scala and Node Go
          • Blockchain Updates in Node Scala
          • Data Service API
          Invoke Script Transaction Binary Format
          Lease Cancel Transaction Binary Format
          Invoke Script Transaction Binary Format
          Lease Cancel Transaction Binary Format