Skip to main content

Users

Methods

getConnectedWallets

getConnectedWallets(requestParameters): Promise<ConnectedWallets>

Get the User's ERC and SPL connected wallets

Example:


const wallets = await audiusSdk.users.getConnectedWallets({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetConnectedWalletsRequest

Returns

Promise<ConnectedWallets>


getFavorites

getFavorites(requestParameters): Promise<Favorite[]>

Gets a user's favorite tracks

Example:


const favorites = await audiusSdk.users.getFavorites({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetFavoritesRequest

Returns

Promise<Favorite[]>


getReposts

getReposts(requestParameters): Promise<Activity[]>

Gets the given user's reposts

Example:


const reposts = await audiusSdk.users.getReposts({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetRepostsRequest

Returns

Promise<Activity[]>


getSupporters

getSupporters(requestParameters): Promise<Supporter[]>

Gets the supporters of the given user

Example:


const supporters = await audiusSdk.users.getSupporters({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetSupportersRequest

Returns

Promise<Supporter[]>


getSupportings

getSupportings(requestParameters): Promise<Supporting[]>

Gets the users that the given user supports

Example:


const supportings = await audiusSdk.users.getSupportings({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetSupportingsRequest

Returns

Promise<Supporting[]>


getTopTrackTags

getTopTrackTags(requestParameters): Promise<string[]>

Gets the most used track tags by a user. Fetch most used tags in a user's tracks

Example:


const tags = await audiusSdk.users.getTopTrackTags({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetTopTrackTagsRequest

Returns

Promise<string[]>


getTracksByUser

getTracksByUser(requestParameters): Promise<Track[]>

Gets the tracks created by a user using their user ID

Example:


const tracks = await audiusSdk.users.getTracksByUser({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetTracksByUserRequest

Returns

Promise<Track[]>


getUser

getUser(requestParameters): Promise<User>

Gets a single user by their user ID

Example:


const user = await audiusSdk.users.getUser({
id: "eAZl3"
})

Parameters

NameType
requestParametersGetUserRequest

Returns

Promise<User>


getUserIDFromWallet

getUserIDFromWallet(requestParameters): Promise<EncodedUserId>

Gets a User ID from an associated wallet address

Parameters

NameType
requestParametersGetUserIDFromWalletRequest

Returns

Promise<EncodedUserId>


searchUsers

searchUsers(requestParameters): Promise<User[]>

Search for users that match the given query

Example:


const users = await audiusSdk.users.searchUsers({
query: 'skrillex'
})

Parameters

NameType
requestParametersSearchUsersRequest

Returns

Promise<User[]>


verifyIDToken

verifyIDToken(requestParameters): Promise<DecodedUserToken>

Verify if the given jwt ID token was signed by the subject (user) in the payload

Parameters

NameType
requestParametersVerifyIDTokenRequest

Returns

Promise<DecodedUserToken>