Lum0x SDK
  • Lum0x-sdk
    • Getting started
    • Examples
      • Case 1 : Find my Fan
      • Case 2: Fetch user's Moxie earning
      • Case 3: Raffle events among the filtered casts
      • How to Deploy a Project with Vercel
    • FarcasterUser
      • Search for Usernames
      • Fetch users based on FIDs
      • Fetch power user objects
      • Fetches users based on Eth or Sol addresses
      • Lookup a user by custody-address
      • Retrieve all channels that a given fid follows
      • Get User Information by username
      • Get Recent Users
    • FarcasterCast
      • Retrieve cast for a given hash or Warpcast URL
      • Retrieve casts for a given user
      • Gets information about an array of casts
      • Retrieve the conversation for a given cast
      • Get Recent Casts
    • FarcasterFeed
      • Retrieve casts based on filters
      • Retrieve trending casts
    • FarcasterReaction
      • Fetches reactions for a given user
      • Fetches reactions for a given cast
    • FarcasterFollowers
      • Retrieve followers for a given user
      • Retrieve relevant followers for a given user
      • Retrieve a list of users followed by a user
    • FarcasterStorage
      • Fetches storage allocations for a given user
      • Fetches storage usage for a given user
    • FarcasterFname
      • Check if a given fname is available
    • FarcasterMute
      • Get fids that a user has muted
    • FarcasterChannel
      • Retrieve all channels with their details
      • Search for channels based on id or name
      • (Bulk) Retrieve channels by id or parent_url
      • Retrieve channel details by id or parent_url
      • Retrieve followers for a given channel
      • Get channels that a user is active in
      • Check If User Follows Channel
      • Retrieve trending channels based on activity
    • FarcasterNotification
      • Retrieve notifications for a given user
    • FarcasterMoxie
      • Retrieve Moxie earning status
      • Retrieve FarScore and FarRank
      • Retrieve Moxie airdrop claim status
      • Retrieve Moxie earning details for cast.
      • Retrieve Moxie earning details for reply.
      • Retrieve Moxie earning details for cast by fid.
      • Retrieve Moxie earning details for reply by fid.
      • Retrieve Moxie earning details from channel cast.
Powered by GitBook
On this page
  • Overview
  • Parameters
  • Usage
  • Response
  • Field Description
  1. Lum0x-sdk
  2. FarcasterUser

Get User Information by username

farcasterUser.getUserByUsername

Overview

Returns metadata about a specific user

Parameters

name
type
required
Note

username

string

true

ex) lum0x

viewer_fid

number

false

ex) 3

Usage

let res = await Lum0x.farcasterUser.getUserByUsername({
    username: "lum0x",
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "result": {
    "user": {
      "fid": 721870,
      "custodyAddress": "0x63cd09948b05e5d8367226b0c83a16b583862191",
      "username": "lum0x",
      "displayName": "Lum0x",
      "pfp": {
        "url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/74970e01-bcf7-4ef7-31d7-238f5814b200/original"
      },
      "profile": {
        "bio": {
          "text": "illuminate your builder journey with Lum0x 💡\n\nhttps://lum0x.com/",
          "mentionedProfiles": []
        }
      },
      "followerCount": 37,
      "followingCount": 2,
      "verifications": [],
      "verifiedAddresses": {
        "eth_addresses": [],
        "sol_addresses": []
      },
      "activeStatus": "inactive",
      "powerBadge": false
    }
  }
}

Field

Value

FID

721870

Custody Address

0x63cd09948b05e5d8367226b0c83a16b583862191

Username

lum0x

Display Name

Lum0x

Profile Picture URL

Bio

Follower Count

37

Following Count

2

Verifications

None

Verified ETH Addresses

None

Verified SOL Addresses

None

Active Status

Inactive

Power Badge

No

Field Description

  • FID: User's unique identifier.

  • Custody Address: User's wallet address.

  • Username: User's username.

  • Display Name: User's display name.

  • Profile Picture URL: URL of the user's profile picture.

  • Bio: User's introduction text and links.

  • Follower Count: Number of followers the user has.

  • Following Count: Number of people the user is following.

  • Verifications: User verification information (currently none).

  • Verified ETH Addresses: List of verified Ethereum addresses (currently none).

  • Verified SOL Addresses: List of verified Solana addresses (currently none).

  • Active Status: User's activity status.

  • Power Badge: Whether the user holds a power badge.

PreviousRetrieve all channels that a given fid followsNextGet Recent Users

Last updated 9 months ago

illuminate your builder journey with Lum0x 💡\n

Website