Spaces
#
Find and load a single space#
findSpaceExample:
Properties | Description |
---|---|
id | ID of the desired struct. |
visibility | Filter for the visible state of the structs (see Visibility). |
๐ FindSpaceQuery: FindStruct < AnySpaceId >
๐ SpaceData: CommonData < Space, SpaceContent >
#
Find and load an array of spaces#
findAllSpacesExample:
๐ AnySpaceId: SpaceId | BN
๐ SpaceData: CommonData < Space, SpaceContent >
#
findSpacesExample:
Properties | Description |
---|---|
ids | An array of IDs of the desired structs. |
visibility | Filter for the visible state of the structs (see Visibility). |
withContentOnly? | Boolean. |
๐ Visibility: 'onlyVisible' | 'onlyHidden' | 'onlyPublic' | 'onlyUnlisted'
๐ SpaceData: CommonData < Space, SpaceContent >
#
findPublicSpacesLoad an array of information about public spaces from the Subsocial blockchain and IPFS by a given array of space ids
.
A space is considered public if it meets these conditions:
- The
hidden
field on its blockchain structure isfalse
. - And there is a corresponding JSON file that represents the space's content on IPFS.
Example:
๐ AnySpaceId: SpaceId | BN
๐ SpaceData: CommonData < Space, SpaceContent >
#
findUnlistedSpacesFind and load an array of information about unlisted spaces from the Subsocial blockchain and IPFS by a given array of space ids
.
A space is considered unlisted if it meets either of these conditions:
- The
hidden
field on its blockchain structure istrue
. - Or there is no corresponding JSON file that represents the space's content on IPFS.
Example:
๐ AnySpaceId: SpaceId | BN
๐ SpaceData: CommonData < Space, SpaceContent >