Geth/Parity 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
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_blockNumber
4
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
No parameters required.
Sample response
1
{
2
"jsonrpc":"2.0",
3
"id":83,
4
"result":"0xc36b29"
5
}
Copied!

eth_getBlockByNumber

Returns information about a block by block number.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getBlockByNumber
4
&tag=0x10d4f
5
&boolean=true
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
tag
the block number, in hex eg. 0xC36B3C
boolean
the boolean value to show full transaction objects.
when true, returns full transaction objects and their information, when false only returns a list of transactions.
Sample response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":{
5
"baseFeePerGas":"0x5cfe76044",
6
"difficulty":"0x1b4ac252b8a531",
7
"extraData":"0xd883010a06846765746888676f312e31362e36856c696e7578",
8
"gasLimit":"0x1caa87b",
9
"gasUsed":"0x5f036a",
10
"hash":"0x396288e0ad6690159d56b5502a172d54baea649698b4d7af2393cf5d98bf1bb3",
11
"logsBloom":"0x5020418e211832c600000411c00098852850124700800500580d406984009104010420410c00420080414b044000012202448082084560844400d00002202b1209122000812091288804302910a246e25380282000e00002c00050009038cc205a018180028225218760100040820ac12302840050180448420420b000080000410448288400e0a2c2402050004024a240200415016c105844214060005009820302001420402003200452808508401014690208808409000033264a1b0d200c1200020280000cc0220090a8000801c00b0100a1040a8110420111870000250a22dc210a1a2002409c54140800c9804304b408053112804062088bd700900120",
12
"miner":"0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c",
13
"mixHash":"0xc547c797fb85c788ecfd4f5d24651bddf15805acbaad2c74b96b0b2a2317e66c",
14
"nonce":"0x04a99df972bd8412",
15
"number":"0xc63251",
16
"parentHash":"0xbb2d43395f93dab5c424421be22d874f8c677e3f466dc993c218fa2cd90ef120",
17
"receiptsRoot":"0x3de3b59d208e0fd441b6a2b3b1c814a2929f5a2d3016716465d320b4d48cc1e5",
18
"sha3Uncles":"0xee2e81479a983dd3d583ab89ec7098f809f74485e3849afb58c2ea8e64dd0930",
19
"size":"0x6cb6",
20
"stateRoot":"0x60fdb78b92f0e621049e0aed52957971e226a11337f633856d8b953a56399510",
21
"timestamp":"0x6110bab2",
22
"totalDifficulty":"0x612789b0aba90e580f8",
23
"transactions":[
24
"0x40330c87750aa1ba1908a787b9a42d0828e53d73100ef61ae8a4d925329587b5",
25
"0x6fa2208790f1154b81fc805dd7565679d8a8cc26112812ba1767e1af44c35dd4",
26
"0xe31d8a1f28d4ba5a794e877d65f83032e3393809686f53fa805383ab5c2d3a3c",
27
"0xa6a83df3ca7b01c5138ec05be48ff52c7293ba60c839daa55613f6f1c41fdace",
28
"0x4e46edeb68a62dde4ed081fae5efffc1fb5f84957b5b3b558cdf2aa5c2621e17",
29
"0x356ee444241ae2bb4ce9f77cdbf98cda9ffd6da244217f55465716300c425e82",
30
"0x1a4ec2019a3f8b1934069fceff431e1370dcc13f7b2561fe0550cc50ab5f4bbc",
31
"0xad7994bc966aed17be5d0b6252babef3f56e0b3f35833e9ac414b45ed80dac93"
32
],
33
"transactionsRoot":"0xaceb14fcf363e67d6cdcec0d7808091b764b4428f5fd7e25fb18d222898ef779",
34
"uncles":[
35
"0x9e8622c7bf742bdeaf96c700c07151c1203edaf17a38ea8315b658c2e6d873cd"
36
]
37
}
38
}
Copied!

eth_getUncleByBlockNumberAndIndex

Returns information about a uncle by block number.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getUncleByBlockNumberAndIndex
4
&tag=0xC63276
5
&index=0x0
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
tag
the block number, in hex eg. 0xC36B3C
index
the position of the uncle's index in the block, in hex eg. 0x5
Sample response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":{
5
"baseFeePerGas":"0x65a42b13c",
6
"difficulty":"0x1b1457a8247bbb",
7
"extraData":"0x486976656f6e2063612d68656176792059476f6e",
8
"gasLimit":"0x1ca359a",
9
"gasUsed":"0xb48fe1",
10
"hash":"0x1da88e3581315d009f1cb600bf06f509cd27a68cb3d6437bda8698d04089f14a",
11
"logsBloom":"0xf1a360ca505cdda510d810c1c81a03b51a8a508ed601811084833072945290235c8721e012182e40d57df552cf00f1f01bc498018da19e008681832b43762a30c26e11709948a9b96883a42ad02568e3fcc3000004ee12813e4296498261619992c40e22e60bd95107c5bd8462fcca570a0095d52a4c24720b00f13a2c3d62aca81e852017470c109643b15041fd69742406083d67654fc841a18b405ab380e06a8c14c0138b6602ea8f48b2cd90ac88c3478212011136802900264718a085047810221225080dfb2c214010091a6f233883bb0084fa1c197330a10bb0006686e678b80e50e4328000041c218d1458880181281765d28d51066058f3f80a7822",
12
"miner":"0x1ad91ee08f21be3de0ba2ba6918e714da6b45836",
13
"mixHash":"0xa8e1dbbf073614c7ed05f44b9e92fbdb3e1d52575ed8167fa57f934210bbb0a2",
14
"nonce":"0x28cc3e5b7bee9866",
15
"number":"0xc63274",
16
"parentHash":"0x496dae3e722efdd9ee1eb69499bdc7ed0dca54e13cd1157a42811c442f01941f",
17
"receiptsRoot":"0x9c9a7a99b4af7607691a7f2a50d474290385c0a6f39c391131ea0c67307213f4",
18
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
19
"size":"0x224",
20
"stateRoot":"0xde9a11f0ee321390c1a7843cab7b9ffd3779d438bc8f77de4361dfe2807d7dee",
21
"timestamp":"0x6110bd1a",
22
"transactionsRoot":"0xa04a79e531db3ec373cb63e9ebfbc9c95525de6347958918a273675d4f221575",
23
"uncles":[
24
25
]
26
}
27
}
Copied!

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getBlockTransactionCountByNumber
4
&tag=0x10FB78
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
tag
the block number, in hex eg. 0x10FB78
Sample response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x3"
5
}
Copied!

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getTransactionByHash
4
&txhash=0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
txhash
the string representing the hash of the transaction
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"result":{
4
"accessList":[
5
6
],
7
"blockHash":"0xdce94191f861842c2786e3594da0c0109707fd78409cab5f38e10eb87d0f301c",
8
"blockNumber":"0xa36e44",
9
"chainId":"0x3",
10
"condition":null,
11
"creates":null,
12
"from":"0xb910ae1db14a9fbc64ce175bdca6d3a743f690ab",
13
"gas":"0x186a0",
14
"gasPrice":"0x3b9aca09",
15
"hash":"0xf96ff62ba5aaf46cd824b6766f7fa6f6b9595b1dd4ef1d31bcf1f765047c2835",
16
"input":"0xd0e30db0",
17
"maxFeePerGas":"0x3b9aca12",
18
"maxPriorityFeePerGas":"0x3b9aca00",
19
"nonce":"0xc6",
20
"publicKey":"0x6dbf7068e19de8457c426a758a92ea54827ebd5b8467c3a1a5c4ac19bc7570457738fe496a40ea4e1f59d39d89636a430afdec0bf2a8060c6bf7d612bfe90ad3",
21
"r":"0xdecdc48821a06bf116e82b355d520dc5a44d6df98234e5344c16565b0b3dfdba",
22
"raw":"0x02f8750381c6843b9aca00843b9aca12830186a094c778417e063141139fce010982780140aa0cd5ab8502540be40084d0e30db0c001a0decdc48821a06bf116e82b355d520dc5a44d6df98234e5344c16565b0b3dfdbaa06b85bb6fd8153e86b50f0011787585e8c709a2a25e7ee3c2579572f07acfd42e",
23
"s":"0x6b85bb6fd8153e86b50f0011787585e8c709a2a25e7ee3c2579572f07acfd42e",
24
"to":"0xc778417e063141139fce010982780140aa0cd5ab",
25
"transactionIndex":"0xd",
26
"type":"0x2",
27
"v":"0x1",
28
"value":"0x2540be400"
29
},
30
"id":1
31
}
Copied!

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getTransactionByBlockNumberAndIndex
4
&tag=0xC6331D
5
&index=0x11A
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
tag
the block number, in hex eg. 0x10FB78
index
the position of the uncle's index in the block, in hex eg. 0x0
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"result":{
4
"accessList":[
5
6
],
7
"blockHash":"0xdce94191f861842c2786e3594da0c0109707fd78409cab5f38e10eb87d0f301c",
8
"blockNumber":"0xa36e44",
9
"chainId":"0x3",
10
"condition":null,
11
"creates":null,
12
"from":"0xb910ae1db14a9fbc64ce175bdca6d3a743f690ab",
13
"gas":"0x186a0",
14
"gasPrice":"0x3b9aca09",
15
"hash":"0xf96ff62ba5aaf46cd824b6766f7fa6f6b9595b1dd4ef1d31bcf1f765047c2835",
16
"input":"0xd0e30db0",
17
"maxFeePerGas":"0x3b9aca12",
18
"maxPriorityFeePerGas":"0x3b9aca00",
19
"nonce":"0xc6",
20
"publicKey":"0x6dbf7068e19de8457c426a758a92ea54827ebd5b8467c3a1a5c4ac19bc7570457738fe496a40ea4e1f59d39d89636a430afdec0bf2a8060c6bf7d612bfe90ad3",
21
"r":"0xdecdc48821a06bf116e82b355d520dc5a44d6df98234e5344c16565b0b3dfdba",
22
"raw":"0x02f8750381c6843b9aca00843b9aca12830186a094c778417e063141139fce010982780140aa0cd5ab8502540be40084d0e30db0c001a0decdc48821a06bf116e82b355d520dc5a44d6df98234e5344c16565b0b3dfdbaa06b85bb6fd8153e86b50f0011787585e8c709a2a25e7ee3c2579572f07acfd42e",
23
"s":"0x6b85bb6fd8153e86b50f0011787585e8c709a2a25e7ee3c2579572f07acfd42e",
24
"to":"0xc778417e063141139fce010982780140aa0cd5ab",
25
"transactionIndex":"0xd",
26
"type":"0x2",
27
"v":"0x1",
28
"value":"0x2540be400"
29
},
30
"id":1
31
}
Copied!

eth_getTransactionCount

Returns the number of transactions performed by an address**.**
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getTransactionCount
4
&address=0x4bd5900Cb274ef15b153066D736bf3e83A9ba44e
5
&tag=latest
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to get transaction count
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x44"
5
}
Copied!

eth_sendRawTransaction

Submits a pre-signed transaction for broadcast to the Ethereum network.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_sendRawTransaction
4
&hex=0xf904808000831cfde080
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
hex
the string representing the signed raw transaction data to broadcast.
​
πŸ–‹
Tip: For more information on creating a signed raw transaction, visit this page.​
Sample Response
1
{
2
"id":1,
3
"jsonrpc": "2.0",
4
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
5
}
Copied!
​
⛏
Note: The result represents the transaction hash of the submitted raw transaction.
Use eth_getTransactionReceipt to retrieve full details.

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getTransactionReceipt
4
&txhash=0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
txhash
the string representing the hash of the transaction
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"result":{
4
"blockHash":"0xdce94191f861842c2786e3594da0c0109707fd78409cab5f38e10eb87d0f301c",
5
"blockNumber":"0xa36e44",
6
"contractAddress":null,
7
"cumulativeGasUsed":"0x23e989",
8
"effectiveGasPrice":"0x3b9aca09",
9
"from":"0xb910ae1db14a9fbc64ce175bdca6d3a743f690ab",
10
"gasUsed":"0x6d22",
11
"logs":[
12
{
13
"address":"0xc778417e063141139fce010982780140aa0cd5ab",
14
"blockHash":"0xdce94191f861842c2786e3594da0c0109707fd78409cab5f38e10eb87d0f301c",
15
"blockNumber":"0xa36e44",
16
"data":"0x00000000000000000000000000000000000000000000000000000002540be400",
17
"logIndex":"0xd",
18
"removed":false,
19
"topics":[
20
"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
21
"0x000000000000000000000000b910ae1db14a9fbc64ce175bdca6d3a743f690ab"
22
],
23
"transactionHash":"0xf96ff62ba5aaf46cd824b6766f7fa6f6b9595b1dd4ef1d31bcf1f765047c2835",
24
"transactionIndex":"0xd",
25
"transactionLogIndex":"0x0",
26
"type":"mined"
27
}
28
],
29
"logsBloom":"0x00000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000400000000000000000",
30
"status":"0x1",
31
"to":"0xc778417e063141139fce010982780140aa0cd5ab",
32
"transactionHash":"0xf96ff62ba5aaf46cd824b6766f7fa6f6b9595b1dd4ef1d31bcf1f765047c2835",
33
"transactionIndex":"0xd",
34
"type":"0x2"
35
},
36
"id":1
37
}
Copied!

eth_call

Executes a new message call immediately without creating a transaction on the block chain.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_call
4
&to=0xAEEF46DB4855E25702F8237E8f403FddcaF931C0
5
&data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724
6
&tag=latest
7
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
to
the string representing the address to interact with
data
the hash of the method signature and encoded parameters
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x00000000000000000000000000000000000000000000000000601d8888141c00"
5
}
Copied!

eth_getCode

Returns code at a given address.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getCode
4
&address=0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c
5
&tag=latest
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to get code
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x3660008037602060003660003473273930d21e01ee25e4c219b63259d214872220a261235a5a03f21560015760206000f3"
5
}
Copied!

eth_getStorageAt

Returns the value from a storage position at a given address.
This endpoint is still experimental and may have potential issues
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_getStorageAt
4
&address=0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd
5
&position=0x0
6
&tag=latest
7
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to get code
position
the hex code of the position in storage, eg 0x0
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x0000000000000000000000003d0768da09ce77d25e2d998e6a7b6ed4b9116c2d"
5
}
Copied!

eth_gasPrice

Returns the current price per gas in wei.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_gasPrice
4
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
No parameters required.
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"id":73,
4
"result":"0x430e23400"
5
}
Copied!
​
πŸ“–
Tip: The result is returned in wei.
Easily convert Ethereum units using our unit converter.​

eth_estimateGas

Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
1
https://api.etherscan.io/api
2
?module=proxy
3
&action=eth_estimateGas
4
&data=0x4e71d92d
5
&to=0xf0160428a8552ac9bb7e050d90eeade4ddd52843
6
&value=0xff22
7
&gasPrice=0x51da038cc
8
&gas=0x5f5e0ff
9
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
data
the hash of the method signature and encoded parameters
to
the string representing the address to interact with
value
the value sent in this transaction, in hex eg. 0xff22
gas
the amount of gas provided for the transaction, in hex eg. 0x5f5e0ff
gasPrice
the gas price paid for each unit of gas, in wei
post EIP-1559, the gasPrice has to be higher than the block's baseFeePerGas
​
β›½
Note: The gas parameter is capped at 2x the current block gas limit.
Sample Response
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x6556"
5
}
Copied!
Last modified 7d ago