Polygon JSON RPC API
Introduction
Polygon (formerly Matic Network) is a protocol and a framework for building and connecting Ethereum-compatible blockchain networks. It offers a highly scalable, low-cost platform for decentralized applications (dApps) without sacrificing security. Polygon is known for its fast finality and low transaction fees, making it ideal for various use cases, including DeFi, NFTs, and gaming.
Supported Networks
The Polygon RPC API is available for the following networks:
- Polygon Mainnet
- Polygon Amoy Testnet
Network Details
Network | Chain ID | EVM Chain | RPC URLs |
---|---|---|---|
Polygon Mainnet | 0x89 (137) | EvmChain.POLYGON | https://site1.moralis-nodes.com/polygon/ |
https://site2.moralis-nodes.com/polygon/ | |||
Polygon Amoy | 0x13882 (80002) | EvmChain.POLYGON_AMOY | https://site1.moralis-nodes.com/amoy/ |
https://site2.moralis-nodes.com/amoy/ |
Supported RPC Methods
- eth_blockNumber
- eth_call
- eth_chainId
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getBlockReceipts
- eth_getCode
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByHash
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_sendRawTransaction