Serialization
Basic Types
Enumerations
NetworkType
enumeration of network types |
MAINNETmain network
TESTNETtest network
TransactionType
enumeration of transaction types |
TRANSFERtransfer transaction
ACCOUNT_KEY_LINKaccount key link trasaction alternatively called importance transfer transaction
MULTISIG_ACCOUNT_MODIFICATIONmultisig account modification transaction alternatively called multisig consignatory modification transaction
MULTISIG_COSIGNATUREmultisig cosignature transaction alternatively called multisig signature transaction
MULTISIG_TRANSACTIONmultisig transaction
NAMESPACE_REGISTRATIONnamespace registration transaction alternatively called provision namespace transaction
MOSAIC_DEFINITIONmosaic definition transaction alternatively called mosaic definition creation transaction
MOSAIC_SUPPLY_CHANGEmosaic supply change transaction
BlockType
enumeration of block types |
NEMESISnemesis block
NORMALnormal block
LinkAction
enumeration of link actions |
LINKunlink account
UNLINKlink account
MosaicTransferFeeType
enumeration of mosaic transfer fee types |
ABSOLUTEfee represents an absolute value
PERCENTILEfee is proportional to a percentile of the transferred mosaic
MosaicSupplyChangeAction
enumeration of mosaic supply change actions |
INCREASEincreases the supply
DECREASEdecreases the supply
MultisigAccountModificationType
enumeration of multisig account modification types |
ADD_COSIGNATORYadd a new cosignatory
DELETE_COSIGNATORYdelete an existing cosignatory
MessageType
enumeration of message types this is a hint used by the client but ignored by the server |
PLAINplain message
ENCRYPTEDencrypted message
Structures
Block
binary layout for a block |
typeblock type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
previous_block_hashprevious block hash
heightblock height
transactions_counttransactions count
transactionstransactions
AccountKeyLinkTransaction
binary layout for an account key link transaction |
TRANSACTION_VERSION1TRANSACTION_TYPEACCOUNT_KEY_LINK (0x801)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
link_actionlink action
remote_public_key_size32remote account public key size
remote_public_keypublic key of remote account to which importance should be transferred
NamespaceId
binary layout for a namespace id |
name_sizename size
namename
MosaicId
binary layout for a mosaic id |
Mosaic
binary layout for a mosaic |
MosaicLevy
binary layout for a mosaic levy |
transfer_fee_typemosaic fee type
recipient_address_size40recipient address size
recipient_addressrecipient address
mosaic_idlevy mosaic
feeamount of levy mosaic to transfer
MosaicProperty
binary layout for a mosaic property supported property names are: divisibility, initialSupply, supplyMutable, transferable |
name_sizeproperty name size
nameproperty name
value_sizeproperty value size
valueproperty value
MosaicDefinition
binary layout for a mosaic definition |
owner_public_key_size32owner public key size
owner_public_keyowner public key
idmosaic id referenced by this definition
description_sizedescription size
descriptiondescription
properties_countnumber of properties
propertiesproperties
levy_sizesize of the serialized levy
levyoptional levy that is applied to transfers of this mosaic
MosaicDefinitionTransaction
binary layout for an importance transfer transaction |
TRANSACTION_VERSION1TRANSACTION_TYPEMOSAIC_DEFINITION (0x4001)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
mosaic_definitionmosaic definition
rental_fee_sink_size40mosaic rental fee sink public key size
rental_fee_sinkmosaic rental fee sink public key
rental_feemosaic rental fee
MosaicSupplyChangeTransaction
binary layout for an mosaic supply change transaction |
TRANSACTION_VERSION1TRANSACTION_TYPEMOSAIC_SUPPLY_CHANGE (0x4002)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
mosaic_idmosaic id
actionsupply change action
deltachange amount
MultisigAccountModification
binary layout for a multisig account modification |
modification_typemodification type
cosignatory_public_key_size32cosignatory public size
cosignatory_public_keycosignatory public key
MultisigAccountModificationTransaction2
binary layout for a multisig account modification transaction (V2) |
TRANSACTION_VERSION2TRANSACTION_VERSION1TRANSACTION_TYPEMULTISIG_ACCOUNT_MODIFICATION (0x1001)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
modifications_countnumber of modifications
modificationsmultisig account modifications
min_approval_delta_size4the size of the min_approval_delta
min_approval_deltarelative change of the minimal number of cosignatories required when approving a transaction
Cosignature
cosignature attached to an aggregate transaction |
TRANSACTION_VERSION1TRANSACTION_TYPEMULTISIG_COSIGNATURE (0x1002)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
multisig_​transaction_​hash_​outer_​size36multisig transaction hash outer size
multisig_transaction_hash_size32multisig transaction hash size
multisig_transaction_hashmultisig transaction hash
multisig_account_address_size40multisig account address size
multisig_account_addressmultisig account address
MultisigTransaction
binary layout for a multisig transaction |
TRANSACTION_VERSION1TRANSACTION_TYPEMULTISIG_TRANSACTION (0x1004)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
inner_transaction_sizeinner transaction size
inner_transactioninner transaction
cosignatures_countnumber of attached cosignatures
cosignaturescosignatures
NamespaceRegistrationTransaction
binary layout for a namespace registration transaction |
TRANSACTION_VERSION1TRANSACTION_TYPENAMESPACE_REGISTRATION (0x2001)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
rental_fee_sink_size40mosaic rental fee sink public key size
rental_fee_sinkmosaic rental fee sink public key
rental_feemosaic rental fee
name_sizenew namespace name size
namenew namespace name
parent_name_sizesize of the parent namespace name
parent_nameparent namespace name
Message
binary layout for a message |
message_typemessage type
message_sizemessage size
messagemessage payload
TransferTransaction2
binary layout for a transfer transaction (V2) |
TRANSACTION_VERSION2TRANSACTION_VERSION1TRANSACTION_TYPETRANSFER (0x101)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
recipient_address_size40recipient address size
recipient_addressrecipient address
amountXEM amount
message_envelope_sizemessage envelope size
messageoptional message
mosaics_countnumber of attached mosaics
mosaicsattached 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) |
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
Included in:
Transaction
binary layout for a transaction |
typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
Included in:
MultisigAccountModificationTransaction
binary layout for a multisig account modification transaction (V1) |
TRANSACTION_VERSION1TRANSACTION_TYPEMULTISIG_ACCOUNT_MODIFICATION (0x1001)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
modifications_countnumber of modifications
modificationsmultisig account modifications
Included in:
TransferTransaction
binary layout for a transfer transaction (V1) |
TRANSACTION_VERSION1TRANSACTION_TYPETRANSFER (0x101)typetransaction type
versionentity version
entity_body_reserved_10reserved padding between version and network type
networkentity network
timestampentity timestamp
signer_public_key_size32entity signer public key size
signer_public_keyentity signer public key
signature_size64entity signature size
signatureentity signature
feetransaction fee
deadlinetransaction deadline
recipient_address_size40recipient address size
recipient_addressrecipient address
amountXEM amount
message_envelope_sizemessage envelope size
messageoptional message