Monitor 0x OtcOrderFilled events using stream

Hi, I need to track OtcOrderFilled events from 0x exchange smart contract with filter for maker field.

Below my setup:
address for check: 0xdef1c0ded9bec7f1a1670819833240f027b25eff
network: polygon
stream options: contract interaction
abi:

[
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "bytes32",
        "name": "orderHash",
        "type": "bytes32"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "maker",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "taker",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "makerToken",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "takerToken",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint128",
        "name": "makerTokenFilledAmount",
        "type": "uint128"
      },
      {
        "indexed": false,
        "internalType": "uint128",
        "name": "takerTokenFilledAmount",
        "type": "uint128"
      }
    ],
    "name": "OtcOrderFilled",
    "type": "event"
  }
]

filter: maker equal 0xDbBF45cd833142Ec46Dd71427346FbF5C8cd84B6

and there was a transaction (https://polygonscan.com/tx/0x47290af6a111ff5246e5a7fb02bcb158ceeabc858713fc690bd807ff47b81a72#eventlog) that must be match by parameters but moralis doesn’t send me any webhook( what must be wrong?

Hello, try to use lowercase addresses in the filter

Yes, this works. Suggest you to fix it and handle cases when parameters are addresses and has difference only in case.

1 Like