Follow Node
Introduction
The follow node is an integral part of the MetaID specification, allowing users to create and maintain their social relationships within the blockchain network. By utilizing follow, we can significantly enhance the social capabilities of MetaID, providing users with a richer and more in-depth interaction experience.

Spec
The script format for the follow protocol is as follows:
OP_FALSE
OP_IF
metaid
create
/follow
0
0
application/json;utf-8
{metaid}
OP_ENDIFConventions for follow
followIn the
followformat,createrepresents a follow action, whilerevokerepresents an unfollow action.In the
revokeoperation, thepathmust locate a validPIN, and thisPINmust be a validfollowPIN.
Example
Taking user A following user B as an example:
User A's MetaID:
c08c4e96514ee5c4f91b6df3de7a42f797a36af7265918a6b74d5198f87682adUser B's MetaID:
2464ad8d35e601f8b73c80976104ff00e878f58dc2f2936ec3a269fe34d962c2
The script operation for user A to follow user B is as follows:
OP_FALSE
OP_IF
metaid
create
/follow
0
0
application/json;utf-8
2464ad8d35e601f8b73c80976104ff00e878f58dc2f2936ec3a269fe34d962c2
OP_ENDIFAfter the follow PIN is committed to the blockchain, the generated pinId is: dcvv5d4377f36c7c2466259593d0d4a0c1e5d7ec19500e082ce1eea3993f22b1aac1i0
Then, the script operation for user A to unfollow user B is as follows:
OP_FALSE
OP_IF
metaid
revoke
@dcvv5d4377f36c7c2466259593d0d4a0c1e5d7ec19500e082ce1eea3993f22b1aac1
OP_0
OP_0
OP_0
OP_0
OP_ENDIFBoth follow and unfollow operations take effect immediately and generate corresponding records on the blockchain.
Last updated