Base API
Introduction
Base is a Layer 2 network built on top of Ethereum, offering fast and low-cost transactions while maintaining the security of Ethereum. It is optimized for decentralized applications (dApps), making it an attractive platform for DeFi, NFTs, and other blockchain use cases. Base provides developers with a secure, scalable, and interoperable environment for building dApps that leverage the Ethereum ecosystem.
Supported Networks
The Web3 Data API is available for the following Base networks:
- Base Mainnet
- Base Sepolia Testnet
Network Details
Network | Chain ID | EVM Chain |
---|---|---|
Base Mainnet | 0x2105 (8453) | EvmChain.BASE |
Base Sepolia Testnet | 0x14a34 (84532) | EvmChain.BASE_SEPOLIA |
Supported APIs
The following APIs are supported for Base:
Wallet API
The Wallet API enables you to interact with wallet data on the Base blockchain.
- Get Wallet History on Base
- Get Wallet Token Balances on Base
- Get Wallet Token Approvals on Base
- Get Wallet NFT Balances on Base
- Get Wallet DeFi Positions on Base
- Get Wallet Net-worth on Base
- Get Wallet PnL on Base
- Get Wallet Details on Base
- Get Wallet Domains on Base
NFT API
The NFT API allows you to interact with NFT-related data on Base. You can:
- Get NFTs on Base
- Get NFT Metadata on Base
- Get NFT Transfers on Base
- Get NFT Collections on Base
- Get NFT Owners on Base
- Get NFT Prices on Base
- Get NFT Trades on Base
- Get NFT Stats on Base
- Get NFT Traits and Rarity on Base
Token API
The Token API provides methods for interacting with ERC-20 tokens on Base. Choose from the following actions:
- Get Token Metadata on Base
- Get Token Price on Base
- Get Token Balances on Base
- Get Token Approvals on Base
- Get Token Transfers on Base
- Get Token Top Traders on Base
- Get Token Pairs & Liquidity on Base
- Get Token Stats on Base
- Get Token Owners on Base
DeFi API
The DeFi API enables interaction with decentralized finance positions and data on Base:
Entity API
The Entity API allows you to interact with various entities on Base, such as exchanges or other organizations:
Price API
Retrieve price data for tokens and NFTs on Base using the Price API:
Blockchain API
The Blockchain API gives access to blockchain-level data such as blocks, transactions, and logs:
- Get Blocks on Base
- Get Transactions on Base
- Get Logs on Base
- Get Stats on Base
- Get Latest Block Number on Base
Unlock the Power of Base with Moralis
Curious about how you can leverage the full potential of Base? Check out our Base page to see how Moralis can help you build faster and smarter. With features like easy access to on-chain data, token balances, and NFT management, Moralis simplifies Base development for all kinds of dapps.
Discover more about what you can build on Base with Moralis:
Learn more on our Base page