Skip to content

IPFS

TypeGroup Type
1 5

This transaction type utilises a special data field similar to the Memo to store Interplanetary File System data on the blockchain. This provides an easy way to timestamp and optionally encrypt and verify files. This implementation of the IPFS transaction type won’t allow storing data on the blockchain - for that, special IPFS nodes are needed.

References
API Endpoints Link
AJV Schema Base | IPFS

JSON

{
    "version": 3,
    "network": 63,
    "typeGroup": 1,
    "type": 5,
    "nonce": "7",
    "senderPublicKey": "034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192",
    "fee": "5000000",
    "asset": {
        "ipfs": "QmYSK2JyM3RyDyB52caZCTKFR3HKniEcMnNJYdk8DQ6KKB"
    }
}

Serialised

ff033f0100000005000700000000000000034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192404b4c00000000000012209608184d6cee2b9af8e6c2a46fc9318adf73329aeb8a86cf8472829fff5bb89e

Deserialised

Key Pos. Size
(bytes)
Value
(hex)
Header: [0] 1 0xff
Version: [1] 1 0x03
Network: [2] 1 0x3f
TypeGroup: [3] 4 0x01000000
Type: [7] 2 0x0500
Nonce: [9] 8 0x0700000000000000
SenderPublicKey: [17] 33 0x034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192
Fee: [50] 8 0x404b4c0000000000
Memo Length: [58] 1 0x00
IPFS Hash: [59] 34 0x12209608184d6cee2b9af8e6c2a46fc9318adf73329aeb8a86cf8472829fff5bb89e

IPFS hash

Item Length
(chars)
Value
IPFS Hash 46 QmYSK2JyM3RyDyB52caZCTKFR3HKniEcMnNJYdk8DQ6KKB
Decoded Base58 34 0x12209608184d6cee2b9af8e6c2a46fc9318adf73329aeb8a86cf8472829fff5bb89e
Hash Type 1 0x12
Hash Length 1 0x20
32-Byte Hash 32 0x9608184d6cee2b9af8e6c2a46fc9318adf73329aeb8a86cf8472829fff5bb89e