Social Interactions
NEAR components can natively communicate with the SocialDB smart contract (currently deployed at social.near).
The SocialDB
is a contract that stores key-value
pairs, and is used mostly to store social-related data, such as posts
, likes
, or profiles
.
팁
Besides user data, the SocialDB
contract stores all existing NEAR components.
Social.get
Social.get
queries a key from the SocialDB contract and returns the data. The key being queried can contain wildcards.
For example:
alice.near/profile/**
will match the entire profile data of account alice.near.alice.near/profile/*
will match all the fields of the profile, but not the nested objects.alice.near/profile/name
will match only the name field of the profile.*/widget/*
will match all the widgets of all the accounts.
Loading...
Parameters
param | 필수 여부 | type | 설명 |
---|---|---|---|
patterns | required | string / string[] | 경로 패턴 |
finality | 선택사항 | "final" / 숫자 | 블록 높이 또는 완결성 |
options | optional |