Anchor
Anchoring stores a hash on the blockchain, allowing anyone to verify that data hasn't been tempered with.
JSON
id
andheight
should be omitted when broadcasting. These fields are set by the node.Binary strings are base58 encoded.
timestamp
is in microseconds since epoch.fee
includes 8 digits, soLTO * 10^8
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.
Anchor length and Anchor are repeated for each anchor hash.
The maximum length of an anchor is 100 bytes.
Network id can be obtained by taking the 2nd byte from the sender address.
Each key type has a numeric id in addition to the reference from the JSON.
Integers (short, int, long) have a big endian byte order.
Last updated