Skip to main content
GET
/
accounts
/
{userAddress}
/
portfolio
Get User Portfolio
curl --request GET \
  --url https://v1.orchestrator.rhinestone.dev/accounts/{userAddress}/portfolio \
  --header 'x-api-key: <x-api-key>'
{
  "portfolio": [
    {
      "tokenName": "USDC",
      "tokenDecimals": 16,
      "balance": {
        "locked": "1000000000000000000",
        "unlocked": "1000000000000000000"
      },
      "tokenChainBalance": [
        {
          "chainId": 10,
          "tokenAddress": "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
          "balance": {
            "locked": "1000000000000000000",
            "unlocked": "1000000000000000000"
          }
        }
      ]
    }
  ]
}

Headers

x-api-key
string
required

Rhinestone API key

Path Parameters

userAddress
string
required

Ethereum address of the user account

Example:

"0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"

Query Parameters

chainIds
string

Comma-separated list of chain IDs to filter by

Example:

"1,10,137"

tokens
string

Comma-separated list of chain:token pairs to filter by

Example:

"1:0xa0B86A33e6441B8C4505B8C4505b8C4505B8C4505B8C450,10:0xb0b86a33E6441b8C4505b8C4505b8C4505B8C4505B8C450"

filterEmpty
string
default:false

Whether to filter out tokens with zero balance

Example:

"true"

Response

200

Successfully retrieved user portfolio

portfolio
object[]
required

Array of token portfolio entries