1. Home
  2. Docs
  3. Polygon POS Chain Developer APIs
  4. Geth/Parity Proxy APIs

Geth/Parity Proxy APIs

Geth/Parity Proxy APIs

The following are the limited list of supported Proxied APIs for Geth available through PolygonScan.


eth_blockNumber

Returns the number of most recent block

https://api.polygonscan.com/api?module=proxy&action=eth_blockNumber&apikey=YourApiKeyToken

eth_getBlockByNumber

Returns information about a block by block number

https://api.polygonscan.com/api?module=proxy&action=eth_getBlockByNumber&tag=0x3d0900&boolean=true&apikey=YourApiKeyToken

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block from a block matching the given block number

https://api.polygonscan.com/api?module=proxy&action=eth_getBlockTransactionCountByNumber&tag=0x989680&apikey=YourApiKeyToken

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash

https://api.polygonscan.com/api?module=proxy&action=eth_getTransactionByHash&txhash=0x591ca00bf6b404e24e21732023abc0416673beff9586f37e61fb0f07ca560940&apikey=YourApiKeyToken

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position

https://api.polygonscan.com/api?module=proxy&action=eth_getTransactionByBlockNumberAndIndex&tag=0x989680&index=0x0&apikey=YourApiKeyToken

eth_getTransactionCount

Returns the number of transactions sent from an address

https://api.polygonscan.com/api?module=proxy&action=eth_getTransactionCount&address=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&tag=latest&apikey=YourApiKeyToken

eth_sendRawTransaction

Creates new message call transaction or a contract creation for signed transactions

https://api.polygonscan.com/api?module=proxy&action=eth_sendRawTransaction&hex=0xf904808000831cfde080&apikey=YourApiKeyToken

(Replace the hex value with your raw hex encoded transaction that you want to send.
Send as a POST request, if your hex code is particularly long)

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash

https://api.polygonscan.com/api?module=proxy&action=eth_getTransactionReceipt&txhash=0x591ca00bf6b404e24e21732023abc0416673beff9586f37e61fb0f07ca560940&apikey=YourApiKeyToken

eth_call

Executes a new message call immediately without creating a transaction on the block chain

https://api.polygonscan.com/api?module=proxy&action=eth_call&to=0xAEEF46DB4855E25702F8237E8f403FddcaF931C0&data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724&tag=latest&apikey=YourApiKeyToken

(The gas parameter to eth_call is capped at 2x the current block gas limit)

eth_getCode

Returns code at a given address

https://api.polygonscan.com/api?module=proxy&action=eth_getCode&address=0x0000000000000000000000000000000000001010&tag=latest&apikey=YourApiKeyToken

eth_getStorageAt (**experimental)

Returns the value from a storage position at a given address

https://api.polygonscan.com/api?module=proxy&action=eth_getStorageAt&address=0x0000000000000000000000000000000000001010&position=0x0&tag=latest&apikey=YourApiKeyToken

eth_gasPrice

Returns the current price per gas in wei

https://api.polygonscan.com/api?module=proxy&action=eth_gasPrice&apikey=YourApiKeyToken

eth_estimateGas

Makes a call or transaction, which won’t be added to the blockchain and returns the used gas, which can be used for estimating the used gas

https://api.polygonscan.com/api?module=proxy&action=eth_estimateGas&data=0x4e71d92d&to=0xf0160428a8552ac9bb7e050d90eeade4ddd52843&value=0xff22&gasPrice=0x51da038cc&gas=0x5f5e0ff&apikey=YourApiKeyToken

(The gas parameter to eth_estimateGas is capped at 2x the current block gas limit)

Originally published @ https://polygonscan.com/apis#proxy

Was this article helpful to you? Yes No

How can we help?