Skip to content

Portfolio Tracking with Zapper

Introduction

Zapper is a Web3 application that enables users to explore on-chain data, manage their portfolios, and interact with decentralized finance (DeFi) protocols across multiple networks, including Moonbeam. Through their integration with Zapper, users can monitor and manage assets across Moonbeam’s DeFi ecosystem, including platforms such as Moonwell, StellaSwap, OmniLST, and Prime Protocol.

This tutorial provides a detailed step-by-step guide for users and developers to integrate with Zapper and maximize their experience within the Moonbeam ecosystem.

Get Started on Zapper

You can navigate to Zapper's official website and take the following steps to start interacting with the application:

  1. Click on the Connect Wallet button at the top right corner Zapper main site
  2. Select your preferred wallet from the supported options (e.g., MetaMask, Talisman, Coinbase Wallet) Zapper wallet modal
  3. Follow the on-screen prompts to connect securely to Zapper

Explore Your Portfolio

Once your wallet is connected, Zapper will automatically detect and display your assets across supported networks, including Moonbeam. You can navigate to your main dashboard by clicking on My profile on the left sidebar or selecting it from the wallet icon on the top-right corner. The dashboard provides an overview of your holdings and activity split in the following categories:

  • Summary - displays your total assets, liabilities, and net worth across all networks
  • Tokens - lists all tokens held in your connected wallet, including GLMR (Moonbeam's native token) and any ERC-20 tokens
  • DeFi - shows active positions in Moonbeam-based DeFi platforms such as lending, liquidity pools, and staking
  • NFTs - displays any NFTs you own on Moonbeam or other supported chains
  • Activity - Zapper's dashboard provides real-time data, enabling efficient management of your on-chain activities

Zapper Dashboard

Engage with Moonbeam's DeFi Ecosystem

Zapper provides access to view the activity on Moonbeam's DeFi protocols, such as:

  • Moonwell - for accessing lending and borrowing services
  • StellaSwap - for participating in token swaps and liquidity provision by depositing token pairs into StellaSwap's liquidity pools
  • OmniLST - for engaging in liquid staking opportunities (stake GLMR tokens to receive liquid staking tokens and use them in other DeFi applications)
  • Prime Protocol - for managing cross-chain assets and accessing borrowing services (deposit assets as collateral to borrow across multiple chains)

You can follow these steps to review any of the aforementioned protocols:

  1. Select Moonbeam from the chain filter in the left sidebar. This will display the most trending dApps in the ecosystem. Click on the protocol you wish to explore Zapper DeFi Section
  2. In the Activity tab, view the latest transactions for the selected protocol, including token swaps, LP or staking on StellaSwap, lending and borrowing on Moonwell, staked GLMR on OmniLST, and activity on other supported dApps StellaSwap on Zapper
  3. View additional details for the selected protocol, including daily active users and daily transactions in the left sidebar, deployed smart contracts in the Contracts tab, and your holdings in the protocol via the Properties tab

Access and Manage Moonbeam Assets

Zapper also has an integrated modal for seamlessly swapping assets on Moonbeam. You can access this feature by selecting Moonbeam in the chain filter on the left sidebar and choosing the desired token on the right sidebar.

Zapper Token Selection

Inside the token page, you'll be able to see the asset's performance and details such as price action, volumes, holders and transactions.

Zapper Swap Modal-1

To perform a swap you'll need to access the swap modal by clicking on the Buy/Sell buttons in the left sidebar. Once inside the modal you can select the assets for swapping, input the desired quantity for the token you want to sell, and click on Review order to sign and submit the transaction.

Zapper Swap Modal-2

Integrate with Zapper's API

Developers can leverage Zapper's API to enrich their applications with comprehensive DeFi data from the Moonbeam network.

You can register for an API key by visiting the Zapper API portal. An API key is necessary to authenticate your application and access Zapper's endpoints.

Zapper offers several endpoints to fetch relevant data, such as:

  • Balances - retrieve asset balances for addresses on Moonbeam
  • Transactions - access transaction histories
  • Prices - obtain real-time token prices

Furthermore, you can familiarize yourself with the Zapper API documentation, which provides detailed information on the available endpoints, request structures, and response formats.

Depending on your preferred programming language, you can set up your environment to make HTTP requests to Zapper's API. Below is an example of retrieving token balances for a specified wallet address on Moonbeam using Node.js and Axios:

const axios = require('axios');

const API_KEY = 'INSERT_API_KEY';
const address = 'INSERT_WALLET_ADDRESS';
const chain = 'moonbeam';

axios.get(`https://api.zapper.xyz/v1/protocols/tokens/balances`, {
  params: { addresses: address, network: chain },
  headers: { Authorization: `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

Note

Ensure that your application handles API responses appropriately and includes error-handling mechanisms.

By following this tutorial, users and developers will have effectively learned how to integrate with Zapper and use it for exploring multiple DApps in the Moonbeam network.

Additional Resources

You can also explore the Zapper API GitHub repository for code examples and community contributions, or refer to Zapper's integration guides for detailed instructions and best practices.

The information presented herein has been provided by third parties and is made available solely for general information purposes. Moonbeam does not endorse any project listed and described on the Moonbeam Doc Website (https://docs.moonbeam.network/). Moonbeam Foundation does not warrant the accuracy, completeness or usefulness of this information. Any reliance you place on such information is strictly at your own risk. Moonbeam Foundation disclaims all liability and responsibility arising from any reliance placed on this information by you or by anyone who may be informed of any of its contents. All statements and/or opinions expressed in these materials are solely the responsibility of the person or entity providing those materials and do not necessarily represent the opinion of Moonbeam Foundation. The information should not be construed as professional or financial advice of any kind. Advice from a suitably qualified professional should always be sought in relation to any particular matter or circumstance. The information herein may link to or integrate with other websites operated or content provided by third parties, and such other websites may link to this website. Moonbeam Foundation has no control over any such other websites or their content and will have no liability arising out of or related to such websites or their content. The existence of any such link does not constitute an endorsement of such websites, the content of the websites, or the operators of the websites. These links are being provided to you only as a convenience and you release and hold Moonbeam Foundation harmless from any and all liability arising from your use of this information or the information provided by any third-party website or service.
Last update: May 13, 2025
| Created: March 4, 2025