Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SubsocialSubstrateApi

Index

Constructors

constructor

Properties

Private _api

_api: ApiPromise

Accessors

api

  • get api(): Promise<ApiPromise>

Methods

findPost

  • Find and load information about a post from Subsocial blockchain by a given id and visibility filter.

    Parameters

    Returns Promise<Post>

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

findPosts

  • Find and load an array of information about posts from Subsocial blockchain by a given array of ids and visibility filter.

    Parameters

    Returns Promise<Post[]>

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

findReaction

  • Find and load information about a reaction from Subsocial blockchain by a given id.

    Parameters

    Returns Promise<Reaction>

    Data about desired reaction from Subsocial blockchain. If no corresponding reaction to given id, undefined is returned.

findReactions

  • Find and load an array of information about reactions from Subsocial blockchain by a given array of ids.

    Parameters

    Returns Promise<Reaction[]>

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

findSocialAccount

  • Find and load information about a profile from Subsocial blockchain by a given id.

    Parameters

    Returns Promise<SocialAccountWithId>

    Data about desired profile from Subsocial blockchain. If no corresponding profile to given id, undefined is returned.

findSocialAccounts

  • Find and load an array of information about social profiles from Subsocial blockchain by a given array of account ids.

    Parameters

    • ids: AnyAccountId[]

      An array of account ids of desired profiles.

    Returns Promise<SocialAccountWithId[]>

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

findSpace

  • Find and load information about a space from Subsocial blockchain by a given id and visibility filter.

    Parameters

    Returns Promise<Space>

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

findSpaces

  • Find and load an array of information about spaces from Subsocial blockchain by a given array of ids and visibility filter.

    Parameters

    Returns Promise<Space[]>

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

findStructs

getAccountIdByHandle

  • getAccountIdByHandle(handle: string): Promise<AccountId>

getPalletQuery

  • getPalletQuery(pallet: PalletName): Promise<QueryableModuleStorage<"promise">>

getPostReactionIdByAccount

Private getReactionIdByAccount

getReplyIdsByPostId

getSpaceIdByHandle

  • getSpaceIdByHandle(handle: string): Promise<SpaceId>

isAccountFollower

Private isBooleanByAccount

isPostSharedByAccount

isSpaceFollower

nextPostId

  • nextPostId(): Promise<PostId>

nextSpaceId

postIdsBySpaceId

Private queryPallet

  • queryPallet(params: StorageItem, value?: any): Promise<any>

Private queryPalletMulti

  • queryPalletMulti(params: StorageItem, value: any[]): Promise<any[]>

Private queryPosts

  • queryPosts(storage: string, value?: any): Promise<any>

Private queryProfiles

  • queryProfiles(storage: string, value?: any): Promise<any>

Private querySpaces

  • querySpaces(storage: string, value?: any): Promise<any>

spaceIdsByOwner

spaceIdsFollowedByAccount