Skip to main content

Node API - Optimism


API AuthenticationClick to view API Authentication details
API calls require authentication with API key via Authorization request header or URL property. Calls are made to one of the Optimism Node API endpoints found in your app's dashboard.

For example: https://optimism-mainnet-rpc-archive.datahub.figment.io

Here's some boilerplate to get you started.
fetch("https://optimism-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
})
})

Available Methods

eth_getBlockByHash

Returns information about a block by hash.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"difficulty": "0x2",
"extraData": "0xd98301090a846765746889676f312e31352e3133856c696e7578000000000000f3983abac9e9e667a41187c45b289089043417e3c2c8a37b5e9364f60bd541ff0f2e5630effcbcf9286dee2223f50ca0ed80fe536af81632f1af91b362a11ea400",
"gasLimit": "0xe4e1c0",
"gasUsed": "0x8ce8c",
"hash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"logsBloom": "0x020000000000000800000000020080000080000000000000000006008000000200000000000000000000100400000880000010002800000002020000010000010000000010020020020000080000000000800000400000000000000000004000000000000000000000800000001000000200200020040000000400300000020000001000000000000100000004000000010080000204000000001000000010040021000000000000000000000000000002000000000000020000002000000011000000030800000100000000001080000000000000000000000040000000000010000800000400000000200c0000800000400000000008000000000000000000",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0xd96b2c",
"parentHash": "0x95f5bdf5bec3a09ca1a8d7761d5b32bf4ca8f2a8917ea1e0d1675c28f65f22c0",
"receiptsRoot": "0x03be8f4ebff9e370d483b4576fd1dafa6d40016e36b675113f43e93f49ea1f82",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x3b3",
"stateRoot": "0x5d4261a02a9930d3f934976e5b6f07df85e539490bb6294782fea0d34e1e8d43",
"timestamp": "0x62cbbfe3",
"totalDifficulty": "0x1b2d659",
"transactions": [
{
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"blockNumber": "0xd96b2c",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"gas": "0xe4e1c0",
"gasPrice": "0xf4240",
"hash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"nonce": "0x34cd",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x37",
"r": "0x3094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cc",
"s": "0x3d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897",
"queueOrigin": "sequencer",
"l1TxOrigin": null,
"l1BlockNumber": "0xe6b51b",
"l1Timestamp": "0x62cbbfe3",
"index": "0xd96b2b",
"queueIndex": null,
"rawTransaction": "0xf9014a8234cd830f424083e4e1c09482ac2ce43e33683c58be4cdc40975e73aa50f45980b8e4cde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff37a03094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cca03d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897"
}
],
"transactionsRoot": "0xde6bf038173a1dc3704e3f77da89fe74745f488f9892174fa2c221d5e4676dbf",
"uncles": []
}
}
SpecificationView Specification

Parameters

  1. DATA, 32 Bytes - Hash of a block.
  2. Boolean - If true it returns the full transaction objects, if false 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 its 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"difficulty": "0x2",
"extraData": "0xd98301090a846765746889676f312e31352e3133856c696e7578000000000000f3983abac9e9e667a41187c45b289089043417e3c2c8a37b5e9364f60bd541ff0f2e5630effcbcf9286dee2223f50ca0ed80fe536af81632f1af91b362a11ea400",
"gasLimit": "0xe4e1c0",
"gasUsed": "0x8ce8c",
"hash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"logsBloom": "0x020000000000000800000000020080000080000000000000000006008000000200000000000000000000100400000880000010002800000002020000010000010000000010020020020000080000000000800000400000000000000000004000000000000000000000800000001000000200200020040000000400300000020000001000000000000100000004000000010080000204000000001000000010040021000000000000000000000000000002000000000000020000002000000011000000030800000100000000001080000000000000000000000040000000000010000800000400000000200c0000800000400000000008000000000000000000",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0xd96b2c",
"parentHash": "0x95f5bdf5bec3a09ca1a8d7761d5b32bf4ca8f2a8917ea1e0d1675c28f65f22c0",
"receiptsRoot": "0x03be8f4ebff9e370d483b4576fd1dafa6d40016e36b675113f43e93f49ea1f82",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x3b3",
"stateRoot": "0x5d4261a02a9930d3f934976e5b6f07df85e539490bb6294782fea0d34e1e8d43",
"timestamp": "0x62cbbfe3",
"totalDifficulty": "0x1b2d659",
"transactions": [
{
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"blockNumber": "0xd96b2c",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"gas": "0xe4e1c0",
"gasPrice": "0xf4240",
"hash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"nonce": "0x34cd",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x37",
"r": "0x3094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cc",
"s": "0x3d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897",
"queueOrigin": "sequencer",
"l1TxOrigin": null,
"l1BlockNumber": "0xe6b51b",
"l1Timestamp": "0x62cbbfe3",
"index": "0xd96b2b",
"queueIndex": null,
"rawTransaction": "0xf9014a8234cd830f424083e4e1c09482ac2ce43e33683c58be4cdc40975e73aa50f45980b8e4cde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff37a03094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cca03d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897"
}
],
"transactionsRoot": "0xde6bf038173a1dc3704e3f77da89fe74745f488f9892174fa2c221d5e4676dbf",
"uncles": []
}
}
SpecificationView Specification

Parameters

  1. QUANTITY|TAG - integer of a block number, or the string "earliest", "latest" or "pending", as in the default block parameter
  2. Boolean - If true it returns the full transaction objects, if false 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 its 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
SpecificationView Specification

Parameters

  1. 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
SpecificationView Specification

Parameters

  1. 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_getUncleCountByBlockHash

Returns the number of uncles in a block from a block matching the given block hash.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 0,
"result": "0x0"
}
SpecificationView Specification

Parameters

  1. DATA, 32 Bytes - hash of a block

Response

QUANTITY - integer of the number of uncles in this block.


eth_getUncleCountByBlockNumber

Returns the number of uncles in a block from a block matching the given block number.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
SpecificationView Specification

Parameters

  1. QUANTITY|TAG - integer of a block number, or the string "latest", "earliest" or "pending", see the default block parameter

Response

QUANTITY - integer of the number of uncles in this block.


eth_getUncleByBlockHashAndIndex

Returns information about an uncle of a block by hash and uncle index position.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
SpecificationView Specification

Parameters

  1. DATA, 32 Bytes - The hash of a block.
  2. QUANTITY - The uncle's index position.

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 its 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.Returns information about a block by hash. Note: An uncle doesn't contain individual transactions.

eth_getUncleByBlockNumberAndIndex

Returns information about an uncle of a block by number and uncle index position.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
SpecificationView Specification

Parameters

  1. QUANTITY|TAG - a block number, or the string "earliest", "latest" or "pending", as in the default block parameter
  2. QUANTITY - the uncle's index position.

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 its 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.Returns information about a block by hash. Note: An uncle doesn't contain individual transactions.

eth_protocolVersion

Returns the current Ethereum protocol version.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x40"
}
SpecificationView Specification

Parameters

None

Response

String - The current Ethereum protocol version


eth_chainId

Returns the chain ID of the current network.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 0,
"result": "0xa"
}
SpecificationView Specification

Parameters

none

Response

quantity - EIP155 Chain ID.


eth_syncing

Returns an object with data about the sync status or false.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
SpecificationView Specification

Parameters

None

Response

Object|Boolean, An object with sync status data or FALSE, when not syncing:

  • startingBlock: QUANTITY - The block at which the import started (will only be reset, after the sync reached his head)
  • currentBlock: QUANTITY - The current block, same as eth_blockNumber
  • highestBlock: QUANTITY - The estimated highest block

eth_coinbase

Returns the client's coinbase address.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x00000398232e2064f896018496b4b44b3d62751f"
}
SpecificationView Specification

Parameters

None

Response

DATA, 20 bytes - the current coinbase address.


eth_accounts

Returns a list of addresses owned by the client.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x00000398232e2064f896018496b4b44b3d62751f"
]
}
SpecificationView Specification

Parameters

None

Response

Array of DATA, 20 Bytes - addresses owned by the client.


eth_blockNumber

Returns the number of most recent block.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xd97387"
}
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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x"
}
SpecificationView Specification

Parameters

  1. Object - The transaction call object
  • from: DATA, 20 Bytes - (optional) The address the transaction is sent from.
  • to: DATA, 20 Bytes - The address the transaction is directed to.
  • gas: QUANTITY - (optional) Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.
  • gasPrice: QUANTITY - (optional) Integer of the gasPrice used for each paid gas
  • value: QUANTITY - (optional) Integer of the value sent with this transaction
  • data: DATA - (optional) Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI in the Solidity documentation
  1. QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter

Response

DATA - the return value of 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x5208"
}
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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf4240"
}
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).

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x206be2a6863db75271ad1d4078da5fae"
}
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

  1. 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 Bytes DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options.

Response

QUANTITY - A filter id.


eth_newBlockFilter

Creates a filter in the node, to notify when a new block arrives.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x294e63ead175b7e4bbf82b9c9f3ddea7"
}
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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xa86ec23ac31df1977e1ba32788e093fe"
}
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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
SpecificationView Specification

Parameters

  1. QUANTITY - The filter id.

Response

Boolean - true if the filter was successfully uninstalled, otherwise false.


eth_getFilterChanges

Polling method for a filter, which returns an array of logs which occurred since last poll.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x805ce68a98c4833f40875b26dc67d2e1917c92b33b906c80a4fd2e93d8c7ecea",
"0x7b3bc0d8e2edf98cbab194ef1c2059e470f11d61cf77a0167180f797377c65bc",
"0x7034e39bb5659184f6e67d7551615ca4bb0a71204e62716a39664003d2b7b872"
]
}
SpecificationView Specification

Parameters

  1. QUANTITY - the filter id.

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 Bytes DATA 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 the anonymous specifier.)

eth_getFilterLogs

Returns an array of all logs matching filter with given id.

Request Body (try it)
Example Response
{
"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

  1. QUANTITY - The filter id.`

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 Bytes DATA 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 the anonymous specifier.)

eth_getLogs

Returns an array of all logs matching a given filter object.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0xfda08aef411a83140f6ac5fa516ff37482d5e5cb",
"topics": [
"0x5f4a9a1b73bee700ca1fb203bb004bcc0a7eca48af3f147b24dcf5bf4bf3c00b"
],
"data": "0x00000000000000000000000000000000000000000000000000000005598013830000000000000000000000000000000000000000000000000000000062cbbfe300000000000000000000000000000000000000000000000000000000000000cb",
"blockNumber": "0xd96b2c",
"transactionHash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"transactionIndex": "0x0",
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"logIndex": "0x0",
"removed": false
},
{
"address": "0xbd7a3b7dbeb096f0b832cf467b94b091f30c34ec",
"topics": [
"0x54e4482fe1d38392effe5d53f0e9e72f60221a75a10cea7abbb684bfb03519bf",
"0x000000000000000000000000b6599bd362120dc70d48409b8a08888807050700"
],
"data": "0x00000000000000000000000000000000000000000000000c7b3d8bb77f293b1000000000000000000000000000000000000000000000000c87f1b83f0f38f400",
"blockNumber": "0xd96b2c",
"transactionHash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"transactionIndex": "0x0",
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"logIndex": "0x1",
"removed": false
}
]
}
SpecificationView Specification

Parameters

  1. 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 Bytes DATA 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 hash blockHash. Using blockHash is equivalent to fromBlock = toBlock = the block number with hash blockHash. If blockHash is present in in the filter criteria, then neither fromBlock nor toBlock 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 Bytes DATA 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 the anonymous specifier.)

eth_mining

Returns true if client is actively mining new blocks.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
SpecificationView Specification

Parameters

None

Response

Boolean - returns true of the client is mining, otherwise false.


eth_hashrate

Returns the number of hashes per second that the node is mining with.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
SpecificationView Specification

Parameters

None

Response

QUANTITY - number of hashes per second.


eth_sign

The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))).

Request Body (try it)
Example Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"
}
SpecificationView Specification

By adding a prefix to the message makes the calculated signature recognizable as an Ethereum specific signature. This prevents misuse where a malicious dapp can sign arbitrary data (e.g. transaction) and use the signature to impersonate the victim. Note: the address to sign with must be unlocked.

Parameters

  1. DATA, 20 Bytes - address
  2. DATA, N Bytes - message to sign

Response

DATA: Signature


eth_signTransaction

Signs a transaction that can be submitted to the network at a later time using with eth_sendRawTransaction.

Request Body (try it)
Example Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"
}
SpecificationView Specification

Parameters

  1. Object - The transaction object
  • from: DATA, 20 Bytes - The address the transaction is sent from.
  • to: DATA, 20 Bytes - (optional when creating new contract) The address the transaction is directed to.
  • gas: QUANTITY - (optional, default: 90000) Integer of the gas provided for the transaction execution. It will return unused gas.
  • gasPrice: QUANTITY - (optional, default: To-Be-Determined) Integer of the gasPrice used for each paid gas, in Wei.
  • value: QUANTITY - (optional) Integer of the value sent with this transaction, in Wei.
  • data: DATA - The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.
  • nonce: QUANTITY - (optional) Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.

Response

DATA, The signed transaction object.


eth_getBalance

Returns the balance of the account of given address.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x13c82191d50f41e843"
}
SpecificationView Specification

Parameters

  1. DATA, 20 Bytes - address to check for balance.
  2. 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
SpecificationView Specification

Parameters

  1. DATA, 20 Bytes - address of the storage.
  2. QUANTITY - integer of the position in the storage.
  3. 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x34f3"
}
SpecificationView Specification

Parameters

  1. DATA, 20 Bytes - address.
  2. 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x"
}
SpecificationView Specification

Parameters

  1. DATA, 20 Bytes - address
  2. QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending"

Response

DATA - the code from the given address.


eth_sendRawTransaction

Creates new message call transaction or a contract creation for signed transactions.

Request Body (try it)
Example Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
SpecificationView Specification

Parameters

  1. 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"blockNumber": "0xd96b2c",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"gas": "0xe4e1c0",
"gasPrice": "0xf4240",
"hash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"nonce": "0x34cd",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x37",
"r": "0x3094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cc",
"s": "0x3d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897",
"queueOrigin": "sequencer",
"l1TxOrigin": null,
"l1BlockNumber": "0xe6b51b",
"l1Timestamp": "0x62cbbfe3",
"index": "0xd96b2b",
"queueIndex": null,
"rawTransaction": "0xf9014a8234cd830f424083e4e1c09482ac2ce43e33683c58be4cdc40975e73aa50f45980b8e4cde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff37a03094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cca03d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897"
}
}
SpecificationView Specification

Parameters

  1. 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 id
  • r: QUANTITY - ECDSA signature r
  • s: QUANTITY - ECDSA signature s

eth_getTransactionByBlockHashAndIndex

Returns information about a transaction by block hash and transaction index position.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"blockNumber": "0xd96b2c",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"gas": "0xe4e1c0",
"gasPrice": "0xf4240",
"hash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"nonce": "0x34cd",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x37",
"r": "0x3094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cc",
"s": "0x3d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897",
"queueOrigin": "sequencer",
"l1TxOrigin": null,
"l1BlockNumber": "0xe6b51b",
"l1Timestamp": "0x62cbbfe3",
"index": "0xd96b2b",
"queueIndex": null,
"rawTransaction": "0xf9014a8234cd830f424083e4e1c09482ac2ce43e33683c58be4cdc40975e73aa50f45980b8e4cde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff37a03094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cca03d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897"
}
}
SpecificationView Specification

Parameters

  1. DATA, 32 Bytes - hash of a block.
  2. 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 id
  • r: QUANTITY - ECDSA signature r
  • s: QUANTITY - ECDSA signature s

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"blockNumber": "0xd96b2c",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"gas": "0xe4e1c0",
"gasPrice": "0xf4240",
"hash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"nonce": "0x34cd",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"transactionIndex": "0x0",
"value": "0x0",
"v": "0x37",
"r": "0x3094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cc",
"s": "0x3d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897",
"queueOrigin": "sequencer",
"l1TxOrigin": null,
"l1BlockNumber": "0xe6b51b",
"l1Timestamp": "0x62cbbfe3",
"index": "0xd96b2b",
"queueIndex": null,
"rawTransaction": "0xf9014a8234cd830f424083e4e1c09482ac2ce43e33683c58be4cdc40975e73aa50f45980b8e4cde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff37a03094004ce963e76f25c452f93dc991118bc409c336c7cd8172b682e58e1032cca03d1564464be740332a7b7e91e3780bd3e4ec88e0dcf4c09051b57a0521b8a897"
}
}
SpecificationView Specification

Parameters

  1. QUANTITY|TAG - a block number, or the string "earliest", "latest" or "pending", as in the default block parameter
  2. QUANTITY - 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 id
  • r: QUANTITY - ECDSA signature r
  • s: QUANTITY - ECDSA signature s

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"blockNumber": "0xd96b2c",
"contractAddress": null,
"cumulativeGasUsed": "0x8ce8c",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"gasUsed": "0x8ce8c",
"l1Fee": "0x29ca36775e60",
"l1FeeScalar": "1",
"l1GasPrice": "0x1efca2bb8",
"l1GasUsed": "0x1594",
"logs": [
{
"address": "0xfda08aef411a83140f6ac5fa516ff37482d5e5cb",
"topics": [
"0x5f4a9a1b73bee700ca1fb203bb004bcc0a7eca48af3f147b24dcf5bf4bf3c00b"
],
"data": "0x00000000000000000000000000000000000000000000000000000005598013830000000000000000000000000000000000000000000000000000000062cbbfe300000000000000000000000000000000000000000000000000000000000000cb",
"blockNumber": "0xd96b2c",
"transactionHash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"transactionIndex": "0x0",
"blockHash": "0x7b0fbd8f4d77b11561549df80781324dd72d053f5b5bfd0dc2bc0a3eebb5c765",
"logIndex": "0x0",
"removed": false
}
],
"logsBloom": "0x020000000000000800000000020080000080000000000000000006008000000200000000000000000000100400000880000010002800000002020000010000010000000010020020020000080000000000800000400000000000000000004000000000000000000000800000001000000200200020040000000400300000020000001000000000000100000004000000010080000204000000001000000010040021000000000000000000000000000002000000000000020000002000000011000000030800000100000000001080000000000000000000000040000000000010000800000400000000200c0000800000400000000008000000000000000000",
"status": "0x1",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"transactionHash": "0xe148021e50c0115c400cd69845e9db9309d095b31bb991acd42a9ced7565b76c",
"transactionIndex": "0x0"
}
}
SpecificationView Specification

Note That the receipt is not available for pending transactions.

Parameters

  1. 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, otherwise null.
  • 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 either 1 (success) or 0 (failure)

eth_getBlockRange

Like eth_getBlockByNumber but accepts a range of block numbers instead of just a single block.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"difficulty": "0x2",
"extraData": "0xd98301090a846765746889676f312e31352e3133856c696e75780000000000009c3827892825f0825a7e329b6913b84c9e4f89168350aff0939e0e6609629f2e7f07f2aeb62acbf4b16a739cab68866f4880ea406583a4b28a59d4f55dc2314e00",
"gasLimit": "0xe4e1c0",
"gasUsed": "0x3183d",
"hash": "0xbee7192e575af30420cae0c7776304ac196077ee72b048970549e4f08e875453",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000400000000000100000000000000200000000002000000000000001000000000000000000004000000000000000000000000000040000400000100400000000000000100000000000000000000000000000020000000000000000000000000000000000000000000000001000000000000000000000100000000000000000000000000000000000000000000000000000000000000088000000080000000000010000000000000000000000000000800008000120000000000000000000000000000000002000",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x1",
"parentHash": "0x7ca38a1916c42007829c55e69d3e9a73265554b586a499015373241b8a3fa48b",
"receiptsRoot": "0xf4c97b1186b690ad3318f907c0cdaf46f4598f27f711a5609064b2690a767287",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x30c",
"stateRoot": "0xd3ac40854cd2ac17d8effeae6065cea990b04be714f7061544973feeb2f1c95f",
"timestamp": "0x618d8837",
"totalDifficulty": "0x3",
"transactions": [
"0x5e77a04531c7c107af1882d76cbff9486d0a9aa53701c30888509d4f5f2b003a"
],
"transactionsRoot": "0x19f5efd0d94386e72fcb3f296f1cb2936d017c37487982f76f09c591129f561f",
"uncles": []
}
]
}
SpecificationView Specification

Parameters

  1. QUANTITY|TAG - integer of the starting block number for the range, or the string "earliest""latest" or "pending", as in the default block parameter.
  2. QUANTITY|TAG - integer of the ending block number for the range, or the string "earliest""latest" or "pending", as in the default block parameter.
  3. BOOLEAN - If true it returns the full transaction objects, if false only the hashes of the transactions.

Response

An array of block objects. See eth_getBlockByHash for the structure of a block object.


eth_getProof

Returns the account- and storage-values of the specified account including the Merkle-proof.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0xa132dab612db5cb9fc9ac426a0cc215a3423f9c9",
"accountProof": [
"0xf90211a0104f88f69d7148be276faae5f28393bb7b9b69e757a0fadab3ff7ccd7e4c04b7a0cb7eca96573e5879ff16ae036eff9d99cbd57dc73e0ab45f43b5ab134783f7c4a044e230288fb46e7a09375258b8d5edb64cfd7bee8453d4c145dd714bbdbbbb08a088da477244a84c7a1c958214fe7f096da3845084e172fd59f72dc94615155f2aa098389c33f6985b7ce1cfe5f0279a6bf7adac7d13d3ae6e1b97666b4cf2b40fb3a0cb6b70471bfb45b1274e9ef487e1fe3a7df1f270185e5b5541ce3feadde21bb1a0e4398bae302de13d955b12c3a35ebf5283a701e1990d06bf8a0558a5f5c06096a00d99cbf6f8e317ea052076a7d551b4741979cc04eb58d0350b65f3d1e83ef29da0056b3129823e9777dcd6466d28bc38a149e66252fd16010f7f72a5a14a9adb61a070dfac1e579aad02a3ac84535e2518efd81111597972524a999f8889e7210025a09b4e1f2d0ef9e7cdf59db0e35de4b05024a5caa9d5f401c5f3aa8924c1275616a008126c3a63d825a5a949c61713507cc0cb3b8310a95e7e6a360d051192111431a0aa6cf52c19139a298a1bfd00412b44b763e34e483b9dabcf622721fc439b17aaa0d155b2e0883b99f70854903d86ceb0e77c162529f2b78b45ddc562b5457d0809a03b73499ca9c359a13ac7e1fa9d2595ed164374292012420adf6d26749a077ae3a03ce07ac22dc646f097f031f281b7a3d56a6da52eba4bbafb91f23f3eec6065e580",
"0xf90211a0a6cdd1a2880733c9d8d3657292e162061eb5925d4967579ea72f189087329cf6a09d173dae94990e6730ae8224d6211e0cdf73f484670d7ca43259452d5af82392a010307a550ed09e023ec5e4f7c9e873536aaaac595e07e306658d0199d10f75f4a01f2475154816c9c03497b5ba72f541001c65aced45892cecbc34638b7571fa1fa07bc4975cc926e977c9889be42cdcae63db714e941bfb8a11b8d1855054cc5d2fa034b3af87e54ebea624b814891d80f815e7acffbf594f69edcf9046a94a6a3bf1a0f7f330ee553368969c80409591345c7849b36411eb7e493ac6b2d7597eef3a7aa01f741365ab42e3c46b0321fdb514eae051ed7f48bb844f2fec8978c404c1cdbaa06a589eb57a13416cef333ceddd12863bb933ff6c36fc7c8add39add5faa81a03a0327540ac3362ae7d5b619614b7ea3d921620dc468acd62ae3b723a3a5b112853a0cccc2d1467b02ecd18b43ea63a3de8ca73a17f65619a6ab4920708181ad2f494a090d7c2070ab8b2d4c5d78401d1284574e6e3bd8e2131b3b07532433bf8699187a087dcf7cfecc11cdc601bcb9776ebbfcdab07ade8caf293267d422b94580842b1a0c3527f5d18b824ab80c8494b63dd22e3f0915899100bc7d51b40c3332751db85a06a527e0b582a218eb0a36713cd6a3a20784670b6565a28ba914da9674f4a2bf6a0fcc579269822abc1d903b66bfbf293a1ea158538c5bd8f04900bb9000f64aab180",
"0xf90211a0e6c9565a6a3b93a2ffda261531926d5b27c8c76d4efb5da060c77973c9cdc2e3a0b2bc89f2b32b0d68b5c360def5cd2d830a22553b8b846356e789224ad88fe8b8a068d5c18df3412e5f0c352cc10e513c9cc4dec206a6091265fb095d62e9ad293ea07a3377ef8be59a27bca73d3c0c982fb52b4b0dcac902335f0eb35d4ecd59a032a0652f83e9755c3983629bf6dbf46d776a009db84eec09c4fbe58b1e3ec6572277a04bb3f4c1108dedd5a8681c1c966b63299f92b089d6273d6c6b2f56989b8ffe0ca010f44a765502940b1eb71150dbeea1ec4271f189e4ff0834f16b24005f4707f4a0b5398079168cb4d89299037614066d42af9b48de97898584799987ddce8e7b35a08a3c8f3bf3fa48911958ac3ceaa4e5c6049e55f75c3fa517a0d5fee7ee76abc8a06f37b148ceba004f4d8679761bd9242e20fb2098dbb11261b86068df97b319f0a0f2bd1b0f24fd9d85c68e506fe628ca7376b123cf0dedb177b8aa366910311854a0f1087c4b59462af2e2d81e672e6e69ed48c2156007d092efed2d6f1819554943a08aca9e502e15b646b63cabae6b67fd9d35d661e5d4adb8ab807efbbf49b1f71da0e5134005613b56418e8d4b08c55d5df527d7e31cc19729192482e32779e7577ba08e775d6fe0c3dde1cf8cdf2ef51e3a053e84e8d41b7fbe8f013ec89f069244b2a07781f7d8334ccc348cbde68f0cf3623c573d1b5b658fdef5d63371292e4aae5a80",
"0xf90211a0c0623db5d1fe9695e22e13fc2d1e01fc6d61a62ae4c311fc275888c80e3675e9a0fb5d708b9ee69b7aa3f79c5396706e1e9c371f7c7f4c916a6d1762f68b85e301a00a6991d60b57b439d253a396d15433041b86823ae86fa1ad7539dfbb9f11560da018fe6c32607facb82bc8b170346050b09bf7072a8c98a78131cdd33a8b1a7180a087c8c13a9e8e285c9d1dbb5ed6e0dbb804a6d6c46d8b28e059ec9c3e52f2ef72a0ea4004bd1d34fce08aee96a446d391a010bd395343bfb7abcd18f4312b544107a0748ab9ac2f79cc1361076a9a67a45b11bb2a8c2036c881987d49b8331a7b5f08a0908f1a32d444b8b94b468bf8ef9bb1e0df25e0064d194c7f47c7b6d26b5d496ea086127a4b58234019ab80273572b2d72f0155bdec44428718f5db53e53d7b6ca4a001c17b41b4320e435fa15dd4c33faf85b5ea0f5732dba13f6895b7845b7ffc5ca00a495281a0529a656075b93667e91b10ab2c2568b591fbe479ed886e5060730ca049d461b160939ad18dfe47306943c33285a3a4df3efda67a786f8373ef449869a02f69b69913a2a6b6c6ac3cae6931b4a8641522c2ab1de12be6754264b2134189a00d96d18b8bad3c6c43c8b3a9128a2266e7ae41231f007066493b13354c56e950a0012c99bbc820a9cb1600ee6262b5a8a5a4615a05ec23b055ef5fb42f38151178a0066eed86700cc3fb143420308d498d7f6a49c05756c71600ba7dce8d962e4ab780",
"0xf90131a032e4478e40799f3d48bd778a441fb8b9790468a06bcc04f0023cf2c5c5c9e10780a08539ae09c4fddaf4d5973de4a8fb43e366e92db351a8702034947b0632addb8da082f7a4efa62b939e51ca67acdf6f6f00bd38a10f0f15d412ddeeb6c127197031a0e4c36ba241db93b9cf8b6f444a95be3983a3f05f6a549d028b736e33c9cde20fa041f9eb2916312f3ca19dce92c3dfae8e199e3ec16b637aa7ccedd86c5d9784b080a04b9be40d5edd541c63f9fb4de497aeb95d49d7406f2c0f7dafd6d263da87fb5880a0e9eb9ee9e7c547c8a721f189628b4cfd1b40146a4bf3127d2d335a7ab25129da8080a0b313ed7f27a298b6cdfb812bc18104d534f527e5c2bc9acd4e69a5306e940278a0493ab4c48a3b094a8df711bd87c80852658e9b07ab5655e447c6db06af58812c808080",
"0xf8679e3a89e261cc1ceee66ae5f462ac6894dba2d1d1e9725b3c12ee2d9ba70b2bb846f8440180a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a065dc3e313fa56f46c2d281be77f74970f10bb899ed8393b7345a0d18a036db2b"
],
"balance": "0x0",
"codeHash": "0x65dc3e313fa56f46c2d281be77f74970f10bb899ed8393b7345a0d18a036db2b",
"nonce": "0x1",
"storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"storageProof": [
{
"key": "0x7b25b07b11d15379d3b665ead67af9e3a785d7bbb226e97580910e8f55f1e65f",
"value": "0x0",
"proof": []
}
]
}
}
SpecificationView Specification

Parameters

DATA, 20 Bytes - address of the account. ARRAY, 32 Bytes - array of storage-keys which should be proofed and included. See eth_getStorageAt QUANTITY|TAG - integer block number, or the string "latest" or "earliest", see the default block parameter

Response

  • balance: QUANTITY - the balance of the account. See eth_getBalance
  • codeHash: DATA, 32 Bytes - hash of the code of the account. For a simple Account without code it will return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
  • nonce: QUANTITY, - nonce of the account. See eth_getTransactionCount
  • storageHash: DATA, 32 Bytes - SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash.
  • accountProof: ARRAY - Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.
  • storageProof: ARRAY - Array of storage-entries as requested. Each entry is a object with these properties:
  • key: QUANTITY - the requested storage key
  • value: QUANTITY - the storage value
  • proof: ARRAY - Array of rlp-serialized MerkleTree-Nodes, starting with the storageHash-Node, following the path of the SHA3 (key) as path.

rollup_getInfo

Returns useful L2-specific information about the current node.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"mode": "verifier",
"syncing": false,
"ethContext": {
"blockNumber": 15119917,
"timestamp": 1657523996
},
"rollupContext": {
"index": 14251352,
"queueIndex": 122797,
"verifiedIndex": 14251352
}
}
}
SpecificationView Specification

Parameters

None

Response

Object

  • mode: STRING - "sequencer" or "verifier" depending on the node's mode of operation
  • syncing: BOOLEAN - true if the node is currently syncing, false otherwise
  • ethContext: OBJECT
    • blockNumber: QUANTITY - Block number of the latest known L1 block
    • timestamp: QUANTITY - Timestamp of the latest known L1 block
  • rollupContext: OBJECT
    • queueIndex: QUANTITY - Index within the CTC of the last L1 to L2 message ingested
    • index: QUANTITY - Index of the last L2 tx processed
    • verifiedIndex: QUANTITY - Index of the last tx that was ingested from a batch that was posted to L1

rollup_gasPrices

Returns the L1 and L2 gas prices that are being used by the Sequencer to calculate fees.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"l1GasPrice": "0x2a72979a0",
"l2GasPrice": "0xf4240"
}
}
SpecificationView Specification

Parameters

None

Response

Object

  • l1GasPrice: QUANTITY - L1 gas price in wei that the Sequencer will use to estimate the L1 portion of fees (calldata costs).
  • l2GasPrice: QUANTITY - L2 gas price in wei that the Sequencer will use to estimate the L2 portion of fees (execution costs).

web3_clientVersion

Returns the current client version.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 67,
"result": "Geth/v1.9.10-stable/linux-amd64/go1.18"
}
SpecificationView Specification

Parameters

None

Response

String - The current client version


web3_sha3

Returns Keccak-256 (not the standardized SHA3-256) of the given data.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 64,
"result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}
SpecificationView Specification

Parameters

  1. 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.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 67,
"result": "10"
}
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 Mainnet 2: Morden testnet (now deprecated) 3: Ropsten testnet 4: Rinkeby testnet 5: Goerli testnet


net_listening

Returns true if client is actively listening for network connections.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 67,
"result": true
}
SpecificationView Specification

Parameters

None

Response

Boolean - true when listening, otherwise false.


net_peerCount

Returns number of peers currently connected to the client.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 74,
"result": "0x0"
}
SpecificationView Specification

Parameters

None

Response

QUANTITY - integer of the number of connected peers.


debug_traceBlockByHash

The debug_traceBlockByHash method will return a full stack trace of all invoked opcodes of all transaction that were included in this block.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"result": {
"type": "CALL",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"value": "0x0",
"gas": "0xe488f8",
"gasUsed": "0xa95e8",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"output": "0x00000000000000000000000000000000000000000000000010534977436fbd640000000000000000000000000000000000000000000000056313e1a25ff7373f00000000000000000000000000000000000000000000000000fa94646176753d",
"time": "458.826037ms",
"calls": [
{
"type": "DELEGATECALL",
"from": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"to": "0xe6bb5f96e4a8ca1d6e36aa0e59c8780a11200984",
"gas": "0xe0db30",
"gasUsed": "0xa79a4",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"output": "0x"
}
]
}
}
]
}
SpecificationView Specification

Parameters

hash - Hash of the block to be traced.

Response

array - Block traces, which have the following object shape (all return types are in hex values): Response - Trace Object, which has the following fields:

  • calls - Array of transactions in the block with the following fields -
  • from - Address
  • gas - Quantity
  • gasused - Quantity
  • input - Data
  • output - Data
  • to - Address
  • type - Data
  • value - Quantity

debug_traceBlockByNumber

The debug_traceBlockByNumber method will return a full stack trace of all invoked opcodes of all transaction that were included in this block.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"result": {
"type": "CALL",
"from": "0xf28c1f24498c3bd365d823eb26b866078d71c07f",
"to": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"value": "0x0",
"gas": "0xe488f8",
"gasUsed": "0xa95e8",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"output": "0x00000000000000000000000000000000000000000000000010534977436fbd640000000000000000000000000000000000000000000000056313e1a25ff7373f00000000000000000000000000000000000000000000000000fa94646176753d",
"time": "458.826037ms",
"calls": [
{
"type": "DELEGATECALL",
"from": "0x82ac2ce43e33683c58be4cdc40975e73aa50f459",
"to": "0xe6bb5f96e4a8ca1d6e36aa0e59c8780a11200984",
"gas": "0xe0db30",
"gasUsed": "0xa79a4",
"input": "0xcde109b6000000000000000000000000b6599bd362120dc70d48409b8a08888807050700000000000000000000000000000000000000000000000000000000000000d3e0000000000000000000000000000000000000000000000000000000000000d58400000000000000000000000000000000000000000000003f54367947619c971700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"output": "0x"
}
]
}
}
]
}
SpecificationView Specification

Parameters

quantity - Number of the block to be traced or the string 'latest', 'earliest' or 'pending'.

Response

array - Block traces, which have the following object shape (all return types are in hex values): Response - Trace Object, which has the following fields:

  • calls - Array of transactions in the block with the following fields -
  • from - Address
  • gas - Quantity
  • gasused - Quantity
  • input - Data
  • output - Data
  • to - Address
  • type - Data
  • value - Quantity

debug_traceTransaction

The debug_traceTransaction method will return a full stack trace of all invoked opcodes of all transaction that were included in this block.

Request Body (try it)
Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"gas": 73598,
"failed": false,
"returnValue": "0000000000000000000000000000000000000000000000000000000000000001",
"structLogs": [
{
"pc": 0,
"op": "PUSH1",
"gas": 178344,
"gasCost": 3,
"depth": 1,
"stack": [],
"memory": [],
"storage": {}
}
]
}
}
SpecificationView Specification

Parameters

hash - The hash of the transaction

Response

array - Block traces, which have the following object shape (all return types are in hex values): Response - Trace Object, which has the following fields:

  • failed - Address
  • gas - Quantity
  • returnvalue - Data
  • structlogs - Array
  • entries - Array
  • storagesbydepth - Array