Polygon RPC

📘

See the Polygon RPC API connection guide.

eth

MethodNotesCompute Unit Value
eth_blockNumberReturns the number of the most recent block.1
eth_callExecutes a message call without creating a transaction on the blockchain.10
eth_chainIdReturns the chain identifier as a hexadecimal quantity.1
eth_estimateGasEstimates the gas required to execute a transaction.50
eth_feeHistoryReturns fee-market data for a requested range of blocks.1
eth_gasPriceReturns the current gas price per unit of gas as a hexadecimal quantity.5
eth_getBalanceReturns an account balance at a specified block.5
eth_getBlockByHashReturns a block by hash with either full transaction objects or transaction hashes.5
eth_getBlockByNumberReturns a block by number or block tag with either full transaction objects or transaction hashes.5
eth_getBlockReceiptsReturns the transaction receipts for a specified block.5
eth_getBlockTransactionCountByHashReturns the number of transactions in a block identified by hash.5
eth_getBlockTransactionCountByNumberReturns the number of transactions in a block identified by number or tag.5
eth_getCodeReturns the code stored at an address at a specified block.5
eth_getFilterChangesReturns changes since the last poll for a filter.5
eth_getFilterLogsReturns all logs matching an existing filter.5
eth_getLogsReturns logs matching a filter object.50
eth_getProofReturns account and storage proofs for an address at a specified block.5
eth_getRawTransactionByBlockHashAndIndexReturns a raw transaction by block hash and transaction index.5
eth_getRawTransactionByBlockNumberAndIndexReturns a raw transaction by block number or tag and transaction index.5
eth_getStorageAtReturns the value stored at a specified storage position for an address at a block.5
eth_getTransactionByBlockHashAndIndexReturns a transaction by block hash and transaction index.5
eth_getTransactionByBlockNumberAndIndexReturns a transaction by block number or tag and transaction index.5
eth_getTransactionByHashReturns a transaction by its hash.5
eth_getTransactionCountReturns the number of transactions sent from an address at a specified block.10
eth_getTransactionReceiptReturns the receipt for a transaction hash.5
eth_getUncleByBlockHashAndIndexReturns the uncle at an index in a block identified by hash.5
eth_getUncleByBlockNumberAndIndexReturns the uncle at an index in a block identified by number or tag.5
eth_getUncleCountByBlockHashReturns the uncle count for a block identified by hash.5
eth_getUncleCountByBlockNumberReturns the uncle count for a block identified by number or tag.5
eth_maxPriorityFeePerGasReturns a suggested priority fee per gas.1
eth_newBlockFilterCreates a filter that reports newly added blocks.5
eth_newFilterCreates a filter for logs matching supplied criteria.5
eth_protocolVersionReturns the current Ethereum protocol version.1
eth_sendRawTransactionSubmits a signed serialized transaction and returns its transaction hash.100
eth_subscribeCreates a subscription for supported events over WebSocket.1
eth_syncingReturns synchronization status or false when the node is not syncing.1
eth_uninstallFilterRemoves a filter and returns whether it was removed.5
eth_unsubscribeCancels an existing WebSocket subscription.1

debug

MethodNotesCompute Unit Value
debug_traceBlockTraces an RLP-encoded block and returns execution traces for its transactions.50
debug_traceBlockByHashReplays a block identified by hash and returns execution traces for its transactions.50
debug_traceBlockByNumberReplays a block identified by number or tag and returns execution traces for its transactions.50
debug_traceTransactionReplays a transaction identified by hash and returns its execution trace.50

net

MethodNotesCompute Unit Value
net_peerCountReturns the number of peers connected to the node.1
net_versionReturns the current network identifier.1

web3

MethodNotesCompute Unit Value
web3_clientVersionReturns the current client version.1
web3_sha3Returns the Keccak-256 hash of the supplied data.1