Moralis API
Cross-chain Web3 data APIs — balances, NFTs, transfers and more.
What it does
Moralis is a Web3 data API: given a wallet address you get native and ERC-20 balances, token and NFT holdings with metadata and prices, transaction and transfer history, DeFi positions, and token/pair price data — across Ethereum, most EVM chains and Solana — without running nodes or indexers.
Base URL
Authentication
Sign up for a free API key and send it as the X-API-Key header. The chain is a query parameter (?chain=eth, ?chain=polygon, ?chain=base…).
Code examples
curl -s "https://deep-index.moralis.io/api/v2.2/0xd8dA6BF.../erc20?chain=eth" \ -H "X-API-Key: $MORALIS_KEY"
import requests
r = requests.get(
"https://deep-index.moralis.io/api/v2.2/0xd8dA6BF.../nft",
params={"chain": "eth", "limit": 5, "normalizeMetadata": "true"},
headers={"X-API-Key": KEY}, timeout=15)
for n in r.json()["result"]:
print(n["name"], n["token_id"])Rate limits & quotas
Free plan: roughly 40,000 compute units/day and about 25 requests/second. Endpoints cost different CU amounts (metadata-heavy and price calls cost more). Over the rate limit returns HTTP 429; over the daily CU budget returns a quota error. Many list endpoints paginate with a cursor.
Key response fields
| (erc20) [].token_address / symbol / balance / decimals | Fungible token holdings |
| (nft) result[].token_address / token_id / name / metadata | NFT holdings (parsed with normalizeMetadata) |
| (transactions) result[].hash / from_address / value / block_timestamp | History |
| (price) usdPrice / nativePrice / exchangeName | Token price via on-chain DEX data |
| cursor | Opaque pagination token |
Common errors
| 401 | Missing or invalid X-API-Key. |
| 429 | Requests-per-second or daily CU limit exceeded. |
| 400 C0006 / C0005 | Bad address, unsupported chain, or invalid parameter. |
| 404 | No data (e.g. a token with no DEX liquidity for a price call). |
When to use it (and alternatives)
The fastest route to wallet-centric features — portfolio views, ‘tokens you hold’, NFT galleries, transaction feeds. Covalent is the closest alternative (more chains, credit model); Alchemy pairs similar data endpoints with full RPC.
FAQ
Does Moralis give me RPC access too?
Moralis focuses on the data API. It offers node endpoints on some plans, but if RPC is your main need, pair it with Alchemy or Infura.
How do I get clean NFT metadata?
Pass normalizeMetadata=true so Moralis resolves IPFS and returns a consistent name/image/attributes shape instead of raw, inconsistent token URIs.
What counts against my daily budget?
Compute units, not requests. Check each endpoint’s CU cost in the docs; price and metadata-enrichment calls are the expensive ones.
New to APIs?
Short guides for working with this API — and any other.