{
  "name": "Multi-Chain Event Router",
  "nodes": [
    {
      "parameters": {
        "chains": [
          "0x1",
          "0x89",
          "0x2105"
        ],
        "contractAddresses": "0xdAC17F958D2ee523a2206206994597C13D831ec7,0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
        "monitorType": "all",
        "abi": "[]",
        "topic0": "",
        "options": {
          "description": "Multi-chain event monitor"
        }
      },
      "id": "trigger-1",
      "name": "Moralis Streams Trigger",
      "type": "n8n-nodes-evmstream.moralisStreamsTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "credentials": {
        "moralisStreamsApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "rules": [
            {
              "output": 0,
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.eventType }}",
                    "rightValue": "logs",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              }
            },
            {
              "output": 1,
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.eventType }}",
                    "rightValue": "erc20Transfers",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              }
            },
            {
              "output": 2,
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.eventType }}",
                    "rightValue": "nftTransfers",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              }
            },
            {
              "output": 3,
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.eventType }}",
                    "rightValue": "txs",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ]
              }
            }
          ],
          "fallbackOutput": 4
        }
      },
      "id": "switch-1",
      "name": "Route by Event Type",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {},
      "id": "noop-logs",
      "name": "Process Logs",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        750,
        100
      ]
    },
    {
      "parameters": {},
      "id": "noop-erc20",
      "name": "Process ERC-20 Transfers",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        750,
        250
      ]
    },
    {
      "parameters": {},
      "id": "noop-nft",
      "name": "Process NFT Transfers",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        750,
        400
      ]
    },
    {
      "parameters": {},
      "id": "noop-txs",
      "name": "Process Transactions",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        750,
        550
      ]
    },
    {
      "parameters": {},
      "id": "noop-other",
      "name": "Process Other Events",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        750,
        700
      ]
    }
  ],
  "connections": {
    "Moralis Streams Trigger": {
      "main": [
        [
          {
            "node": "Route by Event Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Event Type": {
      "main": [
        [
          {
            "node": "Process Logs",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process ERC-20 Transfers",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process NFT Transfers",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process Transactions",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process Other Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}