orbis.getProfilesByUsername()
Returns an array of users
matching with the username passed as a parameter.
How to use?
let { data, error } = await orbis.getProfilesByUsername(username);
Parameters
username
:string
Username we want to retrieve users for.
Returns
[
{
did: "did:pkh:...",
details: {
username: "Baptiste",
description: "",
pfp: "https://..."
},
count_followers: 0,
count_following: 0,
last_activity_timestamp: 1656580635
},
{
did: "did:pkh:...",
details: {
username: "Baptiste Orbis",
description: "",
pfp: "https://..."
},
count_followers: 0,
count_following: 0,
last_activity_timestamp: 1656580635
},
...
]
Next steps
Explore other parts of the API.