Moralis icon

Moralis

Interact with Moralis Web3 APIs for blockchain data, NFTs, tokens, and DeFi

Wallet → Get Portfolio

AI-generated

Overview

This node operation fetches the complete portfolio of a specified wallet on a selected blockchain. It retrieves all tokens held by the wallet, providing a comprehensive view of the wallet's assets. This is useful for users who want to monitor or analyze the holdings of a wallet across different blockchains such as Ethereum, Polygon, or Binance Smart Chain.

Use Case Examples

  1. A user wants to see all tokens held in their Ethereum wallet to track their investments.
  2. A developer needs to display a user's complete token portfolio in a decentralized finance (DeFi) dashboard.
  3. An analyst wants to gather portfolio data from multiple wallets on different chains for market research.

Properties

Name Meaning
Chain The blockchain network to query, e.g., Ethereum, Polygon, BSC.
Wallet Address The wallet address to query for portfolio data, required for this operation.
Additional Fields Optional parameters to customize the query, including limit on results, pagination cursor, metadata inclusion, and number format.

Output

JSON

  • json - The complete wallet portfolio data including tokens held, operation performed, resource type, blockchain chain, and timestamp of the query.

Dependencies

  • Requires an API key credential for Moralis Web3 API to authenticate requests.

Troubleshooting

  • Common issues include invalid or missing wallet address, unsupported blockchain chain, or API key authentication errors.
  • Error messages may indicate 'No data found' if the wallet has no tokens or the address is incorrect.
  • Network or API rate limit errors can occur; ensure valid API key and check Moralis API status.

Links

Discussion