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-optimistic.etherscan.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-optimistic.etherscan.io/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x165b3e8
&boolean=true
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"difficulty":"0x2",
"extraData":"0xd98301090a846765746889676f312e31352e3133856c696e757800000000000007b399aacd4240d1d663f7e9b49c917d720f4aeac8b33b9083ba24f3ce67803434fd72e220985a1636cf362f18e45546004f14c0b982449b16964b287add056800",
"gasLimit":"0xe4e1c0",
"gasUsed":"0x3610b5",
"hash":"0xf50dfe6724c513c5b4fce43503cd47467c53ca9cbfc66ea31099b610488eef88",
"logsBloom":"0x01200000000040001000008000000000000000000001000200040008000000000000000000000000100000500000400000000040002060000020000000240000000000000000000800000008020002200000000004000000000000000000000013000001001400440800000000000000010010220000040000800010800800000400000000000000000c0200000000000000100000a000000000004000000000020000000000000000000003002000020000000000000000000000004020000000000002200004010020000400000000000080000000820000080120000200000010000000010400000000060000090000800000008002000002002100010000",
"miner":"0x0000000000000000000000000000000000000000",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x0000000000000000",
"number":"0x165b3e8",
"parentHash":"0xe96942931b59165a3cde3edb163b5c9daafefabe2984849a0f09ae52192f3049",
"receiptsRoot":"0x0e82e104e2c18171c253113489360a53d3e95831aabb21eea0a99a59a0fb7a88",
"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size":"0x2d3",
"stateRoot":"0xccc54928919abf0a40e2af01d97b1754804c4333f88bf463bb37a00d94f466dd",
"timestamp":"0x6324a0e1",
"totalDifficulty":"0x2cb67d1",
"transactions":[
"0x275d98e2973a5c3b6c393dc5ec7c307b7b9b6fc076942b688d7d9580474121fe"
],
"transactionsRoot":"0x4e7a9e5b4ec43ee98a0183a2ebcff9136c39110c3803527b494c14d0d4edf2a7",
"uncles":[
]
}
}
eth_getUncleByBlockNumberAndIndex
Returns information about a uncle by block number.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_getUncleByBlockNumberAndIndex
&tag=0xC63276
&index=0x0
&apikey=YourApiKeyToken
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-optimistic.etherscan.io/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x165b3e8
&apikey=YourApiKeyToken
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x1"
}
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xff9516a7d1dfb0e5e62a12e3e9eecf060a1bce6f6aabc8cd712956afeca492d1
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0xba86e58f3cccb64ffe6d1d0f8b9e2c5a690df72ec05a0eb9d4078a74708c8f36",
"blockNumber":"0x165b4ef",
"from":"0xff5118537a07c5cf9668057ec55def75fcafda72",
"gas":"0x4c4b40",
"gasPrice":"0xf4240",
"hash":"0xff9516a7d1dfb0e5e62a12e3e9eecf060a1bce6f6aabc8cd712956afeca492d1",
"input":"0xb6b1b6c30000000000000000000000007161c3416e08abaa5cd38e68d9a28e43a694e037000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000438bb93e68b8b800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006324a19700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce":"0x2db9",
"to":"0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"transactionIndex":"0x0",
"value":"0x0",
"v":"0x38",
"r":"0x4588c3d7cf9c21756b9b47ea642bedda0fa606e43e745b83efd4cfde2442279",
"s":"0x546c5fd0fd0406bf133b6aad946bf45bfe39e81c139a41c7541d6291c19f062",
"queueOrigin":"sequencer",
"l1TxOrigin":null,
"l1BlockNumber":"0xed3b76",
"l1Timestamp":"0x6324a14e",
"index":"0x165b4ee",
"queueIndex":null,
"rawTransaction":"0xf9016b822db9830f4240834c4b409482ac2ce43e33683c58be4cdc40975e73aa50f45980b90104b6b1b6c30000000000000000000000007161c3416e08abaa5cd38e68d9a28e43a694e037000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000438bb93e68b8b800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006324a1970000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038a004588c3d7cf9c21756b9b47ea642bedda0fa606e43e745b83efd4cfde2442279a00546c5fd0fd0406bf133b6aad946bf45bfe39e81c139a41c7541d6291c19f062"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x165b3e8
&index=0x0
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0xf50dfe6724c513c5b4fce43503cd47467c53ca9cbfc66ea31099b610488eef88",
"blockNumber":"0x165b3e8",
"from":"0xeaa096218588303897afbc83679982347947f4d6",
"gas":"0x989680",
"gasPrice":"0xf4241",
"hash":"0x275d98e2973a5c3b6c393dc5ec7c307b7b9b6fc076942b688d7d9580474121fe",
"input":"0x",
"nonce":"0x10bf2",
"to":"0x0e5bdc3ee84dd02ab81512ade354915a25492fbf",
"transactionIndex":"0x0",
"value":"0x21956d44b3",
"v":"0x37",
"r":"0x4660f0a3c4c379bb446fb3f18cc3b6ed7fddebfdd7787af55ed6c18004ebc856",
"s":"0x4fb79796add79214591c8085dc8ed86d05ce5242953038eb5646b8c81f119e65",
"queueOrigin":"sequencer",
"l1TxOrigin":null,
"l1BlockNumber":"0xed3b6c",
"l1Timestamp":"0x6324a0e1",
"index":"0x165b3e7",
"queueIndex":null,
"rawTransaction":"0xf86b83010bf2830f424183989680940e5bdc3ee84dd02ab81512ade354915a25492fbf8521956d44b38037a04660f0a3c4c379bb446fb3f18cc3b6ed7fddebfdd7787af55ed6c18004ebc856a04fb79796add79214591c8085dc8ed86d05ce5242953038eb5646b8c81f119e65"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_getTransactionCount
&address=0xff5118537a07c5cf9668057ec55def75fcafda72
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x2dba"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Ethereum network.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831cfde080
&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-optimistic.etherscan.io/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0xa3c14f9dc2017661e39c3ecedec6ce21880e86f34657249126c4550d30815260
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"blockHash":"0x9fd883dd726bb338e87e895b315a41b7c49f95e4b32af4657ef2f5b9ba400db4",
"blockNumber":"0x165bdf0",
"contractAddress":null,
"cumulativeGasUsed":"0x254e8",
"from":"0xa04163e4033a941a3446c33e432a1da7ecc8898a",
"gasUsed":"0x254e8",
"l1Fee":"0xd7a51bfe9b40",
"l1FeeScalar":"1",
"l1GasPrice":"0x4c251d4e4",
"l1GasUsed":"0x2d50",
"logs":[
{
"address":"0x4f6dfdfd4d68f68b2692e79f9e94796fc8015770",
"topics":[
"0xf6a97944f31ea060dfde0566e4167c1a1082551e64b60ecb14d599a9d023d451",
"0x0000000000000000000000000000000000000000000000000000000000003bfc"
],
"data":"0x00000000000000000000000000000000000000000000000000000000065ce305000000000000000000000000a04163e4033a941a3446c33e432a1da7ecc8898a00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000756fdda3378d373db0e3b9ca1d556a000031d406000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000065a964000000000000000000000000000000000000000000000000000000000065ae46000000000000000000000000000000000000000000000000000000000065b1da500000000000000000000000000000000000000000000000000000000065bcec000000000000000000000000000000000000000000000000000000000065cdced00000000000000000000000000000000000000000000000000000000065ce30500000000000000000000000000000000000000000000000000000000065d049b00000000000000000000000000000000000000000000000000000000065d2b8000000000000000000000000000000000000000000000000000000000065d2cfd00000000000000000000000000000000000000000000000000000000065fc662000000000000000000000000000000000000000000000000000000000000000a0407060103050900080200000000000000000000000000000000000000000000",
"blockNumber":"0x165bdf0",
"transactionHash":"0xa3c14f9dc2017661e39c3ecedec6ce21880e86f34657249126c4550d30815260",
"transactionIndex":"0x0",
"blockHash":"0x9fd883dd726bb338e87e895b315a41b7c49f95e4b32af4657ef2f5b9ba400db4",
"logIndex":"0x0",
"removed":false
},
{
"address":"0x4f6dfdfd4d68f68b2692e79f9e94796fc8015770",
"topics":[
"0x0109fc6f55cf40689f02fbaad7af7fe7bbac8a3d2186600afc7d3e10cac60271",
"0x0000000000000000000000000000000000000000000000000000000000003bfc",
"0x0000000000000000000000000000000000000000000000000000000000000000"
],
"data":"0x000000000000000000000000000000000000000000000000000000006324a47c",
"blockNumber":"0x165bdf0",
"transactionHash":"0xa3c14f9dc2017661e39c3ecedec6ce21880e86f34657249126c4550d30815260",
"transactionIndex":"0x0",
"blockHash":"0x9fd883dd726bb338e87e895b315a41b7c49f95e4b32af4657ef2f5b9ba400db4",
"logIndex":"0x1",
"removed":false
},
{
"address":"0x4f6dfdfd4d68f68b2692e79f9e94796fc8015770",
"topics":[
"0x0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f",
"0x00000000000000000000000000000000000000000000000000000000065ce305",
"0x0000000000000000000000000000000000000000000000000000000000003bfc"
],
"data":"0x000000000000000000000000000000000000000000000000000000006324a47c",
"blockNumber":"0x165bdf0",
"transactionHash":"0xa3c14f9dc2017661e39c3ecedec6ce21880e86f34657249126c4550d30815260",
"transactionIndex":"0x0",
"blockHash":"0x9fd883dd726bb338e87e895b315a41b7c49f95e4b32af4657ef2f5b9ba400db4",
"logIndex":"0x2",
"removed":false
}
],
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000200000400000000000004000000000000000000000001002000000000000001000000000000000000000000000000020000000000000000000800000000000000000000008000000000000000020000000000000000000000000000000480000000000000000000000000000000001000000000000000000800000000000000000000000000000000000000000000000000040000000000000000004000000000000000000008000020000000001000000000000000000000000080000000000000000000000000000000",
"status":"0x1",
"to":"0x4f6dfdfd4d68f68b2692e79f9e94796fc8015770",
"transactionHash":"0xa3c14f9dc2017661e39c3ecedec6ce21880e86f34657249126c4550d30815260",
"transactionIndex":"0x0"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_call
&to=0x22d63a26c730d49e5eab461e4f5de1d8bdf89c92
&data=0x095ea7b3000000000000000000000000f181ed90d6cfac84b8073fdea6d34aa744b41810ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x"
}
eth_getCode
Returns code at a given address.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_getCode
&address=0x22d63a26c730d49e5eab461e4f5de1d8bdf89c92
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x608060405234801561001057600080fd5b50600436106100e65760003560e01c806306fdde03146100eb578063095ea7b31461016857806318160ddd146101a857806323b872dd146101c2578063313ce567146101f8578063395093511461021657806340c10f191461024257806342966c681461027057806370a082311461028d578063715018a6146102b357806379cc6790146102bb5780638119c065146102e75780638da5cb5b1461030b57806395d89b4114610313578063a457c2d71461031b578063a9059cbb14610347578063dd62ed3e14610373578063f2fde38b146103a1575b600080fd5b6100f36103c7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012d578181015183820152602001610115565b50505050905090810190601f16801561015a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101946004803603604081101561017e57600080fd5b506001600160a01b03813516906020013561045d565b604080519115158252519081900360200190f35b6101b061047a565b60408051918252519081900360200190f35b610194600480360360608110156101d857600080fd5b506001600160a01b03813581169160208101359091169060400135610480565b610200610507565b6040805160ff9092168252519081900360200190f35b6101946004803603604081101561022c57600080fd5b506001600160a01b038135169060200135610510565b61026e6004803603604081101561025857600080fd5b506001600160a01b03813516906020013561055e565b005b61026e6004803603602081101561028657600080fd5b503561060e565b6101b0600480360360208110156102a357600080fd5b50356001600160a01b0316610622565b61026e61063d565b61026e600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356106dd565b6102ef610737565b604080516001600160a01b039092168252519081900360200190f35b6102ef610746565b6100f361075a565b6101946004803603604081101561033157600080fd5b506001600160a01b0381351690602001356107bb565b6101946004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610823565b6101b06004803603604081101561038957600080fd5b506001600160a01b0381358116916020013516610837565b61026e600480360360208110156103b757600080fd5b50356001600160a01b0316610862565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104535780601f1061042857610100808354040283529160200191610453565b820191906000526020600020905b81548152906001019060200180831161043657829003601f168201915b5050505050905090565b600061047161046a61095e565b8484610962565b50600192915050565b60025490565b600061048d848484610a4e565b6104fd8461049961095e565b6104f885604051806060016040528060288152602001610fe3602891396001600160a01b038a166000908152600160205260408120906104d761095e565b6001600160a01b031681526020810191909152604001600020549190610b97565b610962565b5060019392505050565b60055460ff1690565b600061047161051d61095e565b846104f8856001600061052e61095e565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610c2e565b61056661095e565b6001600160a01b0316610577610746565b6001600160a01b0316146105c0576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b80610600576040805162461bcd60e51b815260206004820152600b60248201526a0616d6f756e74203d3d20360ac1b604482015290519081900360640190fd5b61060a8282610c8d565b5050565b61061f61061961095e565b82610d6b565b50565b6001600160a01b031660009081526020819052604090205490565b61064561095e565b6001600160a01b0316610656610746565b6001600160a01b03161461069f576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b03169060008051602061102b833981519152908390a360058054610100600160a81b0319169055565b60006107148260405180606001604052806024815260200161104b6024913961070d8661070861095e565b610837565b9190610b97565b90506107288361072261095e565b83610962565b6107328383610d6b565b505050565b6006546001600160a01b031681565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104535780601f1061042857610100808354040283529160200191610453565b60006104716107c861095e565b846104f8856040518060600160405280602581526020016110f960259139600160006107f261095e565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610b97565b600061047161083061095e565b8484610a4e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61086a61095e565b6001600160a01b031661087b610746565b6001600160a01b0316146108c4576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b6001600160a01b0381166109095760405162461bcd60e51b8152600401808060200182810382526026815260200180610f756026913960400191505060405180910390fd5b6005546040516001600160a01b03808416926101009004169060008051602061102b83398151915290600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b0383166109a75760405162461bcd60e51b81526004018080602001828103825260248152602001806110d56024913960400191505060405180910390fd5b6001600160a01b0382166109ec5760405162461bcd60e51b8152600401808060200182810382526022815260200180610f9b6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610a935760405162461bcd60e51b81526004018080602001828103825260258152602001806110b06025913960400191505060405180910390fd5b6001600160a01b038216610ad85760405162461bcd60e51b8152600401808060200182810382526023815260200180610f306023913960400191505060405180910390fd5b610ae3838383610e55565b610b2081604051806060016040528060268152602001610fbd602691396001600160a01b0386166000908152602081905260409020549190610b97565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610b4f9082610c2e565b6001600160a01b0380841660008181526020818152604091829020949094558051858152905191939287169260008051602061106f83398151915292918290030190a3505050565b60008184841115610c265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610beb578181015183820152602001610bd3565b50505050905090810190601f168015610c185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610c86576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610ce8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610cf460008383610e55565b600254610d019082610c2e565b6002556001600160a01b038216600090815260208190526040902054610d279082610c2e565b6001600160a01b03831660008181526020818152604080832094909455835185815293519293919260008051602061106f8339815191529281900390910190a35050565b6001600160a01b038216610db05760405162461bcd60e51b815260040180806020018281038252602181526020018061108f6021913960400191505060405180910390fd5b610dbc82600083610e55565b610df981604051806060016040528060228152602001610f53602291396001600160a01b0385166000908152602081905260409020549190610b97565b6001600160a01b038316600090815260208190526040902055600254610e1f9082610ed2565b6002556040805182815290516000916001600160a01b0385169160008051602061106f8339815191529181900360200190a35050565b610e60838383610732565b60065460408051633003049760e21b81526001600160a01b038581166004830152602482018590529151919092169163c00c125c91604480830192600092919082900301818387803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050505050565b600082821115610f29576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e045524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122046a51ada9d4318949b2e88589972156ea45333f763efabd75d2aa564cd38d5d764736f6c634300060c0033"
}
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-optimistic.etherscan.io/api
?module=proxy
&action=eth_getStorageAt
&address=0xee8804d8ad10b0c3ad1bd57ac3737242ad24bb95
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x0000000000000000000000001cb059b7e74fd21665968c908806143e744d5f30"
}
eth_gasPrice
Returns the current price per gas in wei.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":73,
"result":"0xf4240"
}
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
https://api-optimistic.etherscan.io/api
?module=proxy
&action=eth_estimateGas
&data=0xac9650d8000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000014489a153cc0000000000000000000000000c0858290b6b268a93fb557af06390a3460c5db6000000000000000000000000e51c4a096d583688baa500350b46fa498b4c3f92000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000001cdda4faccd000000000000000000000000000000000000000000000000000001cdda4faccd0000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000a4b1000000000000000000000000000000000000000000000000000355c11537122b00000000000000000000000000000000000000000000000000042a912f8d2dd800000000000000000000000000000000000000000000000000000000000153a200000000000000000000000000000000000000000000000000000000
&to=0x22d63a26c730d49e5eab461e4f5de1d8bdf89c92
&value=0x0
&gasPrice=0x51da038cc
&gas=0x5f5e0ff
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x6556"
}