Check If User Follows Channel

farcasterChannel.checkIfUserFollowsChannel

Overview

Returns true if the user is following a specific channel, otherwise false.

Parameters

name
type
required
Note

id

string

true

channel Id, ex) "lum0x"

type

string

false

"id" or "parent_url"

fid

number

true

user fid, ex) 3

Usage

let res = await Lum0x.farcasterChannel.checkIfUserFollowsChannel({
    id: "base",
    type: "id",
    fid: 2
});
console.log(JSON.stringify(res, null, 2));

Response

"false"

Response Description

  • false: The user with the given FID is not following the base channel.

  • true: The user with the given FID is following the base channel.

Last updated