Blockdaemon · Schema

Rule

BlockchainWeb3StakingValidatorCustodyMPCWalletsNodeRPCDeFiIndexerTokenizationInstitutionalCryptocurrencyEthereum

Properties

Name Type Description
id string
name string
description string
protocol string
network string
type string
isActive boolean
safeDistance integer
safeTimeout integer
condition_type string
condition object
target string
template object
created_at string
updated_at string
View JSON Schema on GitHub

JSON Schema

blockdaemon-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blockdaemon/main/json-schema/blockdaemon-rule-schema.json",
  "title": "Rule",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blockdaemon-event-streaming-api-openapi.yml#/components/schemas/Rule",
  "type": "object",
  "required": [
    "name",
    "protocol",
    "network",
    "type",
    "target",
    "condition_type",
    "condition"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "x-go-type": "myuuid.UUID",
      "x-go-type-import": {
        "name": "myuuid",
        "path": "github.com/google/uuid"
      }
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "protocol": {
      "type": "string"
    },
    "network": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "isActive": {
      "type": "boolean"
    },
    "safeDistance": {
      "type": "integer"
    },
    "safeTimeout": {
      "type": "integer"
    },
    "condition_type": {
      "type": "string",
      "default": "antlr",
      "enum": [
        "antlr",
        "match_var"
      ]
    },
    "condition": {
      "anyOf": [
        {
          "$ref": "#/$defs/MatchVars"
        },
        {
          "$ref": "#/$defs/Antlr"
        }
      ]
    },
    "target": {
      "type": "string",
      "format": "uuid",
      "x-go-type": "myuuid.UUID",
      "x-go-type-import": {
        "name": "myuuid",
        "path": "github.com/google/uuid"
      }
    },
    "template": {
      "$ref": "#/$defs/RuleTemplateRef"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Antlr": {
      "type": "string",
      "description": "A rule expression to define filtering or matching logic. For example, `height > 0` filters out items where the height is not greater than zero."
    },
    "ID": {
      "description": "An ID representing a specific template.",
      "type": "string",
      "format": "uuid",
      "x-go-type": "myuuid.UUID",
      "x-go-type-import": {
        "name": "myuuid",
        "path": "github.com/google/uuid"
      }
    },
    "MatchVar": {
      "type": "object",
      "description": "Represents a single variable used in a matching rule. It includes the variable's type and its ID.",
      "required": [
        "variable_type",
        "variable_id"
      ],
      "properties": {
        "variable_type": {
          "type": "string"
        },
        "variable_id": {
          "type": "string",
          "format": "uuid",
          "x-go-type": "myuuid.UUID",
          "x-go-type-import": {
            "name": "myuuid",
            "path": "github.com/google/uuid"
          }
        }
      }
    },
    "MatchVars": {
      "type": "array",
      "description": "A list of variables used in a matching rule. Each item in the array must reference a valid MatchVar object.",
      "items": {
        "$ref": "#/$defs/MatchVar"
      }
    },
    "PreDefinedTemplate": {
      "title": "Predefined Template",
      "description": "Available predefined templates that can be used for event formatting",
      "type": "string",
      "enum": [
        "UNIFIED_V1",
        "UNIFIED_V1_RAW",
        "ALL_DATA",
        "INPUT_EMAIL",
        "OUTPUT_EMAIL",
        "TX_EMAIL"
      ]
    },
    "RuleTemplateRef": {
      "anyOf": [
        {
          "$ref": "#/$defs/ID"
        },
        {
          "$ref": "#/$defs/PreDefinedTemplate"
        }
      ]
    }
  }
}

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/blockdaemon-rule"
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.