getPortfolios function returns an object containing an array of
portfolios for the provided addresses. Each portfolio is an object with the address
of the wallet, the fiat value of the portfolio, and an array of tokens held by the
provided address.
Before using this endpoint, make sure to obtain a Client API Key
from Coinbase Developer Platform.
Please note:
getPortfolios is only available for Base mainnet and Ethereum mainnet.
You can control the network in the OnchainKitProvider by setting the chain prop.Returns
Promise<GetPortfoliosResponse>
Parameters
GetPortfoliosParamsBody
application/json
List of wallet addresses to retrieve portfolios for
Response
200 - application/json
Successful response – Array of portfolio objects
Array of portfolio objects