Skip to content
This documentation is in beta, and we’re looking for feedback. See how you can contribute 🌟

Moralis

Overview

Moralis provides enterprise-grade web3 APIs and SDKs that enable you to index NFT and blockchain data quickly and easily, empowering you to build high-performance, scalable NFT dApps on the Palm network quickly.

Fetch real-time NFT metadata, ownership data, transfer data, NFT prices, and more.

Play

Moralis APIs Key Features

  • Fetch all NFTs of a specific contract
  • Fetch all NFTs of a specific wallet
  • Fetch collection metadata
  • Fetch NFT metadata
  • Verify signed messages by wallet
  • Receive real-time NFT transfer notifications
  • More

  • NFT Marketplaces
  • NFT Auction Sites
  • Portfolio Apps
  • NFT-based Authentication

Account Setup

🏁 Prerequisites

  • NodeJS 14+
  • NPM/Yarn/PNPM

This tutorial will walk you through how to create your account and install and initialize the Moralis SDK. You can then use the API to:


1. Create your account

  • Go to Moralis Admin to create your Moralis account to get started.
  • Once logged in, go to the Web3 Apis tab and copy the API Key.

2. Install Moralis SDK

To add Moralis to your existing project, run the following command

Terminal window
npm install moralis @moralisweb3/common-evm-utils

3. Initialize Moralis SDK

Once you have the Moralis SDK installed to your project, initialize it with your Moralis API key to have the permission to use all Moralis APIs.

const Moralis = require("moralis").default;
const { EvmChain } = require("@moralisweb3/common-evm-utils");
const { config } = require("dotenv");
// Inject environment variables
config();
const runApp = async () => {
await Moralis.start({
apiKey: process.env.MORALIS_API_KEY,
// ...and any other configuration
});
}
runApp();

API Next Steps πŸ‘‰


πŸ’‘ Learn More