Polygon API
Introduction
Polygon is a Layer 2 scaling solution for Ethereum, offering faster transactions with lower fees while still benefiting from Ethereum’s security. Polygon aims to improve the user experience and developer experience by enabling decentralized applications (dapps) to scale efficiently. With a robust ecosystem and a growing set of tools, Polygon has become a popular choice for DeFi, NFTs, and gaming applications.
Supported Networks
The Web3 Data API is available for the following Polygon networks:
- Polygon Mainnet
- Polygon Amoy Testnet
Network Details
Network | Chain ID | EVM Chain |
---|---|---|
Polygon Mainnet | 0x89 (137) | EvmChain.POLYGON |
Polygon Amoy | 0x13882 (80002) | EvmChain.POLYGON_AMOY |
Supported APIs
The following APIs are supported for Polygon:
Wallet API
The Wallet API enables you to interact with wallet data on the Polygon blockchain.
- Get Wallet History on Polygon
- Get Wallet Token Balances on Polygon
- Get Wallet Token Approvals on Polygon
- Get Wallet NFT Balances on Polygon
- Get Wallet DeFi Positions on Polygon
- Get Wallet Net-worth on Polygon
- Get Wallet PnL on Polygon
- Get Wallet Details on Polygon
- Get Wallet Domains on Polygon
NFT API
The NFT API allows you to interact with NFT-related data on Polygon. You can:
- Get NFTs on Polygon
- Get NFT Metadata on Polygon
- Get NFT Transfers on Polygon
- Get NFT Collections on Polygon
- Get NFT Owners on Polygon
- Get NFT Prices on Polygon
- Get NFT Trades on Polygon
- Get NFT Stats on Polygon
- Get NFT Traits and Rarity on Polygon
Token API
The Token API provides methods for interacting with ERC-20 tokens on Polygon. Choose from the following actions:
- Get Token Metadata on Polygon
- Get Token Price on Polygon
- Get Token Balances on Polygon
- Get Token Approvals on Polygon
- Get Token Transfers on Polygon
- Get Token Top Traders on Polygon
- Get Token Pairs & Liquidity on Polygon
- Get Token Stats on Polygon
- Get Token Owners on Polygon
DeFi API
The DeFi API enables interaction with decentralized finance positions and data on Polygon:
Entity API
The Entity API allows you to interact with various entities on Polygon, such as exchanges or other organizations:
Price API
Retrieve price data for tokens and NFTs on Polygon using the Price API:
Blockchain API
The Blockchain API gives access to blockchain-level data such as blocks, transactions, and logs:
- Get Blocks on Polygon
- Get Transactions on Polygon
- Get Logs on Polygon
- Get Stats on Polygon
- Get Latest Block Number on Polygon
Unlock the Power of Polygon with Moralis
Curious about how you can leverage the full potential of Polygon? Check out our Polygon 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 Polygon development for all kinds of dapps.
Discover more about what you can build on Polygon with Moralis:
Learn more on our Polygon page