Favorites

/api/favorites provides endpoints for gathering, adding, and removing tokens from a users favorites list.

Get Favorite Tokens

get

Find and list favorite tokens for current user.

Body
idstringRequired
Responses
get
/api/favorites
200

OK

No content

Add Favorite Token

post

Add favorite token for the current user.

Body
tokenstringRequired
Responses
post
/api/favorites
200

OK

No content

Remove Favorite Token

delete

Find and remove a favorite token.

Path parameters
idstringRequired
Responses
delete
/api/favorites/{id}

No content

Get Favorites by User

get

List favorite tokens for a specified user.

Path parameters
userAddressstringRequired
Responses
get
/api/favorites/{userAddress}
200

OK

No content

Was this helpful?