{
  "openrpc": "1.2.6",
  "info": {
    "title": "MegaETH Trace API",
    "description": "Quicknode MegaETH Trace API reference",
    "version": "1.0.0"
  },
  "methods": [
    {
      "name": "trace_block",
      "summary": "Returns traces created at given block (Supported on Erigon).",
      "description": "Returns traces created at given block (Supported on Erigon).",
      "params": [
        {
          "name": "blockNumber",
          "description": "The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum and Gnosis",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "array",
        "description": "The block traces, which have the following fields (all return types are hexadecimal unless otherwise noted)",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "The address of the sender"
                  },
                  "callType": {
                    "type": "string",
                    "description": "The type of method such as call, staticcall, delegatecall"
                  },
                  "gas": {
                    "type": "string",
                    "description": "The gas provided by the sender, encoded as hexadecimal"
                  },
                  "input": {
                    "type": "string",
                    "description": "The input data sent along with the transaction"
                  },
                  "to": {
                    "type": "string",
                    "description": "The address of the receiver"
                  },
                  "value": {
                    "type": "string",
                    "description": "The integer of the value sent with this transaction, encoded as hexadecimal"
                  }
                },
                "description": "The ParityTrace action object containing call details"
              },
              "blockHash": {
                "type": "string",
                "description": "The hash of the block where this transaction was in"
              },
              "blockNumber": {
                "type": "integer",
                "description": "The block number where this transaction was in"
              },
              "result": {
                "type": "object",
                "properties": {
                  "gasUsed": {
                    "type": "string",
                    "description": "The amount of gas used by this specific transaction"
                  },
                  "output": {
                    "type": "string",
                    "description": "The return value of the contract call, empty if no RETURN executed"
                  }
                },
                "description": "The ParityTrace result object containing execution outcome"
              },
              "subtraces": {
                "type": "integer",
                "description": "The number of subtraces (internal calls) made by the transaction"
              },
              "traceAddress": {
                "type": "array",
                "items": {},
                "description": "The list of addresses where the call executed, including parent addresses and call order"
              },
              "transactionHash": {
                "type": "string",
                "description": "The hash of the transaction"
              },
              "transactionPosition": {
                "type": "integer",
                "description": "The transaction index position within the block"
              },
              "type": {
                "type": "string",
                "description": "The type of the trace, such as call or create"
              },
              "error": {
                "type": "string",
                "description": "The error message, if any"
              }
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_block"
      },
      "examples": [
        {
          "name": "trace_block example",
          "params": [
            {
              "name": "blockNumber",
              "value": "0x6aede5"
            }
          ],
          "result": {
            "name": "trace_block result",
            "value": [
              {
                "action": {
                  "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
                  "callType": "call",
                  "gas": "0xee8b0",
                  "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012174e000000000000000000000000000000000000000000000000000000000659d4f9700000000000000000000000000000000000000000000000000000003949158772dd455b8f43b8a523ba6b51d397263f20e6550ec310b83562f455de04eaa3de900000000000000000000000000000000000000000000000000000000000000010000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c900000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",
                  "to": "0x4200000000000000000000000000000000000015",
                  "value": "0x0"
                },
                "blockHash": "0x69e2ae442adf3bef34165fac8f3602b8cf9d5973fb883804f119286ce96f6eb8",
                "blockNumber": 9009586,
                "result": {
                  "gasUsed": "0xa07d",
                  "output": "0x"
                },
                "subtraces": 1,
                "traceAddress": [],
                "transactionHash": "0xbaa27fa540f50254c7200cacfb5c725174f96ae3198b653853e1353a9bdc03b2",
                "transactionPosition": 0,
                "type": "call"
              }
            ]
          }
        }
      ]
    },
    {
      "name": "trace_call",
      "summary": "Executes a new message call and returns a number of possible traces (Supported on Erigon).",
      "description": "Executes a new message call and returns a number of possible traces (Supported on Erigon).",
      "params": [
        {
          "name": "object",
          "description": "The transaction call object which contains the following fields:",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string",
                "description": "The string of the address the transaction is sent from"
              },
              "to": {
                "type": "string",
                "description": "The string of the address to the transaction is directed to"
              },
              "gas": {
                "type": "integer",
                "description": "The integer of the gas provided for the transaction execution"
              },
              "gasPrice": {
                "type": "integer",
                "description": "The integer of the gasPrice used for each paid gas encoded as hexadecimal"
              },
              "value": {
                "type": "integer",
                "description": "The integer of the value sent with this transaction encoded as hexadecimal"
              },
              "data": {
                "type": "string",
                "description": "The string of the hash of the method signature and encoded parameters, see the Ethereum Contract ABI"
              }
            }
          }
        },
        {
          "name": "trace",
          "description": "The type of trace, which can be one of the following:",
          "required": true,
          "schema": {
            "enum": [
              "vmTrace",
              "trace",
              "stateDiff"
            ]
          }
        },
        {
          "name": "blockNumber",
          "description": "The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum and Gnosis",
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "object",
        "description": "The transaction trace result object",
        "schema": {
          "type": "object",
          "properties": {
            "output": {
              "type": "string",
              "description": "The data returned as output encoded in hexadecimal format"
            },
            "stateDiff": {
              "type": "object",
              "description": "The altered Ethereum state due to execution of the given transaction, or null if not available"
            },
            "trace": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "description": "The address of the sender"
                      },
                      "callType": {
                        "type": "string",
                        "description": "The type of call such as call, staticcall, delegatecall"
                      },
                      "gas": {
                        "type": "string",
                        "description": "The gas provided by the sender, encoded as hexadecimal"
                      },
                      "input": {
                        "type": "string",
                        "description": "The data sent along with the transaction"
                      },
                      "to": {
                        "type": "string",
                        "description": "The address of the receiver"
                      },
                      "value": {
                        "type": "string",
                        "description": "The value sent with this transaction, encoded as hexadecimal"
                      }
                    },
                    "description": "The action performed during the trace"
                  },
                  "result": {
                    "type": "object",
                    "properties": {
                      "gasUsed": {
                        "type": "string",
                        "description": "The amount of gas used by this trace"
                      },
                      "output": {
                        "type": "string",
                        "description": "The return value of the contract call, empty if no RETURN executed"
                      }
                    },
                    "description": "The execution result of the trace"
                  },
                  "subtraces": {
                    "type": "integer",
                    "description": "The number of subtraces (internal calls) within this trace"
                  },
                  "traceAddress": {
                    "type": "array",
                    "items": {},
                    "description": "The list of addresses where the call executed, including parent calls and order"
                  },
                  "type": {
                    "type": "string",
                    "description": "The type of the trace, such as call or create"
                  }
                }
              },
              "description": "An array of basic trace objects for the given transaction"
            },
            "vmTrace": {
              "type": "object",
              "description": "The full trace of the virtual machine's state during execution, including sub-calls, or null if not available"
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_call"
      },
      "examples": [
        {
          "name": "trace_call example",
          "params": [
            {
              "name": "blockNumber",
              "value": "latest"
            }
          ],
          "result": {
            "name": "trace_call result",
            "value": {
              "output": "0x0000000000000000000000000000000000000000000000000858898f93629000",
              "stateDiff": null,
              "trace": [
                {
                  "action": {
                    "from": "0x0000000000000000000000000000000000000000",
                    "callType": "call",
                    "gas": "0x8000000041905749",
                    "input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be",
                    "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
                    "value": "0x0"
                  },
                  "result": {
                    "gasUsed": "0xa2a",
                    "output": "0x0000000000000000000000000000000000000000000000000858898f93629000"
                  },
                  "subtraces": 0,
                  "traceAddress": [],
                  "type": "call"
                }
              ],
              "vmTrace": null
            }
          }
        }
      ]
    },
    {
      "name": "trace_callMany",
      "summary": "Performs multiple call traces on top of the same block.",
      "description": "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. (Supported on Erigon).",
      "params": [
        {
          "name": "object",
          "description": "The transaction call object which contains the following fields:",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "description": "The string of the address the transaction is sent from"
                },
                "to": {
                  "type": "string",
                  "description": "The string of the address to the transaction is directed to"
                },
                "gas": {
                  "type": "integer",
                  "description": "The integer of the gas provided for the transaction execution"
                },
                "gasPrice": {
                  "type": "integer",
                  "description": "The integer of the gasPrice used for each paid gas encoded as hexadecimal"
                },
                "value": {
                  "type": "integer",
                  "description": "The integer of the value sent with this transaction encoded as hexadecimal"
                },
                "data": {
                  "type": "string",
                  "description": "The string of the hash of the method signature and encoded parameters, see the Ethereum Contract ABI"
                }
              }
            }
          }
        },
        {
          "name": "array",
          "description": "The type of trace, which can be one of the following:",
          "required": true,
          "schema": {
            "enum": [
              "vmTrace",
              "trace",
              "stateDiff"
            ]
          }
        },
        {
          "name": "blockNumber",
          "description": "The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum and Gnosis",
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "array",
        "description": "An array of trace result objects for the given transaction",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "output": {
                "type": "string",
                "description": "The data returned as output encoded in hexadecimal format"
              },
              "stateDiff": {
                "type": "object",
                "description": "The altered Ethereum state due to execution of the given transaction, or null if not available"
              },
              "trace": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "action": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "description": "The address of the sender"
                        },
                        "callType": {
                          "type": "string",
                          "description": "The type of method such as call, staticcall, delegatecall"
                        },
                        "gas": {
                          "type": "string",
                          "description": "The gas provided by the sender, encoded as hexadecimal"
                        },
                        "input": {
                          "type": "string",
                          "description": "The data sent along with the transaction"
                        },
                        "to": {
                          "type": "string",
                          "description": "The address of the receiver"
                        },
                        "value": {
                          "type": "string",
                          "description": "The value sent with this transaction encoded as hexadecimal"
                        }
                      },
                      "description": "The action performed during this trace"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "gasUsed": {
                          "type": "string",
                          "description": "The amount of gas used by this trace"
                        },
                        "output": {
                          "type": "string",
                          "description": "The return value of the contract call, empty if no RETURN executed"
                        }
                      },
                      "description": "The execution result of this trace"
                    },
                    "subtraces": {
                      "type": "integer",
                      "description": "The number of subtraces (internal calls) in this trace"
                    },
                    "traceAddress": {
                      "type": "array",
                      "items": {},
                      "description": "The list of addresses showing the nested call structure"
                    },
                    "type": {
                      "type": "string",
                      "description": "The type of trace such as call or create"
                    }
                  }
                },
                "description": "An array of trace objects detailing each internal call"
              },
              "vmTrace": {
                "type": "object",
                "description": "The full virtual machine execution trace including sub-calls, or null if not available"
              }
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_callMany"
      },
      "examples": [
        {
          "name": "trace_callMany example",
          "params": [
            {
              "name": "array",
              "value": "vmTrace"
            }
          ],
          "result": {
            "name": "trace_callMany result",
            "value": [
              {
                "output": "0x",
                "stateDiff": null,
                "trace": [
                  {
                    "action": {
                      "from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
                      "callType": "call",
                      "gas": "0x80000000419058f9",
                      "input": "0x",
                      "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                      "value": "0x186a0"
                    },
                    "result": {
                      "gasUsed": "0x0",
                      "output": "0x"
                    },
                    "subtraces": 0,
                    "traceAddress": [],
                    "type": "call"
                  }
                ],
                "vmTrace": null
              },
              {
                "output": "0x",
                "stateDiff": null,
                "trace": [
                  {
                    "action": {
                      "from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
                      "callType": "call",
                      "gas": "0x80000000419058f9",
                      "input": "0x",
                      "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
                      "value": "0x186a0"
                    },
                    "result": {
                      "gasUsed": "0x0",
                      "output": "0x"
                    },
                    "subtraces": 0,
                    "traceAddress": [],
                    "type": "call"
                  }
                ],
                "vmTrace": null
              }
            ]
          }
        }
      ]
    },
    {
      "name": "trace_filter",
      "summary": "Returns traces matching given filter (Supported on Erigon).",
      "description": "Returns traces matching given filter (Supported on Erigon).",
      "params": [
        {
          "name": "object",
          "description": "The filter object",
          "schema": {
            "type": "object",
            "properties": {
              "fromBlock": {
                "type": "string",
                "description": "The starting block number for the filter in hexadecimal format"
              },
              "toBlock": {
                "type": "string",
                "description": "The ending block number for the filter in hexadecimal format"
              },
              "fromAddress": {
                "type": "array",
                "items": {},
                "description": "An array of sender addresses to filter by"
              },
              "toAddress": {
                "type": "array",
                "items": {},
                "description": "An array of receiver addresses to filter by"
              },
              "after": {
                "type": "integer",
                "description": "The offset trace number for pagination"
              },
              "count": {
                "type": "integer",
                "description": "The number of traces to display in a batch"
              }
            }
          }
        }
      ],
      "result": {
        "name": "array",
        "description": "An array of trace objects that match the given filter",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "The address of the sender"
                  },
                  "callType": {
                    "type": "string",
                    "description": "The type of method such as call, delegatecall, staticcall"
                  },
                  "gas": {
                    "type": "string",
                    "description": "The gas provided by the sender encoded as hexadecimal"
                  },
                  "input": {
                    "type": "string",
                    "description": "The data sent along with the transaction"
                  },
                  "to": {
                    "type": "string",
                    "description": "The address of the receiver"
                  },
                  "value": {
                    "type": "string",
                    "description": "The value sent with this transaction encoded as hexadecimal"
                  }
                },
                "description": "The trace action object containing details of the call"
              },
              "blockHash": {
                "type": "string",
                "description": "The hash of the block containing this transaction"
              },
              "blockNumber": {
                "type": "string",
                "description": "The block number containing this transaction encoded as hexadecimal"
              },
              "result": {
                "type": "object",
                "properties": {
                  "gasUsed": {
                    "type": "string",
                    "description": "The amount of gas used by this specific trace"
                  },
                  "output": {
                    "type": "string",
                    "description": "The value returned by the call, empty if no RETURN was executed"
                  }
                },
                "description": "The execution result object of the trace"
              },
              "subtraces": {
                "type": "integer",
                "description": "The number of subtraces (internal calls) in this trace"
              },
              "traceAddress": {
                "type": "array",
                "items": {},
                "description": "The list showing the nested call structure of this trace"
              },
              "transactionHash": {
                "type": "string",
                "description": "The hash of the transaction"
              },
              "transactionPosition": {
                "type": "integer",
                "description": "The transaction index position within the block"
              },
              "type": {
                "type": "string",
                "description": "The type of trace, such as call or create"
              }
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_filter"
      },
      "examples": [
        {
          "name": "trace_filter example",
          "params": [],
          "result": {
            "name": "trace_filter result",
            "value": [
              {
                "action": {
                  "from": "0x1cc0c65ca5dd6b767338946f2c44c02040744ef5",
                  "callType": "call",
                  "gas": "0x13458",
                  "input": "0xda91254c",
                  "to": "0x5d95a6bad575ff00e12919dfa259e6a3dd50388f",
                  "value": "0x0"
                },
                "blockHash": "0xbe7e72a6208063a9b0fc88090027418939a42e8fba86dd967949291b5e0680a5",
                "blockNumber": 7007717,
                "result": {
                  "gasUsed": "0xd0e",
                  "output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001661726e6f6c642e6368616e40636972636c652e636f6d00000000000000000000"
                },
                "subtraces": 0,
                "traceAddress": [],
                "transactionHash": "0x3901f2145d10aaffd4ae1ec1e74d7f0041416a07dc542d0ae9e3edce0542b51c",
                "transactionPosition": 0,
                "type": "call"
              }
            ]
          }
        }
      ]
    },
    {
      "name": "trace_rawTransaction",
      "summary": "Traces a call to eth_sendRawTransaction without making the call, returning the traces(Supported on Erigon).",
      "description": "Traces a call to eth_sendRawTransaction without making the call, returning the traces(Supported on Erigon).",
      "params": [
        {
          "name": "data",
          "description": "The raw transaction data/string",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "array",
          "description": "The type of trace, which can be one of the following:",
          "required": true,
          "schema": {
            "enum": [
              "vmTrace",
              "trace",
              "stateDiff"
            ]
          }
        }
      ],
      "result": {
        "name": "array",
        "description": "The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "output": {
                "type": "string",
                "description": "The data which is returned as an output encoded in hexadecimal format"
              },
              "stateDiff": {
                "type": "object",
                "description": "It returns the information on altered Ethereum state due to execution of the given transaction"
              },
              "trace": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "action": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "description": "The address of the sender"
                        },
                        "callType": {
                          "type": "string",
                          "description": "The type of method such as call, delegatecall"
                        },
                        "gas": {
                          "type": "string",
                          "description": "The gas provided by the sender, encoded as hexadecimal"
                        },
                        "input": {
                          "type": "string",
                          "description": "The data sent along with the transaction"
                        },
                        "to": {
                          "type": "string",
                          "description": "The address of the receiver"
                        },
                        "value": {
                          "type": "string",
                          "description": "The integer of the value sent with this transaction, encoded as hexadecimal"
                        }
                      },
                      "description": "The action to be performed on the receiver id"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "gasUsed": {
                          "type": "string",
                          "description": "The total used gas by all transactions in this block encoded as hexadecimal"
                        },
                        "output": {
                          "type": "string",
                          "description": "The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes"
                        }
                      },
                      "description": "The integer of the gas price used encoded as hexadecimal"
                    },
                    "subtraces": {
                      "type": "integer",
                      "description": "The traces of contract calls made by the transaction"
                    },
                    "traceAddress": {
                      "type": "array",
                      "items": {},
                      "description": "The list of addresses where the call was executed, the address of the parents, and the order of the current sub call"
                    },
                    "type": {
                      "type": "string",
                      "description": "The value of the method such as call or create"
                    }
                  }
                },
                "description": "It is used to retrieve the basic trace of the given information"
              },
              "vmTrace": {
                "type": "object",
                "description": "It is used to get a full trace of the virtual machine's state during the execution of the given transaction, including for any sub-calls"
              }
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_rawTransaction"
      },
      "examples": [
        {
          "name": "trace_rawTransaction example",
          "params": [
            {
              "name": "data",
              "value": "RAW_TRANSACTION_DATA"
            },
            {
              "name": "array",
              "value": "vmTrace"
            }
          ],
          "result": {
            "name": "trace_rawTransaction result",
            "value": [
              {
                "output": "0x",
                "stateDiff": null,
                "trace": [
                  {
                    "action": {
                      "from": "0x627306090abab3a6e1400e9345bc60c78a8bef57",
                      "callType": "call",
                      "gas": "0x7a120",
                      "input": "0xa9059cbb000000000000000000000000d46e8dd67c5d32be8058bb8eb970870f0724456700000000000000000000000000000000000000000000000000de0b6b3a7640000",
                      "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                      "value": "0x0"
                    },
                    "result": {
                      "gasUsed": "0x51c8",
                      "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
                    },
                    "subtraces": 1,
                    "traceAddress": [],
                    "type": "call"
                  },
                  {
                    "action": {
                      "from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                      "callType": "call",
                      "gas": "0x73e5f",
                      "input": "0x",
                      "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
                      "value": "0x0"
                    },
                    "result": {
                      "gasUsed": "0x0",
                      "output": "0x"
                    },
                    "subtraces": 0,
                    "traceAddress": [
                      0
                    ],
                    "type": "call"
                  }
                ],
                "vmTrace": {
                  "code": "0x608060405260043610610087577c01000000000000000000000000000000000000000000000000000000006000350463095ea7b3811461008c57806318160ddd146100d...",
                  "ops": [
                    {
                      "cost": 3,
                      "ex": {
                        "mem": null,
                        "push": [
                          "0x60"
                        ],
                        "store": null,
                        "used": 16756199
                      },
                      "pc": 0,
                      "sub": null
                    },
                    {
                      "cost": 3,
                      "ex": {
                        "mem": null,
                        "push": [
                          "0x40"
                        ],
                        "store": null,
                        "used": 16756196
                      },
                      "pc": 2,
                      "sub": null
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    },
    {
      "name": "trace_replayBlockTransactions",
      "summary": "Replays all transactions in a block returning the requested traces for each transaction (Supported on Erigon).",
      "description": "Replays all transactions in a block returning the requested traces for each transaction (Supported on Erigon).",
      "params": [
        {
          "name": "blockNumber",
          "description": "The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum and Gnosis",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "array",
          "description": "The type of trace, which can be one of the following:",
          "required": true,
          "schema": {
            "enum": [
              "vmTrace",
              "trace",
              "stateDiff"
            ]
          }
        }
      ],
      "result": {
        "name": "array",
        "description": "The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "output": {
                "type": "string",
                "description": "The data which is returned as an output encoded in hexadecimal format"
              },
              "stateDiff": {
                "type": "object",
                "description": "It returns the information on altered Ethereum state due to execution of the given transaction"
              },
              "trace": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "action": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "description": "The address of the sender"
                        },
                        "callType": {
                          "type": "string",
                          "description": "The type of method such as call, delegatecall"
                        },
                        "gas": {
                          "type": "string",
                          "description": "The gas provided by the sender, encoded as hexadecimal"
                        },
                        "input": {
                          "type": "string",
                          "description": "The data sent along with the transaction"
                        },
                        "to": {
                          "type": "string",
                          "description": "The address of the receiver"
                        },
                        "value": {
                          "type": "string",
                          "description": "The integer of the value sent with this transaction, encoded as hexadecimal"
                        }
                      },
                      "description": "The action to be performed on the receiver id"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "gasUsed": {
                          "type": "string",
                          "description": "The amount of gas used by this specific call, encoded as hexadecimal"
                        },
                        "output": {
                          "type": "string",
                          "description": "The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes"
                        }
                      },
                      "description": "The result object of the trace execution"
                    },
                    "subtraces": {
                      "type": "integer",
                      "description": "The number of subtraces created by this call"
                    },
                    "traceAddress": {
                      "type": "array",
                      "items": {},
                      "description": "The list of addresses where the call was executed, the address of the parents, and the order of the current sub call"
                    },
                    "type": {
                      "type": "string",
                      "description": "The type of trace such as call or create"
                    }
                  }
                },
                "description": "It is used to retrieve the basic trace of the given information"
              },
              "vmTrace": {
                "type": "object",
                "description": "It is used to get a full trace of the virtual machine's state during the execution of the given transaction, including for any sub-calls"
              },
              "transactionHash": {
                "type": "string",
                "description": "The transaction hash"
              }
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_replayBlockTransactions"
      },
      "examples": [
        {
          "name": "trace_replayBlockTransactions example",
          "params": [
            {
              "name": "blockNumber",
              "value": "0x6aede5"
            },
            {
              "name": "array",
              "value": "vmTrace"
            }
          ],
          "result": {
            "name": "trace_replayBlockTransactions result",
            "value": [
              {
                "output": "0x",
                "stateDiff": null,
                "trace": [],
                "vmTrace": null,
                "transactionHash": "0xbaa27fa540f50254c7200cacfb5c725174f96ae3198b653853e1353a9bdc03b2"
              },
              {
                "output": "0x",
                "stateDiff": null,
                "trace": [],
                "vmTrace": null,
                "transactionHash": "0x661466a232b217110b9f9a83534cac4b4bf980078ef08489053af9b50f50bee8"
              }
            ]
          }
        }
      ]
    },
    {
      "name": "trace_replayTransaction",
      "summary": "Replays a transaction, returning the traces (Supported on Erigon).",
      "description": "Replays a transaction, returning the traces (Supported on Erigon).",
      "params": [
        {
          "name": "hash",
          "description": "The hash of a transaction",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "array",
          "description": "The type of trace, which can be one of the following:",
          "required": true,
          "schema": {
            "enum": [
              "vmTrace",
              "trace",
              "stateDiff"
            ]
          }
        }
      ],
      "result": {
        "name": "object",
        "description": "The block trace object with the following fields (all return values are hexadecimal unless otherwise noted):",
        "schema": {
          "type": "object",
          "properties": {
            "output": {
              "type": "string",
              "description": "The data returned as an output encoded in hexadecimal format"
            },
            "stateDiff": {
              "type": "object",
              "description": "The altered Ethereum state due to execution of the transaction, null if no state changes"
            },
            "trace": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "description": "The address of the sender"
                      },
                      "callType": {
                        "type": "string",
                        "description": "The type of call such as call, delegatecall, staticcall"
                      },
                      "gas": {
                        "type": "string",
                        "description": "The gas provided by the sender, encoded as hexadecimal"
                      },
                      "input": {
                        "type": "string",
                        "description": "The data sent along with the call"
                      },
                      "to": {
                        "type": "string",
                        "description": "The address of the receiver"
                      },
                      "value": {
                        "type": "string",
                        "description": "The value sent with this call, encoded as hexadecimal"
                      }
                    },
                    "description": "The action performed during the trace"
                  },
                  "result": {
                    "type": "object",
                    "properties": {
                      "gasUsed": {
                        "type": "string",
                        "description": "The gas used by this specific call, encoded as hexadecimal"
                      },
                      "output": {
                        "type": "string",
                        "description": "The value returned by the contract call or empty bytes if no RETURN was executed"
                      }
                    },
                    "description": "The result of the trace execution"
                  },
                  "subtraces": {
                    "type": "integer",
                    "description": "The number of subtraces created by this call"
                  },
                  "traceAddress": {
                    "type": "array",
                    "items": {},
                    "description": "The list of addresses identifying the position of this call in the trace tree"
                  },
                  "type": {
                    "type": "string",
                    "description": "The type of trace such as call or create"
                  }
                }
              },
              "description": "An array containing the basic trace of the transaction execution"
            },
            "vmTrace": {
              "type": "object",
              "description": "The full trace of the virtual machine's state during execution, null if not requested"
            },
            "transactionHash": {
              "type": "string",
              "description": "The transaction hash corresponding to this trace"
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_replayTransaction"
      },
      "examples": [
        {
          "name": "trace_replayTransaction example",
          "params": [
            {
              "name": "hash",
              "value": "0xcee9ba415d56eedc3bb31ba1c45cdeb1df73c2839cc76104ebf0e855e893177f"
            },
            {
              "name": "array",
              "value": "vmTrace"
            }
          ],
          "result": {
            "name": "trace_replayTransaction result",
            "value": {
              "output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001661726e6f6c642e6368616e40636972636c652e636f6d00000000000000000000",
              "stateDiff": null,
              "trace": [],
              "vmTrace": null
            }
          }
        }
      ]
    },
    {
      "name": "trace_transaction",
      "summary": "Returns all traces of given transaction(Supported on Erigon).",
      "description": "Returns all traces of given transaction(Supported on Erigon).",
      "params": [
        {
          "name": "hash",
          "description": "The hash of a transaction",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "result": {
        "name": "array",
        "description": "The block traces, which have the following fields (all return values are hexadecimal unless otherwise stated):",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "The address of the sender"
                  },
                  "callType": {
                    "type": "string",
                    "description": "The type of call such as call, delegatecall, staticcall"
                  },
                  "gas": {
                    "type": "string",
                    "description": "The gas provided by the sender, encoded as hexadecimal"
                  },
                  "input": {
                    "type": "string",
                    "description": "The data sent along with the transaction"
                  },
                  "to": {
                    "type": "string",
                    "description": "The address of the receiver"
                  },
                  "value": {
                    "type": "string",
                    "description": "The integer of the value sent with this transaction, encoded as hexadecimal"
                  }
                },
                "description": "The action performed during the trace"
              },
              "blockHash": {
                "type": "string",
                "description": "The hash of the block where this transaction was included"
              },
              "blockNumber": {
                "type": "integer",
                "description": "The block number where this transaction was included"
              },
              "result": {
                "type": "object",
                "properties": {
                  "gasUsed": {
                    "type": "string",
                    "description": "The gas used by this call, encoded as hexadecimal"
                  },
                  "output": {
                    "type": "string",
                    "description": "The value returned by the contract call, or empty bytes if no RETURN was executed"
                  }
                },
                "description": "The result of the trace execution"
              },
              "subtraces": {
                "type": "integer",
                "description": "The number of subtraces created by this transaction"
              },
              "traceAddress": {
                "type": "array",
                "items": {},
                "description": "The list of addresses where the call was executed, including parent addresses and the order of the current sub call"
              },
              "transactionHash": {
                "type": "string",
                "description": "The transaction hash"
              },
              "transactionPosition": {
                "type": "integer",
                "description": "The transaction position within the block"
              },
              "type": {
                "type": "string",
                "description": "The type of trace such as call or create"
              }
            }
          }
        }
      },
      "tags": [
        {
          "name": "trace"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/megaeth/trace_transaction"
      },
      "examples": [
        {
          "name": "trace_transaction example",
          "params": [
            {
              "name": "hash",
              "value": "0xcee9ba415d56eedc3bb31ba1c45cdeb1df73c2839cc76104ebf0e855e893177f"
            }
          ],
          "result": {
            "name": "trace_transaction result",
            "value": [
              {
                "action": {
                  "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
                  "callType": "call",
                  "gas": "0xee8b0",
                  "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012174e000000000000000000000000000000000000000000000000000000000659d4f9700000000000000000000000000000000000000000000000000000003949158772dd455b8f43b8a523ba6b51d397263f20e6550ec310b83562f455de04eaa3de900000000000000000000000000000000000000000000000000000000000000010000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c900000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",
                  "to": "0x4200000000000000000000000000000000000015",
                  "value": "0x0"
                },
                "blockHash": "0x69e2ae442adf3bef34165fac8f3602b8cf9d5973fb883804f119286ce96f6eb8",
                "blockNumber": 9009586,
                "result": {
                  "gasUsed": "0xa07d",
                  "output": "0x"
                },
                "subtraces": 1,
                "traceAddress": [],
                "transactionHash": "0xbaa27fa540f50254c7200cacfb5c725174f96ae3198b653853e1353a9bdc03b2",
                "transactionPosition": 0,
                "type": "call"
              },
              {
                "action": {
                  "from": "0x4200000000000000000000000000000000000015",
                  "callType": "delegatecall",
                  "gas": "0xe99f5",
                  "input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012174e000000000000000000000000000000000000000000000000000000000659d4f9700000000000000000000000000000000000000000000000000000003949158772dd455b8f43b8a523ba6b51d397263f20e6550ec310b83562f455de04eaa3de900000000000000000000000000000000000000000000000000000000000000010000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c900000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",
                  "to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",
                  "value": "0x0"
                },
                "blockHash": "0x69e2ae442adf3bef34165fac8f3602b8cf9d5973fb883804f119286ce96f6eb8",
                "blockNumber": 9009586,
                "result": {
                  "gasUsed": "0x8cf4",
                  "output": "0x"
                },
                "subtraces": 0,
                "traceAddress": [
                  0
                ],
                "transactionHash": "0xbaa27fa540f50254c7200cacfb5c725174f96ae3198b653853e1353a9bdc03b2",
                "transactionPosition": 0,
                "type": "call"
              }
            ]
          }
        }
      ]
    }
  ],
  "servers": [
    {
      "name": "Trace API",
      "url": "https://docs-demo.megaeth-mainnet.quiknode.pro"
    }
  ]
}