Skip to content

Serialization⚓︎

Basic Types⚓︎

Amount
8 ubytes

A quantity of mosaics in absolute units. It can only be positive or zero.

Height
8 ubytes

Index of a block in the blockchain. The first block (the Nemesis block) has height 1 and each subsequent block increases height by 1.

Timestamp
4 ubytes

Number of seconds elapsed since the creation of the Nemesis block.

Address
40 ubytes

An address identifies an account and is derived from its PublicKey. The 40 bytes correspond to its Base32-encoded form.

Hash256
32 ubytes

A 32-byte (256 bit) hash. The exact algorithm is unspecified as it can change depending on where it is used.

PublicKey
32 ubytes

A 32-byte (256 bit) integer derived from a private key. It serves as the public identifier of the key pair and can be disseminated widely. It is used to prove that an entity was signed with the paired private key.

Signature
64 ubytes

A 64-byte (512 bit) array certifying that the signed data has not been modified. NEM uses Ed25519 signatures with the Keccak-512 hash function.

Enumerations⚓︎

Size: 1 byte = 0x1
schema
NetworkType
enumeration of network types
0x68
MAINNET

main network

0x98
TESTNET

test network

Size: 4 bytes = 0x4
schema
TransactionType
enumeration of transaction types
0x101
TRANSFER

transfer transaction

0x801
ACCOUNT_KEY_LINK

account key link trasaction alternatively called importance transfer transaction

0x1001
MULTISIG_ACCOUNT_MODIFICATION

multisig account modification transaction alternatively called multisig consignatory modification transaction

0x1002
MULTISIG_COSIGNATURE

multisig cosignature transaction alternatively called multisig signature transaction

0x1004
MULTISIG

multisig transaction

0x2001
NAMESPACE_REGISTRATION

namespace registration transaction alternatively called provision namespace transaction

0x4001
MOSAIC_DEFINITION

mosaic definition transaction alternatively called mosaic definition creation transaction

0x4002
MOSAIC_SUPPLY_CHANGE

mosaic supply change transaction

Size: 4 bytes = 0x4
schema
LinkAction
enumeration of link actions
0x1
LINK

unlink account

0x2
UNLINK

link account

Size: 4 bytes = 0x4
schema
MosaicTransferFeeType
enumeration of mosaic transfer fee types
0x1
ABSOLUTE

fee represents an absolute value

0x2
PERCENTILE

fee is proportional to a percentile of the transferred mosaic

Size: 4 bytes = 0x4
schema
MosaicSupplyChangeAction
enumeration of mosaic supply change actions
0x1
INCREASE

increases the supply

0x2
DECREASE

decreases the supply

Size: 4 bytes = 0x4
schema
MultisigAccountModificationType
enumeration of multisig account modification types
0x1
ADD_COSIGNATORY

add a new cosignatory

0x2
DELETE_COSIGNATORY

delete an existing cosignatory

Size: 4 bytes = 0x4
schema
MessageType
enumeration of message types this is a hint used by the client but ignored by the server
0x1
PLAIN

plain message

0x2
ENCRYPTED

encrypted message

Size: 4 bytes = 0x4
schema
BlockType
enumeration of block types
0xffffffff
NEMESIS

nemesis block

0x1
NORMAL

normal block

Structures⚓︎

Size: 128 bytes = 0x80
Transaction
binary layout for a transaction
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

Size: 60 bytes = 0x3c
NonVerifiableTransaction
binary layout for a non-verifiable transaction
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

Size: 173 bytes = 0xad
schema
AccountKeyLinkTransactionV1
binary layout for an account key link transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const ACCOUNT_KEY_LINK (0x801)
 
 
 
link_action

link action

 
 
 
remote_public_key_size
byte[4]
reserved 32

remote account public key size

 
 
 
remote_public_key

public key of remote account to which importance should be transferred

Size: 105 bytes = 0x69
schema
NonVerifiableAccountKeyLinkTransactionV1
binary layout for a non-verifiable account key link transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const ACCOUNT_KEY_LINK (0x801)
 
 
 
link_action

link action

 
 
 
remote_public_key_size
byte[4]
reserved 32

remote account public key size

 
 
 
remote_public_key

public key of remote account to which importance should be transferred

Size: 4+ bytes = 0x4+ (variable)
schema
NamespaceId
binary layout for a namespace id
 
 
 
name_size
byte[4]

name size

 
 
 
name
byte[name_size]

name

Size: 8+ bytes = 0x8+ (variable)
schema
MosaicId
binary layout for a mosaic id
 
 
 
namespace_id

namespace id

 
 
 
name_size
byte[4]

name size

 
 
 
name
byte[name_size]

name

Size: 20+ bytes = 0x14+ (variable)
schema
Mosaic
binary layout for a mosaic
 
 
 
mosaic_id_size
byte[4]

mosaic id size

 
 
 
mosaic_id

mosaic id

 
 
 
amount

quantity

Size: 24+ bytes = 0x18+ (variable)
schema
SizePrefixedMosaic
binary layout for a mosaic with a size prefixed size
 
 
 
mosaic_size
byte[4]

mosaic size

 
 
 
mosaic

mosaic

Size: 68+ bytes = 0x44+ (variable)
schema
MosaicLevy
binary layout for a mosaic levy
 
 
 
transfer_fee_type

mosaic fee type

 
 
 
recipient_address_size
byte[4]
reserved 40

recipient address size

 
 
 
recipient_address

recipient address

 
 
 
mosaic_id_size
byte[4]

levy mosaic id size

 
 
 
mosaic_id

levy mosaic id

 
 
 
fee

amount of levy mosaic to transfer

Size: 8+ bytes = 0x8+ (variable)
schema
MosaicProperty
binary layout for a mosaic property supported property names are: divisibility, initialSupply, supplyMutable, transferable
 
 
 
name_size
byte[4]

property name size

 
 
 
name
byte[name_size]

property name

 
 
 
value_size
byte[4]

property value size

 
 
 
value
byte[value_size]

property value

Size: 12+ bytes = 0xc+ (variable)
schema
SizePrefixedMosaicProperty
binary layout for a size prefixed mosaic property
 
 
 
property_size
byte[4]

property size

 
 
 
property

property value

Size: 60+ bytes = 0x3c+ (variable)
schema
MosaicDefinition
binary layout for a mosaic definition
 
 
 
owner_public_key_size
byte[4]
reserved 32

owner public key size

 
 
 
owner_public_key

owner public key

 
 
 
id_size
byte[4]

mosaic id size

 
 
 
id

mosaic id referenced by this definition

 
 
 
description_size
byte[4]

description size

 
 
 
description
byte[description_size]

description

 
 
 
properties_count
byte[4]

number of properties

 
 
 
properties
SizePrefixedMosaicProperty​[properties_count]

properties

 
 
 
levy_size
byte[4]

size of the serialized levy

 
 
 
levy

optional levy that is applied to transfers of this mosaic

This field is only present if:
levy_size not equals 0

Size: 249+ bytes = 0xf9+ (variable)
schema
MosaicDefinitionTransactionV1
binary layout for a mosaic definition transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MOSAIC_DEFINITION (0x4001)
 
 
 
mosaic_definition_size
byte[4]

mosaic definition size

 
 
 
mosaic_definition

mosaic definition

 
 
 
rental_fee_sink_size
byte[4]
reserved 40

mosaic rental fee sink public key size

 
 
 
rental_fee_sink

mosaic rental fee sink public key

 
 
 
rental_fee

mosaic rental fee

Size: 181+ bytes = 0xb5+ (variable)
schema
NonVerifiableMosaicDefinitionTransactionV1
binary layout for a non-verifiable mosaic definition transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MOSAIC_DEFINITION (0x4001)
 
 
 
mosaic_definition_size
byte[4]

mosaic definition size

 
 
 
mosaic_definition

mosaic definition

 
 
 
rental_fee_sink_size
byte[4]
reserved 40

mosaic rental fee sink public key size

 
 
 
rental_fee_sink

mosaic rental fee sink public key

 
 
 
rental_fee

mosaic rental fee

Size: 157+ bytes = 0x9d+ (variable)
schema
MosaicSupplyChangeTransactionV1
binary layout for a mosaic supply change transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MOSAIC_SUPPLY_CHANGE (0x4002)
 
 
 
mosaic_id_size
byte[4]

mosaic id size

 
 
 
mosaic_id

mosaic id

 
 
 
action

supply change action

 
 
 
delta

change amount

Size: 89+ bytes = 0x59+ (variable)
schema
NonVerifiableMosaicSupplyChangeTransactionV1
binary layout for a non-verifiable mosaic supply change transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MOSAIC_SUPPLY_CHANGE (0x4002)
 
 
 
mosaic_id_size
byte[4]

mosaic id size

 
 
 
mosaic_id

mosaic id

 
 
 
action

supply change action

 
 
 
delta

change amount

Size: 40 bytes = 0x28
schema
MultisigAccountModification
binary layout for a multisig account modification
 
 
 
modification_type

modification type

 
 
 
cosignatory_public_key_size
byte[4]
reserved 32

cosignatory public key size

 
 
 
cosignatory_public_key

cosignatory public key

Size: 44 bytes = 0x2c
schema
SizePrefixedMultisigAccountModification
binary layout for a multisig account modification prefixed with size
 
 
 
modification_size
byte[4]

modification size

 
 
 
modification

modification

Size: 137+ bytes = 0x89+ (variable)
schema
MultisigAccountModificationTransactionV1
binary layout for a multisig account modification transaction (V1)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MULTISIG_ACCOUNT_MODIFICATION (0x1001)
 
 
 
modifications_count
byte[4]

number of modifications

 
 
 
modifications

multisig account modifications

Size: 69+ bytes = 0x45+ (variable)
schema
NonVerifiableMultisigAccountModificationTransactionV1
binary layout for a non-verifiable multisig account modification transaction (V1)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MULTISIG_ACCOUNT_MODIFICATION (0x1001)
 
 
 
modifications_count
byte[4]

number of modifications

 
 
 
modifications

multisig account modifications

Size: 145+ bytes = 0x91+ (variable)
schema
MultisigAccountModificationTransactionV2
binary layout for a multisig account modification transaction (V2, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 2
 
 
 
TRANSACTION_TYPE
const MULTISIG_ACCOUNT_MODIFICATION (0x1001)
 
 
 
modifications_count
byte[4]

number of modifications

 
 
 
modifications

multisig account modifications

 
 
 
min_approval_delta_size
byte[4]
reserved 4

the size of the min_approval_delta

 
 
 
min_approval_delta
byte[4]

relative change of the minimal number of cosignatories required when approving a transaction

Size: 77+ bytes = 0x4d+ (variable)
schema
NonVerifiableMultisigAccountModificationTransactionV2
binary layout for a non-verifiable multisig account modification transaction (V2, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 2
 
 
 
TRANSACTION_TYPE
const MULTISIG_ACCOUNT_MODIFICATION (0x1001)
 
 
 
modifications_count
byte[4]

number of modifications

 
 
 
modifications

multisig account modifications

 
 
 
min_approval_delta_size
byte[4]
reserved 4

the size of the min_approval_delta

 
 
 
min_approval_delta
byte[4]

relative change of the minimal number of cosignatories required when approving a transaction

Size: 89 bytes = 0x59
schema
CosignatureV1Body
shared content between V1 verifiable and non-verifiable cosignature transactions
 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MULTISIG_COSIGNATURE (0x1002)
 
 
 
other_​transaction_​hash_​outer_​size
byte[4]
reserved 36

other transaction hash outer size

 
 
 
other_transaction_hash_size
byte[4]
reserved 32

other transaction hash size

 
 
 
other_transaction_hash

other transaction hash

 
 
 
multisig_account_address_size
byte[4]
reserved 40

multisig account address size

 
 
 
multisig_account_address

multisig account address

Size: 217 bytes = 0xd9
schema
CosignatureV1
binary layout for a cosignature transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MULTISIG_COSIGNATURE (0x1002)
 
 
 
other_​transaction_​hash_​outer_​size
byte[4]
reserved 36

other transaction hash outer size

 
 
 
other_transaction_hash_size
byte[4]
reserved 32

other transaction hash size

 
 
 
other_transaction_hash

other transaction hash

 
 
 
multisig_account_address_size
byte[4]
reserved 40

multisig account address size

 
 
 
multisig_account_address

multisig account address

Size: 149 bytes = 0x95
schema
NonVerifiableCosignatureV1
binary layout for a non-verifiable cosignature transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MULTISIG_COSIGNATURE (0x1002)
 
 
 
other_​transaction_​hash_​outer_​size
byte[4]
reserved 36

other transaction hash outer size

 
 
 
other_transaction_hash_size
byte[4]
reserved 32

other transaction hash size

 
 
 
other_transaction_hash

other transaction hash

 
 
 
multisig_account_address_size
byte[4]
reserved 40

multisig account address size

 
 
 
multisig_account_address

multisig account address

Size: 221 bytes = 0xdd
schema
SizePrefixedCosignatureV1
cosignature attached to a multisig transaction with prefixed size
 
 
 
cosignature_size
byte[4]

cosignature size

 
 
 
cosignature

cosignature

Size: 201+ bytes = 0xc9+ (variable)
schema
MultisigTransactionV1
binary layout for a multisig transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MULTISIG (0x1004)
 
 
 
inner_transaction_size
byte[4]

inner transaction size

 
 
 
inner_transaction

inner transaction

 
 
 
cosignatures_count
byte[4]

number of attached cosignatures

 
 
 
cosignatures
SizePrefixedCosignatureV1​[cosignatures_count]

cosignatures

Size: 129 bytes = 0x81
schema
NonVerifiableMultisigTransactionV1
binary layout for a non-verifiable multisig transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const MULTISIG (0x1004)
 
 
 
inner_transaction_size
byte[4]

inner transaction size

 
 
 
inner_transaction

inner transaction

Size: 193+ bytes = 0xc1+ (variable)
schema
NamespaceRegistrationTransactionV1
binary layout for a namespace registration transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const NAMESPACE_REGISTRATION (0x2001)
 
 
 
rental_fee_sink_size
byte[4]
reserved 40

mosaic rental fee sink public key size

 
 
 
rental_fee_sink

mosaic rental fee sink public key

 
 
 
rental_fee

mosaic rental fee

 
 
 
name_size
byte[4]

new namespace name size

 
 
 
name
byte[name_size]

new namespace name

 
 
 
parent_name_size
byte[4]

size of the parent namespace name

 
 
 
parent_name
byte[parent_name_size]

parent namespace name

This field is only present if:
parent_name_size not equals 4294967295

Size: 125+ bytes = 0x7d+ (variable)
schema
NonVerifiableNamespaceRegistrationTransactionV1
binary layout for a non-verifiable namespace registration transaction (V1, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const NAMESPACE_REGISTRATION (0x2001)
 
 
 
rental_fee_sink_size
byte[4]
reserved 40

mosaic rental fee sink public key size

 
 
 
rental_fee_sink

mosaic rental fee sink public key

 
 
 
rental_fee

mosaic rental fee

 
 
 
name_size
byte[4]

new namespace name size

 
 
 
name
byte[name_size]

new namespace name

 
 
 
parent_name_size
byte[4]

size of the parent namespace name

 
 
 
parent_name
byte[parent_name_size]

parent namespace name

This field is only present if:
parent_name_size not equals 4294967295

Size: 8+ bytes = 0x8+ (variable)
schema
Message
binary layout for a message
 
 
 
message_type

message type

 
 
 
message_size
byte[4]

message size

 
 
 
message
byte[message_size]

message payload

Size: 189+ bytes = 0xbd+ (variable)
schema
TransferTransactionV1
binary layout for a transfer transaction (V1)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const TRANSFER (0x101)
 
 
 
recipient_address_size
byte[4]
reserved 40

recipient address size

 
 
 
recipient_address

recipient address

 
 
 
amount

XEM amount

 
 
 
message_envelope_size
byte[4]

message envelope size

 
 
 
message

optional message

This field is only present if:
message_envelope_size not equals 0

Size: 121+ bytes = 0x79+ (variable)
schema
NonVerifiableTransferTransactionV1
binary layout for a non-verifiable transfer transaction (V1)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 1
 
 
 
TRANSACTION_TYPE
const TRANSFER (0x101)
 
 
 
recipient_address_size
byte[4]
reserved 40

recipient address size

 
 
 
recipient_address

recipient address

 
 
 
amount

XEM amount

 
 
 
message_envelope_size
byte[4]

message envelope size

 
 
 
message

optional message

This field is only present if:
message_envelope_size not equals 0

Size: 193+ bytes = 0xc1+ (variable)
schema
TransferTransactionV2
binary layout for a transfer transaction (V2, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 2
 
 
 
TRANSACTION_TYPE
const TRANSFER (0x101)
 
 
 
recipient_address_size
byte[4]
reserved 40

recipient address size

 
 
 
recipient_address

recipient address

 
 
 
amount

XEM amount

 
 
 
message_envelope_size
byte[4]

message envelope size

 
 
 
message

optional message

This field is only present if:
message_envelope_size not equals 0
 
 
 
mosaics_count
byte[4]

number of attached mosaics

 
 
 
mosaics
SizePrefixedMosaic​[mosaics_count]

attached mosaics notice that mosaic amount is multipled by transfer amount to get effective amount

Size: 125+ bytes = 0x7d+ (variable)
schema
NonVerifiableTransferTransactionV2
binary layout for a non-verifiable transfer transaction (V2, latest)
 
 
 
type

transaction type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
fee

transaction fee

 
 
 
deadline

transaction deadline

 
 
 
TRANSACTION_VERSION
byte[1]
const 2
 
 
 
TRANSACTION_TYPE
const TRANSFER (0x101)
 
 
 
recipient_address_size
byte[4]
reserved 40

recipient address size

 
 
 
recipient_address

recipient address

 
 
 
amount

XEM amount

 
 
 
message_envelope_size
byte[4]

message envelope size

 
 
 
message

optional message

This field is only present if:
message_envelope_size not equals 0
 
 
 
mosaics_count
byte[4]

number of attached mosaics

 
 
 
mosaics
SizePrefixedMosaic​[mosaics_count]

attached mosaics notice that mosaic amount is multipled by transfer amount to get effective amount

Size: 168+ bytes = 0xa8+ (variable)
schema
Block
binary layout for a block
 
 
 
type

block type

 
 
 
version
byte[1]

entity version

 
 
 
entity_body_reserved_1
byte[2]
reserved 0

reserved padding between version and network type

 
 
 
network

entity network

 
 
 
timestamp

entity timestamp

 
 
 
signer_public_key_size
byte[4]
reserved 32

entity signer public key size

 
 
 
signer_public_key

entity signer public key

 
 
 
signature_size
byte[4]
reserved 64

entity signature size

 
 
 
signature

entity signature

 
 
 
previous_block_hash_outer_size
byte[4]
reserved 36

previous block hash outer size

 
 
 
previous_block_hash_size
byte[4]
reserved 32
 
 
 
previous_block_hash
 
 
 
height

block height

 
 
 
transactions_count
byte[4]

transactions count

 
 
 
transactions
Transaction​[transactions_count]

transactions