Serialization
Basic Types
Enumerations
NetworkType
enumeration of network types |
MAINNET
main network
TESTNET
test network
TransactionType
enumeration of transaction types |
TRANSFER
transfer transaction
ACCOUNT_KEY_LINK
account key link trasaction alternatively called importance transfer transaction
MULTISIG_ACCOUNT_MODIFICATION
multisig account modification transaction alternatively called multisig consignatory modification transaction
MULTISIG_COSIGNATURE
multisig cosignature transaction alternatively called multisig signature transaction
MULTISIG_TRANSACTION
multisig transaction
NAMESPACE_REGISTRATION
namespace registration transaction alternatively called provision namespace transaction
MOSAIC_DEFINITION
mosaic definition transaction alternatively called mosaic definition creation transaction
MOSAIC_SUPPLY_CHANGE
mosaic supply change transaction
BlockType
enumeration of block types |
NEMESIS
nemesis block
NORMAL
normal block
LinkAction
enumeration of link actions |
LINK
unlink account
UNLINK
link account
MosaicTransferFeeType
enumeration of mosaic transfer fee types |
ABSOLUTE
fee represents an absolute value
PERCENTILE
fee is proportional to a percentile of the transferred mosaic
MosaicSupplyChangeAction
enumeration of mosaic supply change actions |
INCREASE
increases the supply
DECREASE
decreases the supply
MultisigAccountModificationType
enumeration of multisig account modification types |
ADD_COSIGNATORY
add a new cosignatory
DELETE_COSIGNATORY
delete an existing cosignatory
MessageType
enumeration of message types this is a hint used by the client but ignored by the server |
PLAIN
plain message
ENCRYPTED
encrypted message
Structures
Block
binary layout for a block |
type
block type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
previous_block_hash
previous block hash
height
block height
transactions_count
transactions count
transactions
transactions
AccountKeyLinkTransaction
binary layout for an account key link transaction |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
ACCOUNT_KEY_LINK
(0x801
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
link_action
link action
remote_public_key_size
32
remote account public key size
remote_public_key
public key of remote account to which importance should be transferred
NamespaceId
binary layout for a namespace id |
name_size
name size
name
name
MosaicId
binary layout for a mosaic id |
Mosaic
binary layout for a mosaic |
MosaicLevy
binary layout for a mosaic levy |
transfer_fee_type
mosaic fee type
recipient_address_size
40
recipient address size
recipient_address
recipient address
mosaic_id
levy mosaic
fee
amount of levy mosaic to transfer
MosaicProperty
binary layout for a mosaic property supported property names are: divisibility, initialSupply, supplyMutable, transferable |
name_size
property name size
name
property name
value_size
property value size
value
property value
MosaicDefinition
binary layout for a mosaic definition |
owner_public_key_size
32
owner public key size
owner_public_key
owner public key
id
mosaic id referenced by this definition
description_size
description size
description
description
properties_count
number of properties
properties
properties
levy_size
size of the serialized levy
levy
optional levy that is applied to transfers of this mosaic
MosaicDefinitionTransaction
binary layout for an importance transfer transaction |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
MOSAIC_DEFINITION
(0x4001
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
mosaic_definition
mosaic definition
rental_fee_sink_size
40
mosaic rental fee sink public key size
rental_fee_sink
mosaic rental fee sink public key
rental_fee
mosaic rental fee
MosaicSupplyChangeTransaction
binary layout for an mosaic supply change transaction |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
MOSAIC_SUPPLY_CHANGE
(0x4002
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
mosaic_id
mosaic id
action
supply change action
delta
change amount
MultisigAccountModification
binary layout for a multisig account modification |
modification_type
modification type
cosignatory_public_key_size
32
cosignatory public size
cosignatory_public_key
cosignatory public key
MultisigAccountModificationTransaction2
binary layout for a multisig account modification transaction (V2) |
TRANSACTION_VERSION
2
TRANSACTION_VERSION
1
TRANSACTION_TYPE
MULTISIG_ACCOUNT_MODIFICATION
(0x1001
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
modifications_count
number of modifications
modifications
multisig account modifications
min_approval_delta_size
4
the size of the min_approval_delta
min_approval_delta
relative change of the minimal number of cosignatories required when approving a transaction
Cosignature
cosignature attached to an aggregate transaction |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
MULTISIG_COSIGNATURE
(0x1002
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
multisig_​transaction_​hash_​outer_​size
36
multisig transaction hash outer size
multisig_transaction_hash_size
32
multisig transaction hash size
multisig_transaction_hash
multisig transaction hash
multisig_account_address_size
40
multisig account address size
multisig_account_address
multisig account address
MultisigTransaction
binary layout for a multisig transaction |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
MULTISIG_TRANSACTION
(0x1004
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
inner_transaction_size
inner transaction size
inner_transaction
inner transaction
cosignatures_count
number of attached cosignatures
cosignatures
cosignatures
NamespaceRegistrationTransaction
binary layout for a namespace registration transaction |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
NAMESPACE_REGISTRATION
(0x2001
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
rental_fee_sink_size
40
mosaic rental fee sink public key size
rental_fee_sink
mosaic rental fee sink public key
rental_fee
mosaic rental fee
name_size
new namespace name size
name
new namespace name
parent_name_size
size of the parent namespace name
parent_name
parent namespace name
Message
binary layout for a message |
message_type
message type
message_size
message size
message
message payload
TransferTransaction2
binary layout for a transfer transaction (V2) |
TRANSACTION_VERSION
2
TRANSACTION_VERSION
1
TRANSACTION_TYPE
TRANSFER
(0x101
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
recipient_address_size
40
recipient address size
recipient_address
recipient address
amount
XEM amount
message_envelope_size
message envelope size
message
optional message
mosaics_count
number of attached mosaics
mosaics
attached mosaics notice that mosaic amount is multipled by transfer amount to get effective amount
Inner Structures
These are structures only meant to be included inside other structures. Their description is already present in the containing structures above and is only repeated here for completeness.
EntityBody
binary layout for a blockchain entity (block or transaction) |
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
Included in:
Transaction
binary layout for a transaction |
type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
Included in:
MultisigAccountModificationTransaction
binary layout for a multisig account modification transaction (V1) |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
MULTISIG_ACCOUNT_MODIFICATION
(0x1001
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
modifications_count
number of modifications
modifications
multisig account modifications
Included in:
TransferTransaction
binary layout for a transfer transaction (V1) |
TRANSACTION_VERSION
1
TRANSACTION_TYPE
TRANSFER
(0x101
)type
transaction type
version
entity version
entity_body_reserved_1
0
reserved padding between version and network type
network
entity network
timestamp
entity timestamp
signer_public_key_size
32
entity signer public key size
signer_public_key
entity signer public key
signature_size
64
entity signature size
signature
entity signature
fee
transaction fee
deadline
transaction deadline
recipient_address_size
40
recipient address size
recipient_address
recipient address
amount
XEM amount
message_envelope_size
message envelope size
message
optional message