PIN Data Structure
The MAN indexer extracts MetaID protocol data from the reveal scripts of Taproot transactions. For detailed protocol information, please refer to the MetaID Specification section.
PIN Data Structure
PIN Indexing Rules
General
Flag Recognition: The flag is
metaid
.Case Sensitivity: Case insensitive. The indexer can store all data in lowercase.
Operation
The
pinid
of aninit
type PIN is a user'sMetaID
.init
andcreate
operations follow the first-come, first-served principle.Within the same block, the order of
init
andcreate
operations is not distinguished. The indexer should processinit
type PINs first to establish themetaid
.
Path
For the same path,
init
andcreate
PINs are indexed by the oldest entry, whilemodify
andrevoke
operations consider the most recent entry.modify
andrevoke
operations must act on already included PINs. These operations are valid only for already included PINs, even within the same block.Non-
init
PIN paths must fall within the following default paths for a MetaID:(1) /info
(2) /protocols
(3) /file
(4) /ft
(5) /nft
(6) /follow
Paths for
modify
andrevoke
operations should specify the target PIN using@pinId
.
PIN Status Codes
0
Normal PIN
-1
PIN being revoked
1
PIN being modified
-101
Target PIN's block height ⤠Current PIN's block height
-102
Target PIN has already been transferred
-201
PIN being modified, correct format, but the PINId in @+PINID does not exist (confirmed PIN)
-202
PIN being modified, correct format, but the address initiating the modify does not exist
-203
PIN being modified, correct format, address initiating the modify exists, but the target PIN's address is not equal to the current PIN's address
-204
Target PIN already has a modify (status code 1)
-205
Target PIN's Operation is init
-301
PIN being revoked, correct format, but the PINId in @+PINID does not exist
-302
PIN being revoked, correct format, but the address initiating the revoke does not exist
-303
PIN being revoked, correct format, address initiating the revoke exists, but the target PIN's address is not equal to the current PIN's address
-304
Target PIN has already been revoked (status code -1)
-305
PIN being revoked, correct format, but the target PIN's Operation is init or the target PIN's Path is /info/
For more information, please refer to the MAN source code:
Last updated