Hedera · Schema

Opcode

Represents a struct/opcode log entry in a trace

Distributed LedgerBlockchainDLTHashgraphTransactionTokensNFTSmart ContractsEnterprise

Properties

Name Type Description
depth integer The current call depth
gas integer The remaining gas
gas_cost integer The cost for executing op
memory arraynull The EVM memory with items in hex
op string The opcode to execute
pc integer The program counter
reason stringnull The revert reason in hex
stack arraynull The EVM stack with items in hex
storage objectnull The storage slots (keys and values in hex) of the current contract which is read from and written to
View JSON Schema on GitHub

JSON Schema

Opcode.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hedera/refs/heads/main/json-schema/Opcode.json",
  "title": "Opcode",
  "description": "Represents a struct/opcode log entry in a trace",
  "type": "object",
  "required": [
    "depth",
    "gas",
    "gas_cost",
    "memory",
    "op",
    "pc",
    "stack",
    "storage"
  ],
  "properties": {
    "depth": {
      "description": "The current call depth",
      "type": "integer",
      "format": "int32"
    },
    "gas": {
      "description": "The remaining gas",
      "type": "integer",
      "format": "int64"
    },
    "gas_cost": {
      "description": "The cost for executing op",
      "type": "integer",
      "format": "int64"
    },
    "memory": {
      "description": "The EVM memory with items in hex",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "format": "binary"
      }
    },
    "op": {
      "description": "The opcode to execute",
      "type": "string"
    },
    "pc": {
      "description": "The program counter",
      "type": "integer",
      "format": "int32"
    },
    "reason": {
      "description": "The revert reason in hex",
      "type": [
        "string",
        "null"
      ],
      "format": "binary"
    },
    "stack": {
      "description": "The EVM stack with items in hex",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "format": "binary"
      }
    },
    "storage": {
      "description": "The storage slots (keys and values in hex) of the current contract which is read from and written to",
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string",
        "format": "binary"
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/Opcode"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.