Geth Proxy

For the full documentation of available parameters and descriptions, please visit the official Ethereum JSON-RPC docs.

For compatibility with Parity, please prefix all hex strings with " 0x ".

eth_blockNumber

Returns the number of most recent block

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_blockNumber
   &apikey=YourApiKeyToken

No parameters required.

eth_getBlockByNumber

Returns information about a block by block number.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getBlockByNumber
   &tag=0x1276d6
   &boolean=true
   &apikey=YourApiKeyToken

Query Parameters

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getBlockTransactionCountByNumber
   &tag=0x1276d6
   &apikey=YourApiKeyToken

Query Parameters

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getTransactionByHash
   &txhash=0x62465076c448b8d48568b8addbf4fe8dd7088c5bcce4fb82f92953000e10972c
   &apikey=YourApiKeyToken

Query Parameters

eth_getTransactionByBlockNumberAndIndex

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

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getTransactionByBlockNumberAndIndex
   &tag=0x1276d6
   &index=0x0
   &apikey=YourApiKeyToken

Query Parameters

eth_getTransactionCount

Returns the number of transactions performed by an address.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getTransactionCount
   &address=0xf198a1af2682538e834bbc5f1af1847cf50603e1
   &tag=latest
   &apikey=YourApiKeyToken

Query Parameters

eth_sendRawTransaction

Submits a pre-signed transaction for broadcast to the Ethereum network.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_sendRawTransaction
   &hex=0xe8e337000000000000000000000000000091f4e75a03c11cb9be8e3717219005eb780d890000000000000000000000008cf05e03d9ad6c9141e2ef8c3836185abc94b05a000000000000000000000000000000000000000000000ed2b525841adfc0000000000000000000000000000000000000000000000000021e19e0c9bab240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f198a1af2682538e834bbc5f1af1847cf50603e100000000000000000000000000000000000000000000000000038d7ea4c68000
   &apikey=YourApiKeyToken

Query Parameters

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getTransactionReceipt
   &txhash=0x62465076c448b8d48568b8addbf4fe8dd7088c5bcce4fb82f92953000e10972c
   &apikey=YourApiKeyToken

Query Parameters

eth_call

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

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_call
   &to=0x4200000000000000000000000000000000000042
   &data=0x095ea7b3000000000000000000000000a7ca2c8673bcfa5a26d8ceec2887f2cc2b0db22affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
   &tag=latest
   &apikey=YourApiKeyToken

Query Parameters

eth_getCode

Returns code at a given address.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getCode
   &address=0x46E7b6b82F45a9e85c34595E2a5aE76cC67FF5Ba
   &tag=latest
   &apikey=YourApiKeyToken

Query Parameters

eth_getStorageAt

Returns the value from a storage position at a given address.

This endpoint is still experimental and may have potential issues

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_getStorageAt
   &address=0x46E7b6b82F45a9e85c34595E2a5aE76cC67FF5Ba
   &position=0x0
   &tag=latest
   &apikey=YourApiKeyToken

Query Parameters

eth_gasPrice

Returns the current price per gas in wei.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_gasPrice
   &apikey=YourApiKeyToken

No parameters required.

eth_estimateGas

Makes a call or transaction, which won't be added to the blockchain and returns the used gas.

https://api-sepolia-optimism.etherscan.io/api
   ?module=proxy
   &action=eth_estimateGas
   &data=0x
   &to=0x1464F3b6EA5A34b6832897F7b0E418482c773a7b
   &value=0xff22
   &gasPrice=0x51da038cc
   &gas=0x5f5e0ff
   &apikey=YourApiKeyToken

Query Parameters

Last updated