GetAssets

API

API/token/profile/v1/portfolio/me

Title

GetAssets

Description

Get user's assets

Authorization

Not required

Method

GET

Request Parameters

NameTypeRequiredDescription

ecosystem

string

YES

"lens" or "farcaster"

addr

string

YES

The user's EVM wallet address with the social profile

profile_id

string

YES

The Lens profile id or Farcaster FID of the user

Request and Response Example

Request

cURL Code

curl -X 'POST' \
  'https://api.tako.so/token/profile/v1/portfolio/me' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "addr": "0xcb093137a3098dEbBCe9C5D416D9A257914d9754",
    "ecosystem": "farcaster",
    "profile_id": 10001
  }'

Request URL

https://api.tako.so/token/profile/v1/portfolio/me

Response

{
  "code": 0,
  "msg": "OK",
  "data": {
    "balance": "3349744377436924",
    "portfolio_value": "0",
    "fees_earned": "",
    "selloff": "0"
  },
  "ts": "2023-12-21 09:38:48.09303"
}

Last updated