Followers
KUTHULU has the ability to keep track of individual users follow list for both Users and Spaces / Groups
Table of Contents
Events
logAddFollower
Emitted when a follower is added.
requester
address
The address of the requester
target
address
The address of the target
logRemoveFollower
Emitted when a follower is removed.
requester
address
The address of the requester
target
address
The address of the target
Public Functions
getFollowers
Returns a list of users who are following a given address.
Parameters
usrAddress
address
The address of the user to retrieve followers for.
startFrom
uint256
The number to start getting records from.
Return
address[]
address array
An array of addresses of accounts that are following usrAddress.
getFollowing
getFollowing
Returns a list addresses that a given user is following
Parameters
usrAddress
address
The address of the user to get their following list
startFrom
uint256
The number to start getting records from.
Return
address[]
address array
An array of addresses of accounts that usrAddress is following.
isUserFollowing
isUserFollowing
Checks if a user is following certain address.
Is addressRequester
following addressTarget
?
Parameters
addressRequester
address
The address of the requester (follower).
addressTarget
address
The address of the target (user being followed).
Return
bool
bool
A boolean value indicating whether the requester is following the target or not.
Last updated