New RPC methods for fast data fetching
With the last node upgrade we also released a set of new RPC methods allow to fetch data from Subsocial blockchain storage in a fast and efficient way. These methods return data in JSON format and it means, that end clients (like web or mobile dapps) will not need to spend time for convertion of data from Substrate's SCALE format.
We are planning to start using these new RPC methods on Subsocial's web dapp in the near future to bring a smoother and more responsive experience to our users.
Here is a list of new RPC methods that have been included in the last node upgrade:
- posts_getFeed
- posts_getPostsByIds
- posts_getPublicPostIdsBySpaceId
- posts_getPublicPosts
- posts_getPublicPostsBySpaceId
- posts_getRepliesByParentId
- posts_getRepliesByParentIds
- posts_getReplyIdsByParentId
- posts_getReplyIdsByParentIds
- posts_getUnlistedPostIdsBySpaceId
- posts_getUnlistedPostsBySpaceId
- posts_nextPostId
- profileFollows_filterFollowedAccounts
- profiles_getSocialAccountsByIds
- reactions_getReactionKindsByPostIdsAndReactor
- reactions_getReactionsByIds
- reactions_getReactionsByPostId
- roles_getAccountsWithAnyRoleInSpace
- roles_getSpaceIdsForAccountWithAnyRole
- roles_getSpacePermissionsByAccount
- spaceFollows_filterFollowedSpaceIds
- spaceFollows_getSpaceIdsFollowedByAccount
- spaces_getPublicSpaceIdsByOwner
- spaces_getPublicSpaces
- spaces_getSpaceByHandle
- spaces_getSpaceIdByHandle
- spaces_getSpaces
- spaces_getSpacesByIds
- spaces_getUnlistedSpaceIdsByOwner
- spaces_getUnlistedSpaces
- spaces_nextSpaceId
A full list of all available RPC methods by visiting Developer > RPC calls > rpc / methods on Polkadot.js Apps for Subsocial node.