Skip to main content
POST
/
v1
/
solana
/
dex
/
wallets
/
get-portfolio
Get Portfolio
curl --request POST \
  --url https://refract.prismapi.io/v1/solana/dex/wallets/get-portfolio \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "wallet": "suqh5sHtr8HyJ7q8scBimULPkPpA557prMG47xCHQfK"
}
'
{
  "value": 123,
  "tokens": [
    {
      "token": "<string>",
      "balance": 123,
      "price": 123,
      "value": 123
    }
  ]
}

Authorizations

X-Api-Key
string
header
required

Your Prism API key. You can get one for free in the Prism Dashboard.

Body

application/json
wallet
string
required

Wallet address to retrieve portfolio for.

Response

Portfolio for the specified wallet.

value
number
tokens
object[]