Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private structFinders

structFinders: FindStructsFns = ...

Accessors

ipfs

substrate

Methods

findAllPosts

findAllSpaces

findPost

findPostWithAllDetails

findPostWithSomeDetails

findPosts

findPostsWithAllDetails

findPostsWithSomeDetails

findProfile

findProfiles

findPublicPost

  • Find and load information about a public post from Subsocial blockchain and IPFS using post id.

    Post is considered public if it meets the next conditions:

    • The hidden field on it's blockchain structure is false.
    • And there is a corresponding JSON file that represents the post's content on IPFS.

    Parameters

    Returns Promise<CommonData<Post, PostContent>>

    Data about desired post aggregated from blockchain and IPFS. If no corresponding post to given id, undefined is returned.

findPublicPostWithAllDetails

findPublicPostWithSomeDetails

findPublicPosts

  • Find and load an array of information about public posts from Subsocial blockchain and IPFS by a given array of post ids.

    Post is considered public if it meets the next conditions:

    • The hidden field on its' blockchain structure is false.
    • And there is a corresponding JSON file that represents the post's content on IPFS.

    Parameters

    • ids: AnySpaceId[]

      An array of ids of desired posts.

    Returns Promise<CommonData<Post, PostContent>[]>

    An array of data about desired posts aggregated from Subsocial blockchain and IPFS. If no corresponding posts to given array of ids, an empty array is returned.

findPublicPostsWithAllDetails

findPublicPostsWithSomeDetails

findPublicSpace

  • Find and load information about a public space from Subsocial blockchain and IPFS using space id.

    Space is considered public if it meets these conditions:

    • The hidden field on it's blockchain structure is false.
    • And there is a corresponding JSON file that represents the space's content on IPFS.

    Parameters

    Returns Promise<CommonData<Space, SpaceContent>>

    Data about desired space aggregated from blockchain and IPFS. If no corresponding space to given id, undefined is returned.

findPublicSpaces

  • Find and load an array of information about public spaces from Subsocial blockchain and IPFS by a given array of space ids.

    Space is considered public if it meets the next conditions:

    • The hidden field on its' blockchain structure is false.
    • And there is a corresponding JSON file that represents the space's content on IPFS.

    Parameters

    • ids: AnySpaceId[]

      An array of ids of desired spaces.

    Returns Promise<CommonData<Space, SpaceContent>[]>

    An array of data about desired spaces aggregated from Subsocial blockchain and IPFS. If no corresponding spaces to given array of ids, an empty array is returned.

findSpace

findSpaces

findUnlistedPost

  • Find and load information about an unlisted post from blockchain and from IPFS by a given post id.

    Post is considered unlisted if it meets either of these conditions:

    • The hidden field on it's blockchain structure is true.
    • Or there is no corresponding JSON file that represents the post's content on IPFS.

    Parameters

    Returns Promise<CommonData<Post, PostContent>>

    Data about desired post aggregated from blockchain and IPFS. If no corresponding post to given id, undefined is returned.

findUnlistedPostWithAllDetails

findUnlistedPostWithSomeDetails

findUnlistedPosts

  • Find and load an array of information about unlisted posts from Subsocial blockchain and IPFS by a given array of post ids.

    Post is considered unlisted if it meets either of these conditions:

    • The hidden field on it's blockchain structure is true.
    • Or there is no corresponding JSON file that represents the post's content on IPFS.

    Parameters

    • ids: AnySpaceId[]

      An array of ids of desired posts

    Returns Promise<CommonData<Post, PostContent>[]>

    An array of data about desired posts aggregated from Subsocial blockchain and IPFS. If no corresponding posts to given array of ids, an empty array is returned.

findUnlistedPostsWithAllDetails

findUnlistedPostsWithSomeDetails

findUnlistedSpace

  • Find and load information about an unlisted space from blockchain and from IPFS by a given space id.

    Space is considered unlisted if it meets either of these conditions:

    • The hidden field on it's blockchain structure is true.
    • Or there is no corresponding JSON file that represents the space's content on IPFS.

    Parameters

    Returns Promise<CommonData<Space, SpaceContent>>

    Data about a desired space aggregated from blockchain and IPFS. If no corresponding space to given id, undefined is returned.

findUnlistedSpaces

  • Find and load an array of information about unlisted spaces from Subsocial blockchain and IPFS by a given array of space ids.

    Space is considered unlisted if it meets either of these conditions:

    • The hidden field on it's blockchain structure is true.
    • Or there is no corresponding JSON file that represents the space's content on IPFS.

    Parameters

    • ids: AnySpaceId[]

      An array of ids of desired spaces.

    Returns Promise<CommonData<Space, SpaceContent>[]>

    An array of data about desired spaces aggregated from Subsocial blockchain and IPFS. If no corresponding spaces to given array of ids, an empty array is returned.