Futures
Access hundreds of perpetual contracts
CFD
Gold
One platform for global traditional assets
Options
Hot
Trade European-style vanilla options
Unified Account
Maximize your capital efficiency
Demo Trading
Introduction to Futures Trading
Learn the basics of futures trading
Futures Events
Join events to earn rewards
Demo Trading
Use virtual funds to practice risk-free trading
Launch
CandyDrop
Collect candies to earn airdrops
Launchpool
Quick staking, earn potential new tokens
HODLer Airdrop
Hold GT and get massive airdrops for free
Pre-IPOs
Unlock full access to global stock IPOs
Alpha Points
Trade on-chain assets and earn airdrops
Futures Points
Earn futures points and claim airdrop rewards
Promotions
AI
Gate AI
Your all-in-one conversational AI partner
Gate AI Bot
Use Gate AI directly in your social App
GateClaw
Gate Blue Lobster, ready to go
Gate for AI Agent
AI infrastructure, Gate MCP, Skills, and CLI
Gate Skills Hub
10K+ Skills
From office tasks to trading, the all-in-one skill hub makes AI even more useful.
GateRouter
Smartly choose from 40+ AI models, with 0% extra fees
How to check the balance of ERC-20 tokens in the Wallet? A comparison and evaluation of these 3 API tools.
Problem Scenario
Want to check which tokens are in a specific Ethereum wallet? You can directly open the wallet software, but what if you need to check someone else's wallet (for example, regulatory departments, exchange risk control), or if you need to automate bulk queries? That's when you need to rely on the API.
Today we will evaluate three mainstream Web3 tools: Chainbase, Alchemy, and Moralis - let's see which one is the most user-friendly.
Option 1: Chainbase (Fastest to Get Started)
Advantages: The process is the simplest, optimized specifically for blockchain data.
Core Steps:
Code Example (JavaScript): Directly use Fetch or Axios to send an HTTP request to Chainbase, passing in Vitalik's wallet address, and receive the specific amounts of tokens such as UNI, dYdX, etc. in seconds.
Output: Contract address + token balance, can be precise to a specific token.
Solution 2: Alchemy (Most Flexible)
Advantages: Most comprehensive features, most detailed data
Core Steps:
Extra Capability: The returned balance is in hexadecimal format and needs to be converted to a human-readable number. Alchemy allows filtering of zero balance tokens and supports custom scripts to link two methods.
Output: Complete token information (Name/Symbol/Logo URL/Decimal Precision) + Balance.
Solution 3: Moralis (Most out-of-the-box)
Advantages: Enterprise-level stability, minimal one-liner code.
Core Steps:
Output: JSON format, including contract address, token name, symbol, precision, balance.
Three-party Comparison
| Tool | Ease of Use | Functionality Completeness | Output Friendliness | Most Suitable | |------|--------|---------|---------|--------| | Chainbase | The simplest | Medium | Medium | Quick query | | Alchemy | Medium | Most Comprehensive | Good (requires manual optimization) | Professional Development | | Moralis | The simplest | Complete | The best | Enterprise applications |
Core Differences
Selection Suggestions: Use Moralis for quick verification; choose Alchemy for in-depth customization; select Chainbase for data query orientation.