Anchor
Anchoring stores a hash on the blockchain, allowing anyone to verify that data hasn't been tempered with.
JSON
Batch transaction
Up to 100 hashes can be anchored in a single transaction. Bundling multiple anchors in 1 transaction can help reduce transaction fees.
The Anchor fee is made up of two amounts: a fixed one plus a per-anchor one. The fees are calculated as:
where N
is the number of anchor hashes in the transaction. The total is rounded up to the nearest 100_000.
Binary schema
The binary data structure of the unsigned transaction.
1
Transaction type
Byte (constant, value=15)
1
2
Version
Byte (constant, value=3)
1
3
Network id
Byte
1
4
Timestamp
Long
8
5
Sender's key type
KeyType (Byte)
1
6
Sender's public key
PublicKey (Array[Byte])
32 | 33
7
Fee
Long
8
8
Number of anchors
Short
2
9
Anchor 1 length (N)
Byte
2
10
Anchor 1
Array[Byte]
N
...
Last updated