### Frontend Project Setup and Configuration Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/solana-multiplayer-game-tictactoe.md Instructions for setting up the frontend of the Solana Tic-Tac-Toe dapp. This involves cloning the project from GitHub, installing dependencies using yarn or npm, renaming and configuring the .env.local file with necessary secrets such as API keys and program IDs, and finally starting the development server. ```bash git clone https://github.com/JohnVersus/solana-dapp-tic-tac-toe.git cd solana-dapp-tic-tac-toe yarn install yarn run dev ``` ```dotenv APP_CHAIN_ID=devnet APP_DOMAIN=ethereum.boilerplate MORALIS_API_KEY= xxx NEXTAUTH_SECRET= # Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/64 NEXTAUTH_URL=http://localhost:3000 # Required for signing game transactions OWNER_PRIVATE_KEY= xxx NEXT_PUBLIC_PROGRAM_ID = xxx ``` -------------------------------- ### Initialize Web3 Social Media Starter Project Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/web3-social-media.md Commands to clone the starter repository, navigate into the project directory, install necessary npm packages, and start the development server. ```shell git clone https://github.com/IAmJaysWay/lens-starter cd lens-starter cd web3profile-starter npm install npm run dev ``` -------------------------------- ### Project Setup: Create React App and Install Dependencies Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/token-api/06-OHLCV Candlesticks/integrate-tradingview-lightweight-charts-tutorial.md Initializes a new React project and installs necessary libraries for charting and API requests. This includes `lightweight-charts` for charting, `axios` for HTTP requests, and `react-spinners` for loading indicators. A `.env` file is created to securely store the Moralis API key. ```bash npx create-react-app crypto-charts cd crypto-charts npm install lightweight-charts axios react-spinners ``` ```dotenv REACT_APP_MORALIS_API_KEY=YOUR_API_KEY ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/moralisweb3/docs/blob/main/docs/07-rpc-nodes/tutorials/fetch-erc20-balances.md Commands to initialize a Node.js project and install the required ethers.js and dotenv packages. ```bash mkdir erc20-balance-fetcher cd erc20-balance-fetcher npm init -y npm install ethers dotenv ``` -------------------------------- ### Start serverless-offline Server Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/integrations/aws-lambda-nodejs.md Starts the local serverless-offline environment, emulating API Gateway for local development. ```bash serverless offline start ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/automated-telegram-nft-transfer-bot.md Install necessary packages for the Express server, Telegram bot integration, and development tools. ```bash npm install express node-telegram-bot-api dotenv nodemon ``` -------------------------------- ### Install serverless-offline Plugin Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/integrations/aws-lambda-nodejs.md Installs the serverless-offline plugin as a development dependency for local emulation of AWS Lambda. ```bash npm install --save-dev serverless-offline ``` -------------------------------- ### Install Dependencies for Moralis and Supabase Source: https://github.com/moralisweb3/docs/blob/main/docs/03-authentication-api/evm/integrations/supabase.md Command to install the necessary SDKs for Moralis, Supabase, and JSON Web Token handling. ```bash yarn add moralis @supabase/supabase-js jsonwebtoken ``` -------------------------------- ### Get ERC20 Token Stats Example Response Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/breaking-changes/2023-09-11-breaking-change.md Example JSON response for the 'Get ERC20 token stats' endpoint, displaying the total number of transfers for a given ERC20 token address. ```json { "transfers": { "total": "5311" } } ``` -------------------------------- ### Get NFT Collection Stats Example Response Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/breaking-changes/2023-09-11-breaking-change.md Example JSON response for the 'Get NFT collection stats' endpoint, providing statistics for an NFT collection, such as total tokens, current owners, and total transfers. ```json { "total_tokens": "10000", "owners": { "current": "10000" }, "transfers": { "total": "235936" } } ``` -------------------------------- ### Get Block Stats Example Response Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/breaking-changes/2023-09-11-breaking-change.md Example JSON response for the 'Get Block stats' endpoint, providing statistics related to a specific block, including the total number of transactions, NFT transfers, and token transfers. ```json { "transactions": { "total": "152" }, "nft_transfers": { "total": "51" }, "token_transfers": { "total": "22" } } ``` -------------------------------- ### Initialize Project and Install Dependencies Source: https://github.com/moralisweb3/docs/blob/main/docs/07-rpc-nodes/tutorials/fetch-wallet-transactions.md Commands to create a new Node.js project directory and install the required ethers.js and dotenv packages. ```bash mkdir wallet-transaction-fetcher cd wallet-transaction-fetcher npm init -y npm install ethers dotenv ``` -------------------------------- ### Get Wallet Stats Example Response Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/breaking-changes/2023-09-11-breaking-change.md Example JSON response for the new 'Get wallet stats' endpoint, showing aggregated statistics for a wallet address, including NFT counts, collection counts, and total transactions and transfers. ```json { "nfts": "14", "collections": "3", "transactions": { "total": "5433" }, "nft_transfers": { "total": "321" }, "token_transfers": { "total": "2141" } } ``` -------------------------------- ### Initialize Project with npm Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/blockchain-discord-bot.md Initializes a new Node.js project and creates a package.json file. This is the first step in setting up the project environment. ```bash npm init -y ``` -------------------------------- ### Start Node.js Application Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/blockchain-discord-bot.md Command to initialize and run the Node.js server. ```shell node index.js ``` -------------------------------- ### Get NFT Token ID Stats Example Response Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/breaking-changes/2023-09-11-breaking-change.md Example JSON response for the 'Get NFT token ID stats' endpoint, detailing the number of current owners and total transfers for a specific NFT token ID within a collection. ```json { "owners": { "current": "1" }, "transfers": { "total": "2" } } ``` -------------------------------- ### GET /nft/getWalletNFTs Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/developer-tools/moralis-data-types.md Example of using Moralis Data Types as input parameters for API calls. ```APIDOC ## GET /nft/getWalletNFTs ### Description Retrieves NFTs for a specific wallet address on a given chain. Demonstrates how to pass EvmChain and EvmAddress objects as parameters. ### Method GET ### Endpoint /nft/getWalletNFTs ### Parameters #### Query Parameters - **chain** (string/EvmChain) - Required - The chain ID (e.g., "0x1", 1, or EvmChain.ETHEREUM) - **address** (string/EvmAddress) - Required - The wallet address to query ### Request Example { "chain": "0x1", "address": "0xa74476443119A942dE498590Fe1f2454d7D4aC0d" } ### Response #### Success Response (200) - **result** (array) - List of NFT objects #### Response Example { "result": [ { "token_address": "0x...", "token_id": "1" } ] } ``` -------------------------------- ### Starting the Development Server Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/token-api/06-OHLCV Candlesticks/integrate-tradingview-lightweight-charts-tutorial.md Command to initiate the development server for the project. This command typically builds the application and serves it locally, allowing for real-time development and testing. ```bash npm start ``` -------------------------------- ### Import Styles and Start Application Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/token-api/06-OHLCV Candlesticks/integrate-chartsjs-tutorial.md Demonstrates how to import the CSS file into the main React application component and provides the command to start the local development server. ```javascript import "./styles.css"; ``` ```bash npm start ``` -------------------------------- ### GET /token/mainnet/exchange/pumpfun/graduated Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/solana/tutorials/pump-fun-tutorials/08-get-graduated-tokens.md Fetches a list of recently graduated tokens from Pump.fun on the Solana mainnet and provides an example of how to analyze their performance. ```APIDOC ## GET /token/mainnet/exchange/pumpfun/graduated ### Description This endpoint retrieves a list of tokens that have recently graduated from the bonding phase on Pump.fun on the Solana mainnet. It allows for tracking token performance post-graduation. ### Method GET ### Endpoint https://solana-gateway.moralis.io/token/mainnet/exchange/pumpfun/graduated ### Query Parameters - **limit** (integer) - Optional - The maximum number of tokens to return. Defaults to 20 if not specified. ### Request Example ```javascript fetch("https://solana-gateway.moralis.io/token/mainnet/exchange/pumpfun/graduated?limit=20", { headers: { "accept": "application/json", "X-API-Key": "YOUR_API_KEY" } }); ``` ### Response #### Success Response (200) - **result** (array) - An array of token objects, each containing details like name, symbol, price, liquidity, fully diluted valuation, and graduation timestamp. - **name** (string) - The name of the token. - **symbol** (string) - The symbol of the token. - **priceUsd** (string) - The current price of the token in USD. - **liquidity** (string) - The current liquidity of the token. - **fullyDilutedValuation** (string) - The fully diluted valuation of the token. - **graduatedAt** (string) - The timestamp when the token graduated. - **tokenAddress** (string) - The contract address of the token on Solana. #### Response Example ```json { "result": [ { "name": "Example Token", "symbol": "EXM", "priceUsd": "0.00001234", "liquidity": "1500000", "fullyDilutedValuation": "3000000", "graduatedAt": "2023-10-27T10:00:00Z", "tokenAddress": "So..." } // ... more tokens ] } ``` ``` -------------------------------- ### Full Express Server Integration Source: https://github.com/moralisweb3/docs/blob/main/docs/03-authentication-api/evm/integrations/google-cloud-nodejs-unity.md A complete example of an Express server configured with Moralis Auth methods, including middleware and API key setup. ```javascript const express = require("express"); const cors = require('cors'); const Moralis = require("moralis").default; const { EvmChain } = require("@moralisweb3/common-evm-utils"); const app = express(); app.use(cors()); app.use(express.urlencoded({ extended: true })); const MORALIS_API_KEY = "Your Moralis API Key"; const NETWORK = "evm"; const DOMAIN = 'moralis.io'; const STATEMENT = 'Please sign this message to confirm your identity.'; const URI = 'https://moralis.io/'; const EXPIRATION_TIME = '2023-01-01T00:00:00.000Z'; const TIMEOUT = 15; async function requestMessage(address, chain) { const result = await Moralis.Auth.requestMessage({ address, chain, network: NETWORK, domain: DOMAIN, statement: STATEMENT, uri: URI, expirationTime: EXPIRATION_TIME, timeout: TIMEOUT, }); return result; } async function verify(message, signature) { const verifiedData = Moralis.Auth.verify({ message, signature, network: NETWORK }); return verifiedData; } ``` -------------------------------- ### Initialize Rust Project Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/solana-multiplayer-game-tictactoe.md Commands to create a new Rust library project and navigate into the directory. ```shell cargo init tic_tac_toe --lib cd tic_tac_toe ``` -------------------------------- ### Initialize React Project and Dependencies Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/token-api/06-OHLCV Candlesticks/integrate-chartsjs-tutorial.md Commands to scaffold a new React application and install the required libraries including chart.js, react-chartjs-2, and axios for API requests. ```bash npx create-react-app chartjs-crypto cd chartjs-crypto npm install chart.js react-chartjs-2 axios react-spinners ``` -------------------------------- ### Hosted Cortex API - Chat Endpoint Source: https://github.com/moralisweb3/docs/blob/main/blog/2025-07-29-cortex-api.md This endpoint allows you to interact with the Moralis Cortex API using natural language queries to get AI-powered blockchain intelligence. No setup is required. ```APIDOC ## POST /chat ### Description Send a natural language query to the Moralis Cortex API to receive AI-powered blockchain insights. ### Method POST ### Endpoint https://cortex-api.moralis.io/chat ### Parameters #### Request Body - **query** (string) - Required - The natural language question about blockchain data. - **model** (string) - Optional - The AI model to use (e.g., "gpt-4", "claude-3-opus"). Defaults to the best available. - **context** (object) - Optional - Additional context or grounding data for the query. - **data_sources** (array) - Optional - Specific data sources to query. - **plugins** (array) - Optional - Plugins to enable for the query. ### Request Example ```json { "query": "What are the top 5 DeFi protocols by TVL in the last 24 hours?", "model": "gpt-4o", "context": { "data_sources": ["evm_mainnet"] } } ``` ### Response #### Success Response (200) - **answer** (string) - The AI-generated answer to the query, grounded in blockchain data. - **explanation** (string) - An explanation of how the answer was derived. - **sources** (array) - List of data sources and references used. #### Response Example ```json { "answer": "The top 5 DeFi protocols by TVL in the last 24 hours are Aave, Uniswap, Curve, Compound, and MakerDAO. Aave currently leads with approximately $15 billion in TVL.", "explanation": "This answer was generated by querying the EVM mainnet data for DeFi protocols and their Total Value Locked (TVL) over the past 24 hours. The data was processed using the GPT-4o model.", "sources": [ { "name": "Moralis EVM Mainnet API", "reference": "https://deep-index.moralis.io/api/v2/0x.../native/balance" } ] } ``` ``` -------------------------------- ### Initialize and Run DexScreener Clone Project Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/solana/tutorials/dexscreener-clone.md Commands to clone the repository, install dependencies, configure the environment with a Moralis API key, and launch the development server. ```bash git clone https://github.com/bharathbabu-moralis/dexscreener-clone.git cd dexscreener-clone npm install echo "REACT_APP_MORALIS_API_KEY=your_api_key_here" > .env npm start ``` -------------------------------- ### Authenticate EVM API Request via cURL Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/faqs/00-General FAQs/01-authentication.md Demonstrates how to authenticate a GET request to the Moralis EVM API by including the X-API-Key header. This example fetches block data from the Ethereum network. ```bash curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/block/15863321?chain=eth&include=internal_transactions' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' ``` -------------------------------- ### Creating EvmChain Instances Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/developer-tools/moralis-data-types.md Provides examples of how to create EvmChain instances using different methods: by predefined name (e.g., EvmChain.ETHEREUM), by hex string, or by decimal value. This simplifies handling EVM chain identifiers. ```javascript import { EvmChain } from "@moralisweb3/common-evm-utils"; //by name const chain = EvmChain.ETHEREUM; //or by hex string const chain = EvmChain.create("0x1"); // or by decimal value const chain = EvmChain.create(1); ``` -------------------------------- ### Run Moralis MCP Server with npx Source: https://github.com/moralisweb3/docs/blob/main/docs/08-moralis-cortex/mcp-server/configuration.md Executes the Moralis MCP Server directly using npx without a global installation. This example shows setting the API key and running the server with the stdio transport. ```bash # Set environment variable export MORALIS_API_KEY="your_key" # Run directly without installation npx @moralisweb3/api-mcp-server --transport stdio ``` -------------------------------- ### Start Local Development Server Source: https://github.com/moralisweb3/docs/blob/main/README.md Starts a local development server that provides live reloading for most changes without requiring a manual restart. ```shell npm run start ``` -------------------------------- ### Get Contract NFTs - TypeScript Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/nft-api/01-NFT Balance/how-to-get-all-the-nfts-from-a-collection.md Fetches all NFTs from a given contract address on an EVM-compatible chain using the Moralis SDK for TypeScript. Ensure Moralis SDK is installed and your API key is set. The output is a JSON representation of the NFTs. ```typescript import Moralis from "moralis"; import { EvmChain } from "@moralisweb3/common-evm-utils"; const runApp = async () => { await Moralis.start({ apiKey: "YOUR_API_KEY", // ...and any other configuration }); const address = "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB"; const chain = EvmChain.ETHEREUM; const response = await Moralis.EvmApi.nft.getContractNFTs({ address, chain, }); console.log(response.toJSON()); }; runApp(); ``` -------------------------------- ### Get Contract NFTs - JavaScript Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/nft-api/01-NFT Balance/how-to-get-all-the-nfts-from-a-collection.md Retrieves all NFTs from a specified contract address on an EVM-compatible chain using the Moralis SDK for JavaScript. Requires Moralis SDK installation and API key configuration. Outputs the NFTs as a JSON object. ```javascript const Moralis = require("moralis").default; const { EvmChain } = require("@moralisweb3/common-evm-utils"); const runApp = async () => { await Moralis.start({ apiKey: "YOUR_API_KEY", // ...and any other configuration }); const address = "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB"; const chain = EvmChain.ETHEREUM; const response = await Moralis.EvmApi.nft.getContractNFTs({ address, chain, }); console.log(response.toJSON()); }; runApp(); ``` -------------------------------- ### Full cURL Example for Experienced Buyers - Bash Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/token-api/06-Filtered Tokens API/07-experienced-buyers.md This cURL command demonstrates a full API request to the discovery endpoint for tokens, specifying multiple chains (Ethereum and Base) and filters including experienced buyers, net experienced buyers, security score, and total liquidity. The results are sorted by net experienced buyers in descending order. ```bash curl -X POST \ 'https://deep-index.moralis.io/api/v2.2/discovery/tokens' \ -H 'X-API-Key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "chains": ["eth", "base"], "filters": [ { "metric": "experiencedBuyers", "timeFrame": "oneDay", "gt": 100 }, { "metric": "netExperiencedBuyers", "timeFrame": "oneDay", "gt": 50 }, { "metric": "securityScore", "gt": 80 }, { "metric": "totalLiquidityUsd", "gt": 100000 } ], "sortBy": { "metric": "netExperiencedBuyers", "timeFrame": "oneDay", "type": "DESC" }, "limit": 30 }' ``` -------------------------------- ### Install Wagmi and Viem Dependencies Source: https://github.com/moralisweb3/docs/blob/main/docs/03-authentication-api/evm/tutorials/how-to-authenticate-users-with-metamask-using-react.md Install the necessary libraries to handle Web3 wallet interactions and blockchain data in your React application. ```bash npm install wagmi viem ``` -------------------------------- ### Integrate Moralis MCP with Claude Desktop Source: https://github.com/moralisweb3/docs/blob/main/docs/08-moralis-cortex/faqs.md Uses the Smithery CLI to automatically configure and install the Moralis MCP server for use within the Claude Desktop application. This simplifies the setup process by handling the integration configuration automatically. ```bash npx -y @smithery/cli install @MoralisWeb3/moralis-mcp-server --client claude ``` -------------------------------- ### Retrieve Metadata for a Specific Solana NFT using cURL Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/solana/faqs/nft-api-faq.md An example using cURL to make a GET request to the Moralis Solana Gateway API to fetch metadata for a specific NFT. Requires your API key and the NFT's address. ```curl curl --request GET \ --url 'https://solana-gateway.moralis.io/nft/mainnet/FVzM6rUA1SigPxh6e3iQ8dAPjQNf2guap3Xcdj8Q6R2H/metadata' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' ``` -------------------------------- ### Initialize Node.js Project Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/automated-telegram-nft-transfer-bot.md Commands to initialize a new Node.js project and the resulting package.json configuration. ```bash npm init -y ``` ```json { "name": "backend", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" } ``` -------------------------------- ### Get Pancakeswap V1 pair address using Moralis API Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/token-api/05-Pairs & Liquidity/how-to-get-pancakeswap-v1-pair-address.md Retrieves the pair address for a specific liquidity pool by providing two token addresses and the exchange identifier. This requires a valid Moralis API key and the Moralis SDK installed. ```javascript const Moralis = require("moralis").default; const { EvmChain } = require("@moralisweb3/common-evm-utils"); const runApp = async () => { await Moralis.start({ apiKey: "YOUR_API_KEY", }); const chain = EvmChain.BSC; const token0Address = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"; const token1Address = "0xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD"; const response = await Moralis.EvmApi.defi.getPairAddress({ token0Address, token1Address, chain, exchange: "pancakeswapv1", }); console.log(response.toJSON()); }; runApp(); ``` ```typescript import Moralis from "moralis"; import { EvmChain } from "@moralisweb3/common-evm-utils"; const runApp = async () => { await Moralis.start({ apiKey: "YOUR_API_KEY", }); const chain = EvmChain.BSC; const token0Address = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"; const token1Address = "0xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD"; const response = await Moralis.EvmApi.defi.getPairAddress({ token0Address, token1Address, chain, exchange: "pancakeswapv1", }); console.log(response.toJSON()); }; runApp(); ``` ```python from moralis import evm_api api_key = "YOUR_API_KEY" params = { "exchange": "pancakeswapv1", "token0_address": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "token1_address": "0xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD", "chain": "bsc" } result = evm_api.defi.get_pair_address( api_key=api_key, params=params, ) print(result) ``` -------------------------------- ### Initialize Node.js Project and Dependencies Source: https://github.com/moralisweb3/docs/blob/main/docs/07-rpc-nodes/getting-started/02-making-your-first-request.md Commands to create a new Node.js project directory and install the necessary ethers.js and dotenv packages for blockchain interaction. ```bash mkdir nft-fetcher cd nft-fetcher npm init -y npm install ethers dotenv ``` -------------------------------- ### Get Wallet NFTs Cross-Chain with Moralis SDK Source: https://github.com/moralisweb3/docs/blob/main/docs/01-web3-data-api/evm/nft-api/01-NFT Balance/how-to-get-all-nfts-own-by-an-address-cross-chain.md This snippet retrieves all NFTs owned by a specified wallet address across multiple EVM chains (Ethereum, BSC, Polygon). It requires the Moralis SDK to be installed and initialized with an API key. The function iterates through a predefined list of chains, calls the `getWalletNFTs` endpoint for each, and collects the results. ```javascript const Moralis = require("moralis").default; const { EvmChain } = require("@moralisweb3/common-evm-utils"); const runApp = async () => { await Moralis.start({ apiKey: "YOUR_API_KEY", // ...and any other configuration }); const allNFTs = []; const address = "0x26fcbd3afebbe28d0a8684f790c48368d21665b5"; const chains = [EvmChain.ETHEREUM, EvmChain.BSC, EvmChain.POLYGON]; for (const chain of chains) { const response = await Moralis.EvmApi.nft.getWalletNFTs({ address, chain, }); allNFTs.push(response); } console.log(allNFTs); }; runApp(); ``` ```typescript import Moralis from "moralis"; import { EvmChain } from "@moralisweb3/common-evm-utils"; const runApp = async () => { await Moralis.start({ apiKey: "YOUR_API_KEY", // ...and any other configuration }); const allNFTs = []; const address = "0x26fcbd3afebbe28d0a8684f790c48368d21665b5"; const chains = [EvmChain.ETHEREUM, EvmChain.BSC, EvmChain.POLYGON]; for (const chain of chains) { const response = await Moralis.EvmApi.nft.getWalletNFTs({ address, chain, }); allNFTs.push(response); } console.log(allNFTs); }; runApp(); ``` ```python from moralis import evm_api import json api_key = "YOUR_API_KEY" params = { "address": "0x26fcbd3afebbe28d0a8684f790c48368d21665b5", "chain": "eth", "format": "decimal", "limit": 1, "token_addresses": [], "cursor": "", "normalizeMetadata": True, } result = [] for chain in ('eth', 'bsc', 'polygon'): params['chain'] = chain result += [evm_api.nft.get_wallet_nfts( api_key=api_key, params=params, )] # converting it to json because of unicode characters print(json.dumps(result, indent=4)) ``` -------------------------------- ### Initialize React Application Source: https://github.com/moralisweb3/docs/blob/main/docs/04-guides/zapper-clone.md Commands to create a new React application using either npx or yarn. ```shell npx create-react-app frontend ``` ```shell yarn create react-app frontend ```