Node API - Arbitrum
API AuthenticationClick to view API Authentication details
Authorization
request header or URL
property. Calls are made to one of the Arbitrum Node API endpoints found in your app's dashboard. For example:
https://arbitrum-mainnet-rpc-archive.datahub.figment.io
- Fetch with Header
- Fetch with Parameter
- CURL with Header
- CURL with Parameter
fetch("https://arbitrum-mainnet-rpc-archive.datahub.figment.io", {
method: 'POST', // can also be 'GET', 'PUT' or any appropriate method
headers: {
"Authorization" : "<api_key>",
"Content-Type": "application/json" // if method is 'POST'
},
body: JSON.stringify({
// JSON Payload
})
})
fetch("https://arbitrum-mainnet-rpc-archive.datahub.figment.io/apikey/{{apikey}}", {
method: 'POST', // can also be 'GET', 'PUT' or any appropriate method
headers: {
"Content-Type": "application/json" // if method is 'POST'
},
body: JSON.stringify({
// JSON Payload
})
})
curl -X POST 'https://arbitrum-mainnet-rpc-archive.datahub.figment.io' \
--header 'Content-Type: application/json' \
--header 'Authorization: <api_key>' \
--data '{
// JSON Payload
}'
curl -X POST 'https://arbitrum-mainnet-rpc-archive.datahub.figment.io/apikey/{{apikey}}' \
--header 'Content-Type: application/json' \
--data '{
// JSON Payload
}'
Available Methods
eth_getBlockByHash
Returns information about a block by hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x1073ce9",
"hash": "0xf8186fb52e3c6077c3e35032f1ef1903583a496161cf3e040dbcee70c758fdf2",
"parentHash": "0x0c27feed2c0461af798ca2816be622ccab5dfd6de486886a14f4d3b5fafabe09",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"logsBloom": "0x00000000000000000000000000004000000000000000000000000000220000100001000000000000040000000000000000004000000000000000000000200000000000010001000000000008400020010000000000000000000000000000000000000000020000000000300400000800000000400000000000000010000000000000010008001000000800000000000000000000002000002000000000000000021000000000000000000100000000000000000000000000000100000000004001000002000000000100000000801002002000000000200000000000001020000010000000000000020800000000000000000000010000800000000001000000",
"transactionsRoot": "0x7444c0cbc0831e2fa86c8f5bb7b56440d2e68d5c70624a96f890674bac3037e8",
"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x2f704a54bfd59230e0707539e8cd65dd6bbad49a2b3083b9baf48cbd85c8b790",
"miner": "0x0000000000000000000000000000000000000000",
"difficulty": "0x0",
"totalDifficulty": "0x0",
"extraData": "0x",
"size": "0x0",
"gasLimit": "0xbe30ba1",
"gasUsed": "0x8549",
"timestamp": "0x62c82480",
"transactions": [
{
"blockHash": "0xf8186fb52e3c6077c3e35032f1ef1903583a496161cf3e040dbcee70c758fdf2",
"blockNumber": "0x1073ce9",
"from": "0x3db7206daaecfce1f8178efaeefea5ac1311aa59",
"gas": "0x309ca1",
"gasPrice": "0x17397bcc",
"hash": "0xec9c6ac4d40981a8d618b0620d02d632d8b4cac9041983c2d7a0177a15c0dfea",
"input": "0x7c02520000000000000000000000000093131efee501d5721737c32576238f619548edda00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000093131efee501d5721737c32576238f619548edda0000000000000000000000003db7206daaecfce1f8178efaeefea5ac1311aa590000000000000000000000000000000000000000000000000000000001de4ac9000000000000000000000000000000000000000000000000005a60383877b3450000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005e000000000000000000000000000000000000000000000000000000000000008c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c80000000000000000000000000000000000000000000000000000000001de4ac900000000000000000000000000000000000000000000000000000000000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c452bbbe2900000000000000000000000000000000000000000000000000000000000000e000000000000000000000000093131efee501d5721737c32576238f619548edda000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093131efee501d5721737c32576238f619548edda000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000062c9762864541216bafffeec8ea535bb71fbc927831d05950001000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc800000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000001de4ac900000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014414284aab0000000000000000000000000000000000000000000000000000000000000080800000000000000000000000000000000000000000000000000000000000000400000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000a0000000000000000000000000000000a80000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000024432ce0a7c0000000000000000000000000000000000000000000000000000000000000080800000000000000000000000000000000000000000000000000000000000004400000000000000000000000093131efee501d5721737c32576238f619548edda00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a405971224000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000100000000000000000000000000000001000000000000000000000000000000000000000000000000001d2b79c962a4d600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004470bdb947000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000005b49eb3673bcd70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000018414284aab00000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e26b9977",
"nonce": "0x6",
"to": "0x1111111254fb6c44bac0bed2854e76f90643097d",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x14986",
"r": "0xa9617d401c2c817530687063ed6c478a969286b7c43dd556c5c578b26ae27b03",
"s": "0x7088d6f14d933e666d433148f727d2c1142807123d4c5d3400ab8b87b877aca7",
"l1SequenceNumber": "0x223ca6c",
"parentRequestId": "0x80b5c648274ba6842bbf92a69fe51740aee50451922d3d93c15ed3c53f68a952",
"indexInParent": "0x0",
"arbType": "0x3",
"arbSubType": "0x4",
"l1BlockNumber": "0xe67000"
}
],
"uncles": [],
"l1BlockNumber": "0xe67000"
}
}
SpecificationView Specification
Parameters
DATA
— 32 Bytes, Hash of a block.Boolean
— Iftrue
it returns the full transaction objects, iffalse
only the hashes of the transactions.
Response
Object
— A block object, or null
when no block was found:
number
—QUANTITY
The block number,null
when it's pending block.hash
—DATA
32 Bytes, Hash of the block.null
when its pending block.parentHash
—DATA
32 Bytes, Hash of the parent block.nonce
—DATA
8 Bytes, Hash of the generated proof-of-work.null
when its pending block.sha3Uncles
—DATA
32 Bytes, SHA3 of the uncles data in the block.logsBloom
—DATA
256 Bytes, The bloom filter for the logs of the block.null
when it's pending block.transactionsRoot
—DATA
32 Bytes, The root of the transaction trie of the block.stateRoot
—DATA
32 Bytes, The root of the final state trie of the block.receiptsRoot
—DATA
32 Bytes, The root of the receipts trie of the block.miner
—DATA
20 Bytes, The address of the beneficiary to whom the mining rewards were given.difficulty
—QUANTITY
Integer of the difficulty for this block.totalDifficulty
—QUANTITY
Integer of the total difficulty of the chain until this block.extraData
—DATA
The "extra data" field of this block.size
—QUANTITY
Integer the size of this block in bytes.gasLimit
—QUANTITY
The maximum gas allowed in this block.gasUsed
—QUANTITY
The total used gas by all transactions in this block.timestamp
—QUANTITY
The UNIX timestamp for when the block was collated.transactions
—Array
Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
—Array
Array of uncle hashes.
eth_getBlockByNumber
Returns information about a block by block number.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x1073ce9",
"hash": "0xf8186fb52e3c6077c3e35032f1ef1903583a496161cf3e040dbcee70c758fdf2",
"parentHash": "0x0c27feed2c0461af798ca2816be622ccab5dfd6de486886a14f4d3b5fafabe09",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"logsBloom": "0x00000000000000000000000000004000000000000000000000000000220000100001000000000000040000000000000000004000000000000000000000200000000000010001000000000008400020010000000000000000000000000000000000000000020000000000300400000800000000400000000000000010000000000000010008001000000800000000000000000000002000002000000000000000021000000000000000000100000000000000000000000000000100000000004001000002000000000100000000801002002000000000200000000000001020000010000000000000020800000000000000000000010000800000000001000000",
"transactionsRoot": "0x7444c0cbc0831e2fa86c8f5bb7b56440d2e68d5c70624a96f890674bac3037e8",
"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptsRoot": "0x2f704a54bfd59230e0707539e8cd65dd6bbad49a2b3083b9baf48cbd85c8b790",
"miner": "0x0000000000000000000000000000000000000000",
"difficulty": "0x0",
"totalDifficulty": "0x0",
"extraData": "0x",
"size": "0x0",
"gasLimit": "0xbe30ba1",
"gasUsed": "0x8549",
"timestamp": "0x62c82480",
"transactions": [
{
"blockHash": "0xf8186fb52e3c6077c3e35032f1ef1903583a496161cf3e040dbcee70c758fdf2",
"blockNumber": "0x1073ce9",
"from": "0x3db7206daaecfce1f8178efaeefea5ac1311aa59",
"gas": "0x309ca1",
"gasPrice": "0x17397bcc",
"hash": "0xec9c6ac4d40981a8d618b0620d02d632d8b4cac9041983c2d7a0177a15c0dfea",
"input": "0x7c02520000000000000000000000000093131efee501d5721737c32576238f619548edda00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000093131efee501d5721737c32576238f619548edda0000000000000000000000003db7206daaecfce1f8178efaeefea5ac1311aa590000000000000000000000000000000000000000000000000000000001de4ac9000000000000000000000000000000000000000000000000005a60383877b3450000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005e000000000000000000000000000000000000000000000000000000000000008c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c80000000000000000000000000000000000000000000000000000000001de4ac900000000000000000000000000000000000000000000000000000000000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c452bbbe2900000000000000000000000000000000000000000000000000000000000000e000000000000000000000000093131efee501d5721737c32576238f619548edda000000000000000000000000000000000000000000000000000000000000000000000000000000000000000093131efee501d5721737c32576238f619548edda000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000062c9762864541216bafffeec8ea535bb71fbc927831d05950001000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc800000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000001de4ac900000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000014414284aab0000000000000000000000000000000000000000000000000000000000000080800000000000000000000000000000000000000000000000000000000000000400000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000a0000000000000000000000000000000a80000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000024432ce0a7c0000000000000000000000000000000000000000000000000000000000000080800000000000000000000000000000000000000000000000000000000000004400000000000000000000000093131efee501d5721737c32576238f619548edda00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a405971224000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000100000000000000000000000000000001000000000000000000000000000000000000000000000000001d2b79c962a4d600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004470bdb947000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000005b49eb3673bcd70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000018414284aab00000000000000000000000000000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000044000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e26b9977",
"nonce": "0x6",
"to": "0x1111111254fb6c44bac0bed2854e76f90643097d",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x14986",
"r": "0xa9617d401c2c817530687063ed6c478a969286b7c43dd556c5c578b26ae27b03",
"s": "0x7088d6f14d933e666d433148f727d2c1142807123d4c5d3400ab8b87b877aca7",
"l1SequenceNumber": "0x223ca6c",
"parentRequestId": "0x80b5c648274ba6842bbf92a69fe51740aee50451922d3d93c15ed3c53f68a952",
"indexInParent": "0x0",
"arbType": "0x3",
"arbSubType": "0x4",
"l1BlockNumber": "0xe67000"
}
],
"uncles": [],
"l1BlockNumber": "0xe67000"
}
}
SpecificationView Specification
Parameters
QUANTITY|TAG
— Integer of a block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameterBoolean
— Iftrue
it returns the full transaction objects, iffalse
only the hashes of the transactions.
Response
Object
— A block object, or null
when no block was found:
number
—QUANTITY
The block number,null
when its pending block.hash
—DATA
32 Bytes, Hash of the block.null
when its pending block.parentHash
—DATA
32 Bytes, Hash of the parent block.nonce
—DATA
8 Bytes, Hash of the generated proof-of-work.null
when its pending block.sha3Uncles
—DATA
32 Bytes, SHA3 of the uncles data in the block.logsBloom
—DATA
256 Bytes, The bloom filter for the logs of the block.null
when it's pending block.transactionsRoot
—DATA
32 Bytes, The root of the transaction trie of the block.stateRoot
—DATA
32 Bytes, The root of the final state trie of the block.receiptsRoot
—DATA
32 Bytes, The root of the receipts trie of the block.miner
—DATA
20 Bytes, The address of the beneficiary to whom the mining rewards were given.difficulty
—QUANTITY
Integer of the difficulty for this block.totalDifficulty
—QUANTITY
Integer of the total difficulty of the chain until this block.extraData
—DATA
The "extra data" field of this block.size
—QUANTITY
Integer the size of this block in bytes.gasLimit
—QUANTITY
The maximum gas allowed in this block.gasUsed
—QUANTITY
The total used gas by all transactions in this block.timestamp
—QUANTITY
The UNIX timestamp for when the block was collated.transactions
: —Array
Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
—Array
Array of uncle hashes.
eth_getBlockTransactionCountByHash
Returns the number of transactions in a block from a block matching the given block hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
SpecificationView Specification
Parameters
DATA
— 32 Bytes, Hash of a block
Response
QUANTITY
— Integer of the number of transactions in this block.
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block matching the given block number.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
SpecificationView Specification
Parameters
QUANTITY|TAG
— Integer of a block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameter.
Response
QUANTITY
— Integer of the number of transactions in this block.
eth_chainId
Returns the chain ID of the current network.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xa4b1"
}
SpecificationView Specification
Parameters
None
Response
QUANTITY
— EIP155 Chain ID.
eth_blockNumber
Returns the number of the most recent block.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x10ce3eb"
}
SpecificationView Specification
Parameters
None
Response
QUANTITY
— Integer of the current block number the client is on.
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x"
}
SpecificationView Specification
Parameters
Object
— The transaction call objectfrom
—DATA
20 Bytes, The address the transaction is sent from (optional).to
—DATA
20 Bytes, The address the transaction is directed to.gas
—QUANTITY
Integer of the gas provided for the transaction execution (optional). eth_call consumes zero gas, but this parameter may be needed by some executions.gasPrice
—QUANTITY
Integer of the gasPrice used for each paid gas (optional).value
—QUANTITY
Integer of the value sent with this transaction (optional).data
—DATA
Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI in the Solidity documentationQUANTITY|TAG
— Integer block number, or the string"latest"
,"earliest"
or"pending"
, see the default block parameter
Response
DATA
— The return value of the executed contract.
eth_estimateGas
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x7425c"
}
SpecificationView Specification
Parameters
See eth_call parameters, expect that all properties are optional. If no gas limit is specified geth uses the block gas limit from the pending block as an upper bound. As a result the returned estimate might not be enough to executed the call/transaction when the amount of gas is higher than the pending block gas limit.
Response
QUANTITY
— The amount of gas used.
eth_gasPrice
Returns the current price per gas in wei.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1004865b"
}
SpecificationView Specification
Parameters
None
Response
QUANTITY
— Integer of the current gas price in wei.
eth_newFilter
Creates a filter object, based on filter options, to notify when the state changes (logs).
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2a89e178d7ffe481777d5aaa15aa6c86"
}
SpecificationView Specification
To check if the state has changed, call eth_getFilterChanges. A note on specifying topic filters: Topics are order-dependent. A transaction with a log with topics [A, B] will be matched by the following topic filters:
[]
"anything"[A]
"A in first position (and anything after)"[null, B]
"anything in first position AND B in second position (and anything after)"[A, B]
"A in first position AND B in second position (and anything after)"[[A, B], [A, B]]
"(A OR B) in first position AND (A OR B) in second position (and anything after)"
Parameters
Object
— The filter options:fromBlock
—QUANTITY|TAG
(default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions (optional).toBlock
—QUANTITY|TAG
(default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions (optional).address
—DATA|Array
20 Bytes, Contract address or a list of addresses from which logs should originate (optional).topics
:Array of DATA
Array of 32 BytesDATA
topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options (optional).
Response
QUANTITY
— A filter id.
eth_newBlockFilter
Creates a filter in the node, to notify when a new block arrives.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf3728e9dea2781195a85646660a3ebc6"
}
SpecificationView Specification
To check if the state has changed, call eth_getFilterChanges.
Parameters
None
Response
QUANTITY
— A filter id.
eth_newPendingTransactionFilter
Creates a filter in the node, to notify when new pending transactions arrive.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xd7834eb12b00a65d9263b308c3f36111"
}
SpecificationView Specification
To check if the state has changed, call eth_getFilterChanges.
Parameters
None
Response
QUANTITY
— A filter id.
eth_uninstallFilter
Uninstalls a filter with given id. Should always be called when watch is no longer needed. Additionally Filters timeout when they aren't requested with eth_getFilterChanges for a period of time.
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
SpecificationView Specification
Parameters
QUANTITY
— The filter id.
Response
Boolean
—true
If the filter was successfully uninstalled, otherwisefalse
.
eth_getFilterChanges
Polling method for a filter, which returns an array of logs that occurred since the last poll.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0xc63459c49f4d0e7c88ed9f10f0b1a449ea0858adae4caab5d778103f7ac6b2f8",
"0xa5c0336235639afa307a7fe01130464489f776e532669c7a1bbd6353d85fdd96",
"0x386bfb33ff4fdcac2ce79db571f9198d3b7bfe2d50ca970c4efcc6c2d1e019cb",
"0x3f151c27e24539c1fa839e4a1c0e919d1cfbbd2b9097c9a7c27df73e535fc5a2"
]
}
SpecificationView Specification
Parameters
QUANTITY
— The filter id.
Response
Array
— Array of log objects, or an empty array if nothing has changed since the last poll.
- For filters created with
eth_newBlockFilter
the return are block hashes (DATA
, 32 Bytes), e.g.["0x3454645634534..."]
. - For filters created with
eth_newPendingTransactionFilter
the return are transaction hashes (DATA
, 32 Bytes), e.g.["0x6345343454645..."]
. - For filters created with
eth_newFilter
logs are objects with following params:removed
—TAG
true
When the log was removed, due to a chain reorganization.false
if its a valid log.logIndex
—QUANTITY
Integer of the log index position in the block.null
when its pending log.transactionIndex
—QUANTITY
Integer of the transactions index position log was created from.null
when its pending log.transactionHash
—DATA
32 Bytes, Hash of the transactions this log was created from.null
when its pending log.blockHash
—DATA
32 Bytes, Hash of the block where this log was in.null
when its pending.null
when its pending log.blockNumber
—QUANTITY
The block number where this log was in.null
when its pending.null
when its pending log.address
—DATA
20 Bytes, Address from which this log originated.data
—DATA
Contains one or more 32 Bytes non-indexed arguments of the log.topics
—Array of DATA
Array of 0 to 4 32 BytesDATA
of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g.Deposit(address,bytes32,uint256)
), except you declared the event with theanonymous
specifier.)
eth_getFilterLogs
Returns an array of all logs matching filter with given id.
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"logIndex": "0x1",
"blockNumber": "0x1b4",
"blockHash": "0x8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcfdf829c5a142f1fccd7d",
"transactionHash": "0xdf829c5a142f1fccd7d8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcf",
"transactionIndex": "0x0",
"address": "0x16c5785ac562ff41e2dcfdf829c5a142f1fccd7d",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"topics": [
"0x59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a5"
]
}
]
}
SpecificationView Specification
Parameters
QUANTITY
— The filterid
.
Response
Array
— Array of log objects, or an empty array if nothing has changed since last poll.
- For filters created with
eth_newBlockFilter
the return are block hashes (DATA
, 32 Bytes), e.g.["0x3454645634534..."]
. - For filters created with
eth_newPendingTransactionFilter
the return are transaction hashes (DATA
, 32 Bytes), e.g.["0x6345343454645..."]
. - For filters created with
eth_newFilter
logs are objects with the following params:removed
—TAG
true
When the log was removed, due to a chain reorganization.false
if its a valid log.logIndex
—QUANTITY
Integer of the log index position in the block.null
when its pending log.transactionIndex
—QUANTITY
Integer of the transactions index position log was created from.null
when its pending log.transactionHash
—DATA
32 Bytes, Hash of the transactions this log was created from.null
when its pending log.blockHash
—DATA
32 Bytes, Hash of the block where this log was in.null
when its pending.null
when its pending log.blockNumber
—QUANTITY
The block number where this log was in.null
when its pending.null
when its pending log.address
—DATA
20 Bytes, Address from which this log originated.data
—DATA
Contains one or more 32 Bytes non-indexed arguments of the log.topics
—Array of DATA
Array of 0 to 4 32 BytesDATA
of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g.Deposit(address,bytes32,uint256)
), except you declared the event with theanonymous
specifier.)
eth_getLogs
Returns an array of all logs matching a given filter object.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0xcf4d2994088a8cde52fb584fe29608b63ec063b2",
"topics": [
"0x88fbf1dbc326c404155bad4643bd0ddadd23f0636929c66442f0433208b2c905",
"0x000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a",
"0x0000000000000000000000007e76de758cd414096a4882ed2824bc513d7ed7c9",
"0xf30619a84b9e614a137b2ad0d4a13a3184b1df4eb5c982cd7dde09ef220ba9b6"
],
"data": "0x000000000000000000000000cf4d2994088a8cde52fb584fe29608b63ec063b2000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a0000000000000000000000007e76de758cd414096a4882ed2824bc513d7ed7c9000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a0000000000000000000000005fe2b58c013d7601147dcdd68c143a77499f553100000000000000000000000023a941036ae778ac51ab04cea08ed6e2fe103614000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a0000000000000000000000000000000000000000000000000000000000000000c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470f30619a84b9e614a137b2ad0d4a13a3184b1df4eb5c982cd7dde09ef220ba9b60000000000000000000000000000000000000000000000000000000000000089000000000000000000000000000000000000000000000000000000000000a4b100000000000000000000000000000000000000000000002be0f252c070b9af600000000000000000000000000000000000000000000000000000000062d1502e0000000000000000000000000000000000000000000000000000000000e6ed690000000000000000000000007e76de758cd414096a4882ed2824bc513d7ed7c90000000000000000000000000000000000000000000000000000000000000240000000000000000000000000cf4d2994088a8cde52fb584fe29608b63ec063b2000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a0000000000000000000000007e76de758cd414096a4882ed2824bc513d7ed7c9000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a0000000000000000000000005fe2b58c013d7601147dcdd68c143a77499f553100000000000000000000000023a941036ae778ac51ab04cea08ed6e2fe103614000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000089000000000000000000000000000000000000000000000000000000000000a4b1c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470f30619a84b9e614a137b2ad0d4a13a3184b1df4eb5c982cd7dde09ef220ba9b600000000000000000000000000000000000000000000002be0f252c070b9af600000000000000000000000000000000000000000000000000000000062d1502e00000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a0000000000000000000000007e76de758cd414096a4882ed2824bc513d7ed7c9000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68a00000000000000000000000000000000000000000000000000000000000000890000000000000000000000005fe2b58c013d7601147dcdd68c143a77499f553100000000000000000000000000000000000000000000002be902146fa2680000000000000000000000000000000000000000000000000000000000000000a4b100000000000000000000000023a941036ae778ac51ab04cea08ed6e2fe10361400000000000000000000000000000000000000000000002be0f47425a393defb000000000000000000000000b2709ac558e73bc43b55d2d35fd7b80f5073c68af30619a84b9e614a137b2ad0d4a13a3184b1df4eb5c982cd7dde09ef220ba9b60000000000000000000000000000000000000000000000000000000062d2a1aec5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000006090de2ec76eb1dc3b5d632734415c93c44fd113000000000000000000000000cf4d2994088a8cde52fb584fe29608b63ec063b20000000000000000000000000000000000000000000000000000000062ceae8400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041334de0556888acfbbd8a2bcf317bb49aa806a90d3123e5f73e03960a8265dd8b60bacca3c6f6552d18c9a8d51d06f94904dc0b5cf5a14cbf09f0c755fb9028ce1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x10bbfcc",
"transactionHash": "0xa4de8317d5008581d1066e50ab3a2734a424e8c437a10815cd4cc15ee641b027",
"transactionIndex": "0x0",
"blockHash": "0xef39b14756c8b72d99b3424f5de0eb2ae5ccc7ef1c27aec8a12b11ab4827b583",
"logIndex": "0x0",
"removed": false
}
]
}
SpecificationView Specification
Parameters
Object
— The filter options:fromBlock
—QUANTITY|TAG
(optional, default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions.toBlock
—QUANTITY|TAG
(optional, default:"latest"
) Integer block number, or"latest"
for the last mined block or"pending"
,"earliest"
for not yet mined transactions.address
—DATA|Array
20 Bytes (optional) Contract address or a list of addresses from which logs should originate.topics
—Array of DATA
(optional) Array of 32 BytesDATA
topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options.blockhash
—DATA
32 Bytes (optional, future) With the addition of EIP-234,blockHash
will be a new filter option which restricts the logs returned to the single block with the 32-byte hashblockHash
. UsingblockHash
is equivalent tofromBlock
=toBlock
= the block number with hashblockHash
. IfblockHash
is present in in the filter criteria, then neitherfromBlock
nortoBlock
are allowed.
Response
Array
— Array of log objects, or an empty array if nothing has changed since last poll.
- For filters created with
eth_newBlockFilter
the return are block hashes (DATA
, 32 Bytes), e.g.["0x3454645634534..."]
. - For filters created with
eth_newPendingTransactionFilter
the return are transaction hashes (DATA
, 32 Bytes), e.g.["0x6345343454645..."]
. - For filters created with
eth_newFilter
logs are objects with following params:removed
—TAG
true
When the log was removed, due to a chain reorganization.false
if its a valid log.logIndex
—QUANTITY
Integer of the log index position in the block.null
when its pending log.transactionIndex
—QUANTITY
Integer of the transactions index position log was created from.null
when its pending log.transactionHash
—DATA
32 Bytes, Hash of the transactions this log was created from.null
when its pending log.blockHash
—DATA
32 Bytes, Hash of the block where this log was in.null
when its pending.null
when its pending log.blockNumber
—QUANTITY
The block number where this log was in.null
when its pending.null
when its pending log.address
—DATA
20 Bytes, Address from which this log originated.data
—DATA
Contains one or more 32 Bytes non-indexed arguments of the log.topics
—Array of DATA
Array of 0 to 4 32 BytesDATA
of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g.Deposit(address,bytes32,uint256)
), except you declared the event with theanonymous
specifier.)
eth_getBalance
Returns the balance of the account of given address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x38f9a823e4bfaf"
}
SpecificationView Specification
Parameters
DATA
— 20 Bytes, Address to check for balance.QUANTITY|TAG
— Integer block number, or the string"latest"
,"earliest"
or"pending"
, see the default block parameter
Response
QUANTITY
— Integer of the current balance in wei.
eth_getStorageAt
Returns the value from a storage position at a given address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
SpecificationView Specification
Parameters
DATA
— 20 Bytes, Address of the storage.QUANTITY
— Integer of the position in the storage.QUANTITY|TAG
— Integer block number, or the string"latest"
,"earliest"
or"pending"
Response
DATA
— The value at this storage position.
eth_getTransactionCount
Returns the number of transactions sent from an address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4f3"
}
SpecificationView Specification
Parameters
DATA
— 20 Bytes, Address.QUANTITY|TAG
— Integer block number, or the string"latest"
,"earliest"
or"pending"
Response
QUANTITY
— Integer of the number of transactions send from this address.
eth_getCode
Returns code at a given address.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x"
}
SpecificationView Specification
Parameters
DATA
— 20 Bytes, AddressQUANTITY|TAG
— Integer block number, or the string"latest"
,"earliest"
or"pending"
, see the default block parameter
Response
DATA
— The code from the given address.
eth_sendRawTransaction
Creates new message call transactions or a contract creation for signed transactions.
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
SpecificationView Specification
Parameters
DATA
— The signed transaction data.
Response
DATA
— 32 Bytes, The transaction hash, or the zero hash if the transaction is not yet available. Use eth_getTransactionReceipt to get the contract address, after the transaction was mined, when you created a contract.
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xde18389e4f3055c7147e022dfae0923f3b7f3234e71f57b3aab26e6f953cdd00",
"blockNumber": "0x1075346",
"from": "0x1ea2a806f60d3abd361b2e9ec992ba7b85258343",
"gas": "0x183dee",
"gasPrice": "0x1757fdf7",
"hash": "0x497086a74d264ea1f5c2ae8ae961da6c0ff19f5647b17e95d5db3843e2bf97f8",
"input": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c83d01000000000000000000000000000000000000000000000038ddedd45d8472b2a5000000000000000000000000000000000000000000000000ffbb2da888abd6a90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c83d01000000000000000000000000000000000000000000000012f4a49c1f2c263b8c0000000000000000000000000000000000000000000000005488f5621a5260d9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000015444230aa2fe37820000000000000000000000001ea2a806f60d3abd361b2e9ec992ba7b8525834300000000000000000000000000000000000000000000000000000000",
"nonce": "0x4d7",
"to": "0xe592427a0aece92de3edee1f18e0157c05861564",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x14986",
"r": "0x1ef369ef44d687c8f508bbb58e3ce6e4769f0ba043fd3748a808ca64d6bf4a1b",
"s": "0x43e21a6d77699f73e9e0298ea73b4585521f3d0e6a37c5231905375c70d9ec1e",
"l1SequenceNumber": "0x223f9fc",
"parentRequestId": "0xe15f199ec1bb6eadda756ad1df11e56ecf9154e8ba199a4f921a831ca886cb6b",
"indexInParent": "0x0",
"arbType": "0x3",
"arbSubType": "0x4",
"l1BlockNumber": "0xe671a5"
}
}
SpecificationView Specification
Parameters
DATA
— 32 Bytes, Hash of a transaction
Response
Object
- A transaction object, or null
when no transaction was found:
blockHash
—DATA
32 Bytes, Hash of the block where this transaction was in.null
when its pending.blockNumber
—QUANTITY
, Block number where this transaction was in.null
when its pending.from
—DATA
20 Bytes, Address of the sender.gas
—QUANTITY
Gas provided by the sender.gasPrice
—QUANTITY
Gas price provided by the sender in Wei.hash
—DATA
32 Bytes, Hash of the transaction.input
—DATA
The data send along with the transaction.nonce
—QUANTITY
The number of transactions made by the sender prior to this one.to
—DATA
20 Bytes, Address of the receiver.null
when its a contract creation transaction.transactionIndex
—QUANTITY
Integer of the transactions index position in the block.null
when its pending.value
—QUANTITY
Value transferred in Wei.v
—QUANTITY
ECDSA recovery idr
—QUANTITY
ECDSA signature rs
—QUANTITY
ECDSA signature s
eth_getTransactionByBlockHashAndIndex
Returns information about a transaction by block hash and transaction index position.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xde18389e4f3055c7147e022dfae0923f3b7f3234e71f57b3aab26e6f953cdd00",
"blockNumber": "0x1075346",
"from": "0x1ea2a806f60d3abd361b2e9ec992ba7b85258343",
"gas": "0x183dee",
"gasPrice": "0x1757fdf7",
"hash": "0x497086a74d264ea1f5c2ae8ae961da6c0ff19f5647b17e95d5db3843e2bf97f8",
"input": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c83d01000000000000000000000000000000000000000000000038ddedd45d8472b2a5000000000000000000000000000000000000000000000000ffbb2da888abd6a90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c83d01000000000000000000000000000000000000000000000012f4a49c1f2c263b8c0000000000000000000000000000000000000000000000005488f5621a5260d9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000015444230aa2fe37820000000000000000000000001ea2a806f60d3abd361b2e9ec992ba7b8525834300000000000000000000000000000000000000000000000000000000",
"nonce": "0x4d7",
"to": "0xe592427a0aece92de3edee1f18e0157c05861564",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x14986",
"r": "0x1ef369ef44d687c8f508bbb58e3ce6e4769f0ba043fd3748a808ca64d6bf4a1b",
"s": "0x43e21a6d77699f73e9e0298ea73b4585521f3d0e6a37c5231905375c70d9ec1e",
"l1SequenceNumber": "0x223f9fc",
"parentRequestId": "0xe15f199ec1bb6eadda756ad1df11e56ecf9154e8ba199a4f921a831ca886cb6b",
"indexInParent": "0x0",
"arbType": "0x3",
"arbSubType": "0x4",
"l1BlockNumber": "0xe671a5"
}
}
SpecificationView Specification
Parameters
DATA
— 32 Bytes, Hash of a block.QUANTITY
— Integer of the transaction index position.
Response
Object
- A transaction object, or null
when no transaction was found:
blockHash
—DATA
32 Bytes, Hash of the block where this transaction was in.null
when its pending.blockNumber
—QUANTITY
Block number where this transaction was in.null
when its pending.from
—DATA
20 Bytes, Address of the sender.gas
—QUANTITY
Gas provided by the sender.gasPrice
—QUANTITY
Gas price provided by the sender in Wei.hash
—DATA
32 Bytes, Hash of the transaction.input
—DATA
The data send along with the transaction.nonce
—QUANTITY
The number of transactions made by the sender prior to this one.to
—DATA
20 Bytes, Address of the receiver.null
when its a contract creation transaction.transactionIndex
—QUANTITY
Integer of the transactions index position in the block.null
when its pending.value
—QUANTITY
Value transferred in Wei.v
—QUANTITY
ECDSA recovery idr
—QUANTITY
ECDSA signature rs
—QUANTITY
ECDSA signature s
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xde18389e4f3055c7147e022dfae0923f3b7f3234e71f57b3aab26e6f953cdd00",
"blockNumber": "0x1075346",
"from": "0x1ea2a806f60d3abd361b2e9ec992ba7b85258343",
"gas": "0x183dee",
"gasPrice": "0x1757fdf7",
"hash": "0x497086a74d264ea1f5c2ae8ae961da6c0ff19f5647b17e95d5db3843e2bf97f8",
"input": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c83d01000000000000000000000000000000000000000000000038ddedd45d8472b2a5000000000000000000000000000000000000000000000000ffbb2da888abd6a90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c83d01000000000000000000000000000000000000000000000012f4a49c1f2c263b8c0000000000000000000000000000000000000000000000005488f5621a5260d9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000015444230aa2fe37820000000000000000000000001ea2a806f60d3abd361b2e9ec992ba7b8525834300000000000000000000000000000000000000000000000000000000",
"nonce": "0x4d7",
"to": "0xe592427a0aece92de3edee1f18e0157c05861564",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x14986",
"r": "0x1ef369ef44d687c8f508bbb58e3ce6e4769f0ba043fd3748a808ca64d6bf4a1b",
"s": "0x43e21a6d77699f73e9e0298ea73b4585521f3d0e6a37c5231905375c70d9ec1e",
"l1SequenceNumber": "0x223f9fc",
"parentRequestId": "0xe15f199ec1bb6eadda756ad1df11e56ecf9154e8ba199a4f921a831ca886cb6b",
"indexInParent": "0x0",
"arbType": "0x3",
"arbSubType": "0x4",
"l1BlockNumber": "0xe671a5"
}
}
SpecificationView Specification
Parameters
QUANTITY|TAG
— A block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameterQUANTITY
— The transaction index position.
Response
Object
— A transaction object, or null
when no transaction was found:
blockHash
—DATA
32 Bytes, Hash of the block where this transaction was in.null
when its pending.blockNumber
—QUANTITY
Block number where this transaction was in.null
when its pending.from
—DATA
20 Bytes, Address of the sender.gas
—QUANTITY
Gas provided by the sender.gasPrice
—QUANTITY
Gas price provided by the sender in Wei.hash
—DATA
32 Bytes, Hash of the transaction.input
—DATA
The data send along with the transaction.nonce
—QUANTITY
The number of transactions made by the sender prior to this one.to
—DATA
20 Bytes, Address of the receiver.null
when its a contract creation transaction.transactionIndex
—QUANTITY
Integer of the transactions index position in the block.null
when its pending.value
—QUANTITY
Value transferred in Wei.v
—QUANTITY
ECDSA recovery idr
—QUANTITY
ECDSA signature rs
—QUANTITY
ECDSA signature s
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"transactionHash": "0x497086a74d264ea1f5c2ae8ae961da6c0ff19f5647b17e95d5db3843e2bf97f8",
"transactionIndex": "0x0",
"blockHash": "0xde18389e4f3055c7147e022dfae0923f3b7f3234e71f57b3aab26e6f953cdd00",
"blockNumber": "0x1075346",
"from": "0x1ea2a806f60d3abd361b2e9ec992ba7b85258343",
"to": "0xe592427a0aece92de3edee1f18e0157c05861564",
"cumulativeGasUsed": "0x9482",
"gasUsed": "0x114caa",
"effectiveGasPrice": "0x12accb2c",
"contractAddress": null,
"logs": [
{
"address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000001aeedd3727a6431b8f070c0afaa81cc74f273882",
"0x000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564"
],
"data": "0x000000000000000000000000000000000000000000000000fffca54188ced38c",
"blockNumber": "0x1075346",
"transactionHash": "0x497086a74d264ea1f5c2ae8ae961da6c0ff19f5647b17e95d5db3843e2bf97f8",
"transactionIndex": "0x0",
"blockHash": "0xde18389e4f3055c7147e022dfae0923f3b7f3234e71f57b3aab26e6f953cdd00",
"logIndex": "0x0",
"removed": false
}
],
"logsBloom": "0x02000002001000000001000000000000000000000000000000004200000000000000000000000000000000000000000000004000000020000000000000200400010000010000000800000008000020000000000000400000000000400000000000000000020000000000100400000800000080000000000000000010000800000000000000000000000000000000000000000800000000000000000000000000020000000000000000000080900000000000000000000000000000000000000000000002000000000000000000000000000000000000000010000000000020000010000000000000000000000000000800000000020000000000000000010000",
"status": "0x1",
"returnCode": "0x0",
"returnData": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000fffca54188ced38c0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000549e9977f5ff01340000000000000000000000000000000000000000000000000000000000000000",
"feeStats": {
"prices": {
"l1Transaction": "0x418a4c495f30",
"l1Calldata": "0x8639f44c8",
"l2Storage": "0xe3f74c20990",
"l2Computation": "0x12accb2c"
},
"unitsUsed": {
"l1Transaction": "0x1",
"l1Calldata": "0x1d68",
"l2Storage": "0x0",
"l2Computation": "0x9482"
},
"paid": {
"l1Transaction": "0x418a4c495f30",
"l1Calldata": "0xf6b1837e9940",
"l2Storage": "0x0",
"l2Computation": "0xad561349c58"
}
},
"l1BlockNumber": "0xe671a5",
"l1InboxBatchInfo": null
}
}
SpecificationView Specification
Note That the receipt is not available for pending transactions.
Parameters
DATA
— 32 Bytes, Hash of a transaction
Response
Object
- A transaction receipt object, or null
when no receipt was found:
transactionHash
—DATA
32 Bytes, Hash of the transaction.transactionIndex
—QUANTITY
Integer of the transactions index position in the block.blockHash
—DATA
32 Bytes, Hash of the block where this transaction was in.blockNumber
—QUANTITY
Block number where this transaction was in.from
—DATA
20 Bytes, Address of the sender.to
—DATA
20 Bytes, Address of the receiver. null when its a contract creation transaction.cumulativeGasUsed
—QUANTITY
The total amount of gas used when this transaction was executed in the block.gasUsed
—QUANTITY
The amount of gas used by this specific transaction alone.contractAddress
—DATA
20 Bytes, The contract address created, if the transaction was a contract creation, otherwisenull
.logs
—Array
Array of log objects, which this transaction generated.logsBloom
—DATA
256 Bytes, Bloom filter for light clients to quickly retrieve related logs. It also returns either —root
—DATA
32 bytes of post-transaction stateroot (pre Byzantium)status
—QUANTITY
either1
(success) or0
(failure)
web3_clientVersion
Returns the current client version.
{
"jsonrpc": "2.0",
"id": 1,
"result": "arb-rpc-node/v0.8.0"
}
SpecificationView Specification
Parameters
None
Response
String
— The current client version
web3_sha3
Returns Keccak-256 (not the standardized SHA3-256) of the given data.
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}
SpecificationView Specification
Parameters
DATA
— The data to convert into a SHA3 hash
Response
DATA
— The SHA3 result of the given string.
net_version
Returns the current network id.
{
"jsonrpc": "2.0",
"id": 1,
"result": "42161"
}
SpecificationView Specification
Parameters
None
Response
String
- The current network id. The full list of current network IDs is available at chainlist.org. Sopme common ones are:1
— Ethereum Mainnet2
— Morden testnet (now deprecated)3
— Ropsten testnet4
— Rinkeby testnet5
— Goerli testnet
arbtrace_block
Returns traces created at the given block.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0xef228c1955efa79fb8f940196263427cc6ab6285",
"gas": "0x367ae",
"input": "0x095ea7b3000000000000000000000000a867241cdc8d3b0c07c85cc06f25a0cd3b5474d800000000000000000000000000000000000000000000000000000000000f4240",
"to": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
"value": "0x0"
},
"blockHash": "0x04a429128671a98760e55e89d12bdac7c6278c80d49e2721a10929f2377c2715",
"blockNumber": 17918355,
"result": {
"gasUsed": "0xc912",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [],
"transactionHash": "0xb50cd565a0eda6c51d6dc1811a67f691ebaeb16d007d7baa8e3fca2ebaedea9e",
"transactionPosition": 0,
"type": "call"
}
]
}
SpecificationView Specification
Parameters
Quantity or Tag
— Integer of a block number, or the string 'earliest', 'latest' or 'pending'.
Response
Array
— Block traces.
arbtrace_call
Executes the given call and returns a number of possible traces for it.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"output": "0x",
"stateDiff": null,
"trace": [
{
"action": {
"callType": "call",
"from": "0xef228c1955efa79fb8f940196263427cc6ab6285",
"gas": "0x7fffffff",
"input": "0x",
"to": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
"value": "0x0"
},
"error": "Revert",
"subtraces": 1,
"traceAddress": [],
"type": "call"
},
{
"action": {
"callType": "delegatecall",
"from": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
"gas": "0x7dfffe58",
"input": "0x",
"to": "0x1efb3f88bc88f03fd1804a5c53b7141bbef5ded8",
"value": "0x0"
},
"error": "Revert",
"subtraces": 0,
"traceAddress": [
0
],
"type": "call"
}
],
"vmTrace": null,
"destroyedContracts": null
}
}
SpecificationView Specification
Parameters
Object
— Transaction object where from the field is optional and nonce field is omitted.Array
— Type of trace, one or more of: "vmTrace", "trace", "stateDiff".Quantity
orTag
— Integer of a block number, or the string'earliest'
,'latest'
or'pending'
(optional).
Response
Array
— Block traces.
arbtrace_callMany
Performs multiple call traces on top of the same block. i.e. transaction n
will be executed on top of a pending block with all n-1
transactions applied (traced) first. Allows to trace dependent transactions.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"output": "0x",
"stateDiff": null,
"trace": [
{
"action": {
"callType": "call",
"from": "0x9a1351b2455df011c0bc887be039b3853da3efef",
"gas": "0x7fffffff",
"input": "0x",
"to": "0x1b02da8cb0d097eb8d57a175b88c7d8b47997506",
"value": "0x186a0"
},
"error": "Revert",
"subtraces": 0,
"traceAddress": [],
"type": "call"
}
],
"vmTrace": null,
"destroyedContracts": null
}
]
}
SpecificationView Specification
Parameters
Array
— List of trace calls with the type of trace, one or more of:"vmTrace"
,"trace"
,"stateDiff"
.Quantity
orTag
— Integer of a block number, or the string'earliest'
,'latest'
or'pending'
(optional).
Response
Array
— Array of the given transactions’ traces
arbtrace_filter
Return all traces of the given filter
{
"jsonrpc": "2.0",
"id": "1",
"result": [
{
"action": {
"callType": "call",
"from": "0x322e7ce91033b143bc04bc508ab1a3c0628a9643",
"gas": "0x1f4af",
"input": "0x095ea7b3000000000000000000000000908c4d94d34924765f1edc22a1dd098397c59dd4ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"to": "0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a",
"value": "0x0"
},
"blockHash": "0x669d5ae62b8632b7558b783cb8904314917a9669553d41ce2403ddc447ef8dcb",
"blockNumber": 17670119,
"result": {
"gasUsed": "0xc62c",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0x2715c3cdf326b1a5a05621eddf0cf60ba285294c0378dfa8c5544933fd7e7a50",
"transactionPosition": 0,
"type": "call"
}
]
}
SpecificationView Specification
Parameters
Object
— The filter objectfromBlock
—Quantity
orTag
From this block (optional).toBlock
—Quantity
orTag
To this block (optional).fromAddress
—Array
Sent from these addresses (optional).toAddress
—Address
Sent to these addresses (optional).after
—Quantity
The offset trace number (optional).count
—Quantity
Integer number of traces to display in a batch (optional).
Response
Array
— Traces matching given filter
arbtrace_replayBlockTransactions
Replays all transactions in a block returning the requested traces for each transaction.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000429d069189e0000000000000000000000000000000000000000000000000018174e1ded15a36a96",
"stateDiff": null,
"trace": [
{
"action": {
"callType": "call",
"from": "0x4a4aa276871264d841b578d1ae7e9488f468cff4",
"gas": "0xcf697",
"input": "0x38ed17390000000000000000000000000000000000000000000000000429d069189e00000000000000000000000000000000000000000000000000180ad3866e3306932000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004a4aa276871264d841b578d1ae7e9488f468cff40000000000000000000000000000000000000000000000000000000062d6e84f000000000000000000000000000000000000000000000000000000000000000200000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab100000000000000000000000017fc002b466eec40dae837fc4be5c67993ddbd6f",
"to": "0xc2544a32872a91f4a553b404c6950e89de901fdb",
"value": "0x0"
},
"result": {
"gasUsed": "0x34a94",
"output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000429d069189e0000000000000000000000000000000000000000000000000018174e1ded15a36a96"
},
"subtraces": 4,
"traceAddress": [],
"transactionHash": "0xe99db474f770b77bf1128607b93489662487e1a72fcab6f27b35660dc1885d26",
"type": "call"
}
]
}
]
}
SpecificationView Specification
Parameters
Quantity
orTag
— Integer of a block number, or the string'earliest'
,'latest'
or'pending'
.Array
— Type of trace, one or more of:"vmTrace"
,"trace"
,"stateDiff"
.
Response
Array
— Block transactions traces.
arbtrace_replayTransaction
Replays a transaction, returning the traces.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000731788c67d08000000000000000000000000000000000000000000000000000000000002dc6c0",
"stateDiff": null,
"trace": [
{
"action": {
"callType": "call",
"from": "0x9a1351b2455df011c0bc887be039b3853da3efef",
"gas": "0x5bb34",
"input": "0xfb3bdb4100000000000000000000000000000000000000000000000000000000002dc6c000000000000000000000000000000000000000000000000000000000000000800000000000000000000000009a1351b2455df011c0bc887be039b3853da3efef0000000000000000000000000000000000000000000000000000000062d56867000000000000000000000000000000000000000000000000000000000000000200000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
"to": "0x1b02da8cb0d097eb8d57a175b88c7d8b47997506",
"value": "0x73aada19669dc"
},
"result": {
"gasUsed": "0xf297",
"output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000731788c67d08000000000000000000000000000000000000000000000000000000000002dc6c0"
},
"subtraces": 5,
"traceAddress": [],
"type": "call"
}
],
"vmTrace": null,
"destroyedContracts": null
}
}
SpecificationView Specification
Parameters
Hash
— Transaction hashArray
— Type of trace, one or more of:"vmTrace"
,"trace"
,"stateDiff"
Response
Object
— Block traces
arbtrace_transaction
Returns all traces of given transaction.
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0x322e7ce91033b143bc04bc508ab1a3c0628a9643",
"gas": "0x1f4af",
"input": "0x095ea7b3000000000000000000000000908c4d94d34924765f1edc22a1dd098397c59dd4ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"to": "0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a",
"value": "0x0"
},
"blockHash": "0x669d5ae62b8632b7558b783cb8904314917a9669553d41ce2403ddc447ef8dcb",
"blockNumber": 17670119,
"result": {
"gasUsed": "0xc62c",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0x2715c3cdf326b1a5a05621eddf0cf60ba285294c0378dfa8c5544933fd7e7a50",
"transactionPosition": 0,
"type": "call"
}
]
}
SpecificationView Specification
Parameters
Hash
— Transaction hash
Response
Array
— Traces of given transaction