GET /portfolio

GET /portfolio | Auth: Required

Get token balances and total USD value for a wallet address. Supports both EVM and Solana wallets.

Request

Parameters

Query string parameters:

Field
Type
Required
Description

wallet_address

string

Yes

Wallet address. 0x-prefixed hex for EVM chains, or base58-encoded for Solana.

chain

string

No

Filter to a specific chain key (e.g., "base", "solana"). If omitted, returns balances across all supported chains.

Example

GET /portfolio?wallet_address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&chain=ethereum

Response

Status: 200 OK

Fields

Field
Type
Description

success

boolean

Always true.

wallet_address

string

The queried wallet address.

total_usd

number

Total portfolio value in USD across all returned balances.

balances

array

List of token balances with non-zero amounts.

balances[].symbol

string

Token symbol.

balances[].chain

string

Chain key where this balance exists.

balances[].balance

string

Human-readable token balance (decimal string).

balances[].usd_value

number

Current USD value of this balance.

Example

Solana Example

Errors

Status
Error
Description

400

"wallet_address is required"

The wallet_address query parameter is missing.

400

"Invalid wallet address format"

The address is not a valid EVM or Solana address.

400

"Unknown chain 'xyz'"

The provided chain key does not match any supported chain.

401

"Invalid or missing API key"

The API key is missing, malformed, or revoked.

Code Examples

curl

Python

TypeScript

Last updated