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.gnosisscan.io/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0x165b3e8"
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x165b3e8
&boolean=true
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the block number, in hex eg. 0xC36B3C |
| 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
{
"jsonrpc": "2.0",
"result": {
"author": "0x571846e42308df2dad8ed792f44a8bfddf0acb4d",
"difficulty": "0xfffffffffffffffffffffffffffffffe",
"extraData": "0x4e65746865726d696e64",
"gasLimit": "0x1c9c380",
"gasUsed": "0x8f9b7",
"hash": "0x2416cc80c7309f8c0b6fcfca91204f17844ae2ff296e7e89ad934ce1a9ffd6b4",
"logsBloom": "0x00010000000000000020000000900000000000000000000000000000001008000004600000000000000000000000400410000000000000000000000000000000000000000000000000200008000000000000000000000000000000004000000000010000020000000000010000000800000000000000000008000010000400000000100000000800000000000000000000000000000002000000000100000000000000000000000000080000000000000000100000000000000000000000000040000002000000000000000004000000000000000100000000000020010020000000000800000000000000000000000000001000008000010000000000000000",
"miner": "0x571846e42308df2dad8ed792f44a8bfddf0acb4d",
"number": "0x165b3e8",
"parentHash": "0x5480612da1ca068da1e29eea890e2db7997090f47fe05397d0f682e8d05e793f",
"receiptsRoot": "0xd685adf7784094abb8471b5df9e0e8a2ba46c7a2a1bdb6ecbd8c7805cb86e133",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"signature": "0x3ef1acb2f3c788e41c35ae4a9d3c6333ff317b9c9b2708cf228472882e6b757a7e7a625b8cd54e49bc81bc11bfc8b0b4ffcca4a975931dd9cf085a1d1b8b770301",
"size": "0x459",
"stateRoot": "0x5eaa49fcdd877f28e71fbd7968d16293ddbb9e4db7932f8a8c8f4759cf9ee3e3",
"step": 331843308,
"totalDifficulty": "0x165b3e7ffffffffffffffffffffffffead4c52c",
"timestamp": "0x62e5a29c",
"baseFeePerGas": "0x7",
"transactions": [
{
"hash": "0x8498640fd70deb1d2de070507d06dc48378e1e3abc653c35895d52667f94395d",
"nonce": "0x2cc",
"blockHash": "0x2416cc80c7309f8c0b6fcfca91204f17844ae2ff296e7e89ad934ce1a9ffd6b4",
"blockNumber": "0x165b3e8",
"transactionIndex": "0x0",
"from": "0xddfce1c298c078f25694bcf6fb16f6f470b665ee",
"to": "0xda35a653bc88c41bfb0606b4783ede671c565c96",
"value": "0x0",
"gasPrice": "0x59682f07",
"maxPriorityFeePerGas": "0x59682f00",
"maxFeePerGas": "0x59682f08",
"gas": "0xfe1a2",
"data": "0xd1df69bb0000000000000000000000005e6158a9b466a7225fcdb5b8c6644f66c0b891d8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004464f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004574f4f4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000005c283daa479126e28400000000000000000000000000000000000000000000005c283daa479126e284",
"input": "0xd1df69bb0000000000000000000000005e6158a9b466a7225fcdb5b8c6644f66c0b891d8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004464f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004574f4f4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000005c283daa479126e28400000000000000000000000000000000000000000000005c283daa479126e284",
"chainId": "0x64",
"type": "0x2",
"v": "0x0",
"s": "0x5c2232b3d3b85a0b6aa05760af1b27089d6b53e0d39f83479f678e98efc05ca",
"r": "0x1dbc86bf481d172e1fa4b1573be058019b130bbf0a4495c48991df692f6acb78",
"yParity": "0x0"
}
],
"transactionsRoot": "0xaabd4fcfca0a4ffbc2c20004f8b4b25803cb1012855ca9dbe8832e0a53f876d6",
"uncles": []
},
"id": 1
}
eth_getUncleByBlockNumberAndIndex
Returns information about a uncle by block number.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getUncleByBlockNumberAndIndex
&tag=0xC63276
&index=0x0
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the block number, in hex eg. 0xC36B3C |
| the position of the uncle's index in the block, in hex eg. 0x5 |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"baseFeePerGas":"0x65a42b13c",
"difficulty":"0x1b1457a8247bbb",
"extraData":"0x486976656f6e2063612d68656176792059476f6e",
"gasLimit":"0x1ca359a",
"gasUsed":"0xb48fe1",
"hash":"0x1da88e3581315d009f1cb600bf06f509cd27a68cb3d6437bda8698d04089f14a",
"logsBloom":"0xf1a360ca505cdda510d810c1c81a03b51a8a508ed601811084833072945290235c8721e012182e40d57df552cf00f1f01bc498018da19e008681832b43762a30c26e11709948a9b96883a42ad02568e3fcc3000004ee12813e4296498261619992c40e22e60bd95107c5bd8462fcca570a0095d52a4c24720b00f13a2c3d62aca81e852017470c109643b15041fd69742406083d67654fc841a18b405ab380e06a8c14c0138b6602ea8f48b2cd90ac88c3478212011136802900264718a085047810221225080dfb2c214010091a6f233883bb0084fa1c197330a10bb0006686e678b80e50e4328000041c218d1458880181281765d28d51066058f3f80a7822",
"miner":"0x1ad91ee08f21be3de0ba2ba6918e714da6b45836",
"mixHash":"0xa8e1dbbf073614c7ed05f44b9e92fbdb3e1d52575ed8167fa57f934210bbb0a2",
"nonce":"0x28cc3e5b7bee9866",
"number":"0xc63274",
"parentHash":"0x496dae3e722efdd9ee1eb69499bdc7ed0dca54e13cd1157a42811c442f01941f",
"receiptsRoot":"0x9c9a7a99b4af7607691a7f2a50d474290385c0a6f39c391131ea0c67307213f4",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x224",
"stateRoot":"0xde9a11f0ee321390c1a7843cab7b9ffd3779d438bc8f77de4361dfe2807d7dee",
"timestamp":"0x6110bd1a",
"transactionsRoot":"0xa04a79e531db3ec373cb63e9ebfbc9c95525de6347958918a273675d4f221575",
"uncles":[
]
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x165b3e8
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the block number, in hex eg. 0x10FB78 |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x1"
}
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xb76d2ba3313ebbfca1177846e791d91a3c7f675ba5c0cf8bb7ac2ad67403237c
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the hash of the transaction |
Sample Response
{
"jsonrpc": "2.0",
"result": {
"hash": "0xb76d2ba3313ebbfca1177846e791d91a3c7f675ba5c0cf8bb7ac2ad67403237c",
"nonce": "0xb",
"blockHash": "0xc274caeba488f30369ed6af43530660219cb32c2bb52463adde962546c45df99",
"blockNumber": "0x1798270",
"transactionIndex": "0x2",
"from": "0xcd10f5e7964dbc07218725ae2c4ed6320e5179fe",
"to": "0x8b90560963cf5625384e6e642c4979e6a1c38b04",
"value": "0x186cc6acd4b0000",
"gasPrice": "0x77359400",
"maxPriorityFeePerGas": "0x77359400",
"maxFeePerGas": "0x77359400",
"gas": "0x4e470",
"data": "0x12c04b3e000000000000000000000000000000000000000000000000000000000001ae2b",
"input": "0x12c04b3e000000000000000000000000000000000000000000000000000000000001ae2b",
"chainId": "0x64",
"type": "0x2",
"v": "0x1",
"s": "0x4a85243392cf451df8d9e77eac01cf24a4474f5fbd58d57eed48a50bb957a9d9",
"r": "0xe58395d02311e8fd3d0d537f368bb29c55af350fe2c9999a83463ea15e277cc5",
"yParity": "0x1"
},
"id": 1
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x165b3e8
&index=0x0
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the block number, in hex eg. 0x10FB78 |
| the position of the uncle's index in the block, in hex eg. 0x0 |
Sample Response
{
"jsonrpc": "2.0",
"result": {
"hash": "0x8498640fd70deb1d2de070507d06dc48378e1e3abc653c35895d52667f94395d",
"nonce": "0x2cc",
"blockHash": "0x2416cc80c7309f8c0b6fcfca91204f17844ae2ff296e7e89ad934ce1a9ffd6b4",
"blockNumber": "0x165b3e8",
"transactionIndex": "0x0",
"from": "0xddfce1c298c078f25694bcf6fb16f6f470b665ee",
"to": "0xda35a653bc88c41bfb0606b4783ede671c565c96",
"value": "0x0",
"gasPrice": "0x59682f07",
"maxPriorityFeePerGas": "0x59682f00",
"maxFeePerGas": "0x59682f08",
"gas": "0xfe1a2",
"data": "0xd1df69bb0000000000000000000000005e6158a9b466a7225fcdb5b8c6644f66c0b891d8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004464f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004574f4f4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000005c283daa479126e28400000000000000000000000000000000000000000000005c283daa479126e284",
"input": "0xd1df69bb0000000000000000000000005e6158a9b466a7225fcdb5b8c6644f66c0b891d8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004464f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004574f4f4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000005c283daa479126e28400000000000000000000000000000000000000000000005c283daa479126e284",
"chainId": "0x64",
"type": "0x2",
"v": "0x0",
"s": "0x5c2232b3d3b85a0b6aa05760af1b27089d6b53e0d39f83479f678e98efc05ca",
"r": "0x1dbc86bf481d172e1fa4b1573be058019b130bbf0a4495c48991df692f6acb78",
"yParity": "0x0"
},
"id": 1
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getTransactionCount
&address=0x37DCB9A9C7e39BA3FdC3e57721aDb08Ed1302335
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the address to get transaction count |
| the string pre-defined block parameter, either earliest , pending or latest |
Sample Response
{
"jsonrpc": "2.0",
"result": "0x30d",
"id": 1
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Ethereum network.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831cfde080
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the signed raw transaction data to broadcast. |
💡 Tip: Send a POST request if your hex string is particularly long.
🖋️ For more information on creating a signed raw transaction, visit this page.
Sample Response
{
"id":1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
⛏️ 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.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0xed89dc622cac813b2f30d125b7f16faee2ed7780b455c08040cd2bdd1f8dd835
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the hash of the transaction |
Sample Response
{
"jsonrpc": "2.0",
"result": {
"transactionHash": "0xed89dc622cac813b2f30d125b7f16faee2ed7780b455c08040cd2bdd1f8dd835",
"transactionIndex": "0x2",
"blockHash": "0xc43455a7d566748f93e191ec115de1e7b2d23cb75e3e44205a058c9f24d6753c",
"blockNumber": "0x1798320",
"cumulativeGasUsed": "0x38b0f",
"gasUsed": "0x5208",
"effectiveGasPrice": "0x3b9aca00",
"from": "0xb7ebd782ccf5142e73e6c64a590e773b63170745",
"to": "0x72d9e579f691d62aa7e0703840db6dd2fa9fae21",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"type": "0x0"
},
"id": 1
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_call
&to=0x22d63a26c730d49e5eab461e4f5de1d8bdf89c92
&data=0x095ea7b3000000000000000000000000f181ed90d6cfac84b8073fdea6d34aa744b41810ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the address to interact with |
| the hash of the method signature and encoded parameters |
| the string pre-defined block parameter, either earliest , pending or latest |
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x"
}
eth_getCode
Returns code at a given address.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_getCode
&address=0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the address to get code |
| the string pre-defined block parameter, either earliest , pending or latest |
Sample Response
{
"jsonrpc": "2.0",
"result": "0x608060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416635c60da1b81146092575b6000604660cd565b905073ffffffffffffffffffffffffffffffffffffffff81161515606957600080fd5b60405136600082376000803683855af43d82016040523d6000833e808015608e573d83f35b3d83fd5b348015609d57600080fd5b5060a460cd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54905600a165627a7a723058205d442d0b224de4b205ca61128d615099ba3021d9d5d21bc18d96bc5e201685800029",
"id": 1
}
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.gnosisscan.io/api
?module=proxy
&action=eth_getStorageAt
&address=0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Query Parameters
Parameter | Description |
---|
| the string representing the address to get code |
| the hex code of the position in storage, eg 0x0 |
| the string pre-defined block parameter, either earliest , pending or latest |
Sample Response
{
"jsonrpc": "2.0",
"result": "0x436861696e4c696e6b20546f6b656e206f6e207844616900000000000000002e",
"id": 1
}
eth_gasPrice
Returns the current price per gas in wei.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Sample Response
{
"jsonrpc": "2.0",
"result": "0x59682f07",
"id": 73
}
📖 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.
https://api.gnosisscan.io/api
?module=proxy
&action=eth_estimateGas
&data=0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000014489a153cc0000000000000000000000000c0858290b6b268a93fb557af06390a3460c5db6000000000000000000000000e51c4a096d583688baa500350b46fa498b4c3f92000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000001cdda4faccd000000000000000000000000000000000000000000000000000001cdda4faccd0000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000a4b1000000000000000000000000000000000000000000000000000355c11537122b00000000000000000000000000000000000000000000000000042a912f8d2dd800000000000000000000000000000000000000000000000000000000000153a200000000000000000000000000000000000000000000000000000000
&to=0x22d63a26c730d49e5eab461e4f5de1d8bdf89c92
&value=0x0
&gasPrice=0x51da038cc
&gas=0x5f5e0ff
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the hash of the method signature and encoded parameters |
| the string representing the address to interact with |
| the value sent in this transaction, in hex eg. 0xff22 |
| the amount of gas provided for the transaction, in hex eg. 0x5f5e0ff |
| 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
{
"jsonrpc": "2.0",
"result": "0x5da0",
"id": 1
}