Trace

Object schema

The trace object inherits it’s properties from the parity replay transaction object, as specified in the parity API:

Mapping

For some fields, there are multiple encodings available, which are nested as properties on the field. More information on those data types can be found here.

The following is the output of the Elasticsearch mapping for the Trace type:

{
  "blockHash": {
    "type": "keyword",
    "ignore_above": 256
  },
  "blockNumber": {
    "properties": {
      "num": {
        "type": "long"
      },
      "raw": {
        "type": "keyword",
        "ignore_above": 256
      }
    }
  },
  "transactionIndex": {
    "properties": {
      "num": {
        "type": "long"
      },
      "raw": {
        "type": "keyword",
        "ignore_above": 256
      }
    }
  },
  "transactionHash": {
    "type": "keyword",
    "ignore_above": 256
  },
  "timestamp": {
    "type": "date",
    "format": "epoch_second"
  },
  "output": {
    "type": "keyword",
    "ignore_above": 256
  },
  "trace": {
    "type": "nested",
    "properties": {
      "type": {
        "type": "keyword",
        "ignore_above": 256
      },
      "error": {
        "type": "keyword",
        "ignore_above": 256
      },
      "traceAddress": {
        "type": "long"
      },
      "action": {
        "type": "nested",
        "properties": {
          "callType": {
            "type": "keyword",
            "ignore_above": 256
          },
          "init": {
            "type": "keyword",
            "ignore_above": 256
          },
          "balance": {
            "type": "keyword",
            "ignore_above": 256
          },
          "from": {
            "type": "text",
            "fields": {
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "address": {
            "type": "text",
            "fields": {
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "refundAddress": {
            "type": "text",
            "fields": {
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "to": {
            "type": "text",
            "fields": {
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "gas": {
            "properties": {
              "num": {
                "type": "long"
              },
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "input": {
            "type": "keyword",
            "ignore_above": 256
          },
          "value": {
            "properties": {
              "num": {
                "type": "long"
              },
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      },
      "result": {
        "type": "nested",
        "properties": {
          "gasUsed": {
            "properties": {
              "num": {
                "type": "long"
              },
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "address": {
            "type": "text",
            "fields": {
              "raw": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "code": {
            "type": "keyword",
            "ignore_above": 256
          },
          "output": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      }
    }
  }
}