List of all Polygon PoS API endpoints
Polygon API Endpoints by use case
- Getting Blocks
- Reading Transactions
- Writing Transactions & EVM Execution
- Account Information
- Event Logs
- Chain Information
- Getting Uncles
- Gas Estimation
- Web3
- Real-time Events
Available Enhanced APIs
Getting Blocks
Retrieves information from a particular block in the blockchain.
Reading Transactions
Retrieves information on the state data for addresses regardless of whether it is a user or a smart contract.
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionByBlockHashAndIndex
- eth_getBlockTransactionCountByNumber
- eth_getTransactionReceipt
- eth_getBlockTransactionCountByHash
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionReceiptsByBlock
Writing Transactions & EVM Execution
Allows developers to both send MATIC from one address to another, write data on-chain, and interact with smart contracts.
Account Information
Returns information regarding an address's stored on-chain data.
Event Logs
Returns logs which are records that denote/provide context on specific events within a smart contract, like a token transfer or a change of ownership for example.
- eth_getLogs
- eth_getFilterChanges
- eth_getFilterLogs
- eth_newBlockFilter
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
Chain Information
Returns information on the Polygon network and internal settings.
- eth_getSignersAtHash
- eth_chainId
- eth_getRootHash
- bor_getAuthor
- net_listening
- net_version
- getCurrentProposer
- bor_getCurrentValidators
- bor_getRootHash
Getting Uncles
Returns information on uncle blocks which are network rejected blocks and replaced by a canonical block instead.
- eth_getUncleCountByBlockNumber
- eth_getUncleCountByBlockHash
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
Gas Estimation
Web3
Returns Polygon network configuration information.
Real-time Events
Introduces WebSocket-based requests/responses which leverage a network connection allowing developers to listen for changes continuously without the need for HTTP polling.
Available Enhanced APIs
NFT API
Transfers API
All Networks |
---|
- ERC20 Transfers - ERC1155 Transfers - ERC721 Transfers - External Transfers - Internal Transfers |
Transaction Receipts API
All Networks |
---|
- alchemy_getTransactionReceipts - Reinforced Transactions |
Token API
All Networks |
---|
- alchemy_getTokenAllowance - alchemy_getTokenBalances - alchemy_getTokenMetadata |
Subscription API
All Networks |
---|
- newHeads - logs - newPendingTransactions - alchemy_minedTransactions - alchemy_pendingTransactions |