Private
Readonly
_baseGetter for an ApiPromise to connect to Subsocial nodes and query chain states. It is useful in the case of querying data about posts, spaces, and profiles.
Accessors for private field _base.substrate
Getter for an aggregated ApiPromise to work with IPFS. It is useful for getting the contents of spaces, posts, and profiles.
Accessors for private field _base.ipfs
Getter for a Polkadot ApiPromise without wrappers to call functions from Subsocial Pallets. It is useful for creating specific txs or queries.
Accessors for private field _base.substrate.api
Find and load data about a domain from the Subsocial blockchain by a given string of domainName
.
Data about a desired domain name from the Subsocial blockchain. If there is no domain name corresponding to the given domainName
,
undefined
is returned.
A string that is a domain name.
Find and load an array of information about some domain structs from the Subsocial blockchain by a given array of domainNames
.
An array of data about the desired domain structs aggregated from the Subsocial blockchain. If there are no domains corresponding to the given array of domainNames
,
an empty array is returned.
An array of domain names.
Find and load data about a post from the Subsocial blockchain and IPFS by a given query
object.
Data about a post aggregated from the Subsocial blockchain and IPFS. If there is no
post corresponding to the given query
object, undefined is returned.
An object containing the desired post id
, a visibility filter (hidden
field), and a content filter (with or without IPFS content).
Find and load information about post structs (can be Unlisted or Public, depending on filters
) from the Subsocial blockchain and IPFS
by a given post id
and filters
object.
Data about post structs aggregated from the Subsocial blockchain and IPFS. If there are no
post structs corresponding to the given post id
and filters
object, undefined is returned.
The post id of the desired post structs.
Optional
filters: Filters(Optional) An object containing a visibility filter (hidden
field) and content filter (with or without IPFS content).
Find and load an array of information about post structs (can be Unlisted or Public, depending on filters
) from the Subsocial blockchain and IPFS
by a given array of post ids
and filters
object.
An array of information about post structs aggregated from the Subsocial blockchain and IPFS. If there are no
post structs corresponding to the given post ids
and filters
object, an empty array is returned.
An array of the post ids of the desired post structs.
Optional
filters: Filters(Optional) An object containing a visibility filter (hidden
field) and content filter (with or without IPFS content).
Find and load information about a post with all of its details: extension (PostExtensionData), owner (SpaceData), and space (SpaceData). These methods are deprecated, because they are slow (although quite useful for UI).
Find and load information about a post with some of its details: extension (PostExtensionData), owner (SpaceData), and space (SpaceData). These methods are deprecated, because they are slow (although quite useful for UI).
Find and load an array of information about posts (can be Unlisted or Public, depending on filter
object) from the Subsocial blockchain and IPFS by a given filter
object.
An array of data about the desired posts aggregated from the Subsocial blockchain and IPFS. If there are no
posts corresponding to the given filter
object, an empty array is returned.
An object containing the desired post ids
, a visibility filter (hidden
field), and a content filter (with or without IPFS content).
Find and load an array of information about a post with all of its details: extension (PostExtensionData), owner (SpaceData), and space (SpaceData). These methods are deprecated, because they are slow (although quite useful for UI).
Find and load information about a profile space from the Subsocial blockchain and IPFS using an account id.
A profile space is just a space set to a profile.
Data about the desired profile space aggregated from the Subsocial blockchain and IPFS. If there is space corresponding to the given account id,
undefined
is returned.
An account id corresponding to a desired space profile.
Find and load an array of information about profile spaces from Subsocial blockchain and IPFS by a given array of
account ids accounts
.
A profile space is just a space set to a profile.
Find and load an array of information about the profile space of each accountId in the array from the Subsocial blockchain and IPFS.
An array of the account ids related to the desired profile spaces
Find and load an array of public posts from the Subsocial blockchain and IPFS by a given array of post ids
.
A post is considered public if it meets the following conditions:
hidden
field on its blockchain structure is false
.An array of data about the desired posts aggregated from the Subsocial blockchain and IPFS. If there are no
posts corresponding to the given array of ids
, an empty array is returned.
An array of the ids of the desired posts.
Find and load an array of information about a public post with all of its details: extension (PostExtensionData), owner (SpaceData), and space (SpaceData). These methods are deprecated, because they are slow (although quite useful for UI).
Find and load an array of information about a public post with some of its details: extension (PostExtensionData), owner (SpaceData), and space (SpaceData). These methods are deprecated, because they are slow (although quite useful for UI).
Find and load 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 the following conditions:
hidden
field on its blockchain structure is false
.An array of data about the desired spaces aggregated from the Subsocial blockchain and IPFS. If there are no
spaces corresponding to the given array of ids
, an empty array is returned.
An array of the ids of the desired spaces.
Find and load data about a reaction from the Subsocial blockchain by a given id
.
Data about the reaction consisting the reaction kind, creation, update metadata if any. If there is no reaction with given id, undefined is returned.
The desired reaction id
Find and load data about a space (can be Unlisted or Public, depending on filters set on query
) from the Subsocial blockchain and IPFS by a given query
object.
Data about a space aggregated from the Subsocial blockchain and IPFS. If there is no
space corresponding to the given query
object, undefined is returned.
An object containing the desired space id
, a visibility filter (hidden
field), and a content filter (with or without IPFS content).
Find and load information about space structs (can be Unlisted or Public, depending on filters
) from the Subsocial blockchain and IPFS
by a given space id
and filters
object.
Data about space structs aggregated from the Subsocial blockchain and IPFS. If there are no
space structs corresponding to the given space id
and filters
object, undefined is returned.
The space id of the desired space structs.
Optional
filters: Filters(Optional) An object containing a visibility filter (hidden
field) and content filter (with or without IPFS content).
Find and load an array of information about space structs (can be Unlisted or Public, depending on filters
) from the Subsocial blockchain and IPFS
by a given array of space ids
and filters
object.
An array of information about space structs aggregated from the Subsocial blockchain and IPFS. If there are no
space structs corresponding to the given space ids
and filters
, an empty array is returned.
An array of the space ids of the desired space structs.
Optional
filters: Filters(Optional) An object containing a visibility filter (hidden
field) and content filter (with or without IPFS content).
Find and load an array of information about spaces (can be Unlisted or Public, depending on filter
object) from the Subsocial blockchain and IPFS by a given filter
object.
An array of data about desired spaces aggregated from the Subsocial blockchain and IPFS. If there are no
spaces corresponding to the given filter
object, undefined is returned.
An object containing the desired space ids
, a visibility filter (hidden
field), and a content filter (with or without IPFS content).
Find and load an array of information about an unlisted post with all of its details: extension (PostExtensionData), owner (SpaceData), and space (SpaceData). These methods are deprecated, because they are slow (although quite useful for UI).
Find 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:
hidden
field on its blockchain structure is true
.An array of data about the desired spaces aggregated from the Subsocial blockchain and IPFS. If there are no
spaces corresponding to the given array of ids
, an empty array is returned.
An array of the ids of the desired spaces.
Static
createCreate an instance of subsocial api with given config and connected substrate node
Deprecated
Getter for an ApiPromise to connect to Subsocial nodes and query chain states, but in raw format. The raw formatted data needs to be flattened first in order to be readable by JavaScript.
Accessors for private field _base