getProfilesByUsername
Returns an array of profiles
matching the username passed as a parameter.
Fuzzy search is performed with the given username
.
How to use?
const { data, error } = await orbis.getProfilesByUsername(username);
Parameters
username
-string
username we want to search for
Returns
[
{
did: "did:pkh:...",
details: {
did: "did:pkh:...",
profile: {
username: "Baptiste",
description: "",
pfp: "https://..."
}
},
count_followers: 132,
count_following: 31,
last_activity_timestamp: 1656580635
},
{
did: "did:pkh:...",
details: {
did: "did:pkh:...",
profile: {
username: "Charles",
description: "",
pfp: "https://..."
}
},
count_followers: 125,
count_following: 64,
last_activity_timestamp: 1656580635
},
...
]