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.scrollscan.com/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0x9b0ce"
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api.scrollscan.com/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x10d4f
&boolean=true
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"baseFeePerGas":"0x5cfe76044",
"difficulty":"0x1b4ac252b8a531",
"extraData":"0xd883010a06846765746888676f312e31362e36856c696e7578",
"gasLimit":"0x1caa87b",
"gasUsed":"0x5f036a",
"hash":"0x396288e0ad6690159d56b5502a172d54baea649698b4d7af2393cf5d98bf1bb3",
"logsBloom":"0x5020418e211832c600000411c00098852850124700800500580d406984009104010420410c00420080414b044000012202448082084560844400d00002202b1209122000812091288804302910a246e25380282000e00002c00050009038cc205a018180028225218760100040820ac12302840050180448420420b000080000410448288400e0a2c2402050004024a240200415016c105844214060005009820302001420402003200452808508401014690208808409000033264a1b0d200c1200020280000cc0220090a8000801c00b0100a1040a8110420111870000250a22dc210a1a2002409c54140800c9804304b408053112804062088bd700900120",
"miner":"0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c",
"mixHash":"0xc547c797fb85c788ecfd4f5d24651bddf15805acbaad2c74b96b0b2a2317e66c",
"nonce":"0x04a99df972bd8412",
"number":"0xc63251",
"parentHash":"0xbb2d43395f93dab5c424421be22d874f8c677e3f466dc993c218fa2cd90ef120",
"receiptsRoot":"0x3de3b59d208e0fd441b6a2b3b1c814a2929f5a2d3016716465d320b4d48cc1e5",
"sha3Uncles":"0xee2e81479a983dd3d583ab89ec7098f809f74485e3849afb58c2ea8e64dd0930",
"size":"0x6cb6",
"stateRoot":"0x60fdb78b92f0e621049e0aed52957971e226a11337f633856d8b953a56399510",
"timestamp":"0x6110bab2",
"totalDifficulty":"0x612789b0aba90e580f8",
"transactions":[
"0x40330c87750aa1ba1908a787b9a42d0828e53d73100ef61ae8a4d925329587b5",
"0x6fa2208790f1154b81fc805dd7565679d8a8cc26112812ba1767e1af44c35dd4",
"0xe31d8a1f28d4ba5a794e877d65f83032e3393809686f53fa805383ab5c2d3a3c",
"0xa6a83df3ca7b01c5138ec05be48ff52c7293ba60c839daa55613f6f1c41fdace",
"0x4e46edeb68a62dde4ed081fae5efffc1fb5f84957b5b3b558cdf2aa5c2621e17",
"0x356ee444241ae2bb4ce9f77cdbf98cda9ffd6da244217f55465716300c425e82",
"0x1a4ec2019a3f8b1934069fceff431e1370dcc13f7b2561fe0550cc50ab5f4bbc",
"0xad7994bc966aed17be5d0b6252babef3f56e0b3f35833e9ac414b45ed80dac93"
],
"transactionsRoot":"0xaceb14fcf363e67d6cdcec0d7808091b764b4428f5fd7e25fb18d222898ef779",
"uncles":[
"0x9e8622c7bf742bdeaf96c700c07151c1203edaf17a38ea8315b658c2e6d873cd"
]
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api.scrollscan.com/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x9AC4D
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0xf"
}
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
https://api.scrollscan.com/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xbf8ba735101ab2b0b559e5033d21c0c71071bb3a5e5c5a96f7c4dacf3dcebdba
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xc7e3351432904fd994397401fceb33afcc6fbabf66b9a61db4593cbdad403265",
"blockNumber": "0x9ac4d",
"from": "0xb4cc7bfdd62b6faa6c24ff01c597b085dfadf470",
"gas": "0x85ca5",
"gasPrice": "0x18523240",
"hash": "0xbf8ba735101ab2b0b559e5033d21c0c71071bb3a5e5c5a96f7c4dacf3dcebdba",
"input": "0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000001a4ea5406320000000000000000000000005300000000000000000000000000000000000004000000000000000000000000f55bec9cafdbe8730f096aa55dad6d22d44099df0000000000000000000000000000000000000000000000000000000000000028fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2761800000000000000000000000000000000000000000000000000000000000d89e8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27618fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd257800000000000000000000000000000000000000000000000001df8b464c78f42e000000000000000000000000000000000000000000000000000000000f32fdc000000000000000000000000000000000000000000000000001df4df060022be7000000000000000000000000000000000000000000000000000000000f310b95000000000000000000000000b4cc7bfdd62b6faa6c24ff01c597b085dfadf47000000000000000000000000000000000000000000000000000000000654af63a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041faa413300000000000000000000000000000000000000000000000000000000",
"nonce": "0xd",
"to": "0xe222fbe074a436145b255442d919e4e3a6c6a480",
"transactionIndex": "0x8",
"value": "0x1df8b464c78f42e",
"type": "0x0",
"v": "0x104ec3",
"r": "0x8fe62b906d8210582bc8ffe0d293087a0b6f8ea8f17cd2f50d5178ed0884706c",
"s": "0x6e90f85ca943c44c53ad293fd7583a4036dc6f38dfe785243b2631c60333d919",
"sender": "0x0000000000000000000000000000000000000000"
}
}
eth_getTransactionByBlockNumber
Returns information about a transaction by block number.
https://api.scrollscan.com/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x9AC4D
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xc7e3351432904fd994397401fceb33afcc6fbabf66b9a61db4593cbdad403265",
"blockNumber": "0x9ac4d",
"from": "0xaf8ae6955d07776ab690e565ba6fbc79b8de3a5d",
"gas": "0x218ee",
"gasPrice": "0x188fd780",
"hash": "0x55882035f755f556243ebf3d99c1f85d95ea786888439a947e34908505907e1d",
"input": "0x535b355c000000000000000000000000a7f907f8ffaeb9bca992e27f2ad5aa39af926897000000000000000000000000000000000000000000000000000a1702ab64f400",
"nonce": "0x63455",
"to": "0x87627c7e586441eef9ee3c28b66662e897513f33",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"v": "0x104ec4",
"r": "0xcba2f91a2c58b253a3520caa88a89371c795c786e9e2fb10e1ac7e88646151e6",
"s": "0x9019b7c4355b9a51ef16e6ad4426105ea7f651de3d19dc5ebeb3c40708cf5ce",
"sender": "0x0000000000000000000000000000000000000000"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api.scrollscan.com/api
?module=proxy
&action=eth_getTransactionCount
&address=0xaf8aE6955d07776aB690e565Ba6Fbc79B8dE3a5d
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x63fec"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Ethereum network.
https://api.scrollscan.com/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831c
&apikey=YourApiKeyToken
Sample Response
{
"id":1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
Use eth_getTransactionReceipt to retrieve full details.
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
https://api.scrollscan.com/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0xadb8aec59e80db99811ac4a0235efa3e45da32928bcff557998552250fa672eb
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x07c17710dbb7514e92341c9f83b4aab700c5dba7c4fb98caadd7926a32e47799",
"blockNumber":"0xcf2427",
"contractAddress":null,
"cumulativeGasUsed":"0xeb67d5",
"effectiveGasPrice":"0x1a96b24c26",
"from":"0x292f04a44506c2fd49bac032e1ca148c35a478c8",
"gasUsed":"0xb41d",
"logs":[
{
"address":"0xdac17f958d2ee523a2206206994597c13d831ec7",
"topics":[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000292f04a44506c2fd49bac032e1ca148c35a478c8",
"0x000000000000000000000000ab6960a6511ff18ed8b8c012cb91c7f637947fc0"
],
"data":"0x00000000000000000000000000000000000000000000000000000000013f81a6",
"blockNumber":"0xcf2427",
"transactionHash":"0xadb8aec59e80db99811ac4a0235efa3e45da32928bcff557998552250fa672eb",
"transactionIndex":"0x122",
"blockHash":"0x07c17710dbb7514e92341c9f83b4aab700c5dba7c4fb98caadd7926a32e47799",
"logIndex":"0xdb",
"removed":false
}
],
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000004000000000004000000000000000000010000000000000000000000000000000000000000000000000000000008000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000010000000001100000000000000000000000000000000000000000000000000000200100000000000000000000000000080000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status":"0x1",
"to":"0xdac17f958d2ee523a2206206994597c13d831ec7",
"transactionHash":"0xadb8aec59e80db99811ac4a0235efa3e45da32928bcff557998552250fa672eb",
"transactionIndex":"0x122",
"type":"0x2"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api.scrollscan.com/api
?module=proxy
&action=eth_call
&to=0xaf8aE6955d07776aB690e565Ba6Fbc79B8dE3a5d
&data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x"
}
eth_getCode
Returns code at a given address.
https://api.scrollscan.com/api
?module=proxy
&action=eth_getCode
&address=0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x363d3d373d3d3d363d73c7d86908ccf644db7c69437d5852cedbc1ad3f695af43d82803e903d91602b57fd5bf3"
}
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.scrollscan.com/api
?module=proxy
&action=eth_getStorageAt
&address=0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x0000000000000000000000000000000000000000000000000000000000000001"
}
eth_gasPrice
Returns the current price per gas in wei.
https://api.scrollscan.com/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":73,
"result":"0x430e23400"
}
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
https://api.scrollscan.com/api
?module=proxy
&action=eth_estimateGas
&data=0xe21fd0e9
&to=0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df
&value=0xff22
&gasPrice=18148D00
&gas=38D7EA4C67FFF
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x6556"
}