Moralis Streams streaming events that are not selected

So I am using two streams right now, one to monitor the ListingRemoved events and the other stream to monitor ListingAdded events. The issue is that the stream that is supposed to only listen to ListingRemoved events is also listening to ListingAdded events and the other stream is not sending any events. I copied the ABI into both streams and selected the appropriate topics to listen to. Both streams are using the same webhook url. What I want is to have each stream to send the appropriate events one for the ListingRemoved events and the other ListingAdded events for a given smart contract

ListingAdded Stream Settings

{
"id": "901c459c-8ed6-4e0b-b461-a6b2e6d7d169",
"webhookUrl": "https://eaa8-2001-818-db47-c300-2a41-f979-2e2c-78c2.ngrok.io/webhooks/moralis_marketplace",
"description": "Demo stream",
"tag": "ListingAdded",
"demo": false,
"topic0": [
"ListingAdded(uint256,address,address,(uint256,address,address,uint256,uint256,uint256,uint256,address,uint256,uint256,uint8,uint8))"
],
"allAddresses": false,
"includeNativeTxs": false,
"includeContractLogs": true,
"includeInternalTxs": true,
"getNativeBalances": [],
"triggers": [],
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "timeBuffer",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "bidBufferBps",
"type": "uint256"
}
],
"name": "AuctionBuffersUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "listingId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "closer",
"type": "address"
},
{
"indexed": true,
"internalType": "bool",
"name": "cancelled",
"type": "bool"
},
{
"indexed": false,
"internalType": "address",
"name": "auctionCreator",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "winningBidder",
"type": "address"
}
],
"name": "AuctionClosed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "listingId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "assetContract",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "lister",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "listingId",
"type": "uint256"
},
{
"internalType": "address",
"name": "tokenOwner",
"type": "address"
},
{
"internalType": "address",
"name": "assetContract",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
},
{
"internalType": "address",
"name": "currency",
"type": "address"
},
{
"internalType": "uint256",
"name": "reservePricePerToken",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "buyoutPricePerToken",
"type": "uint256"
},
{
"internalType": "enum IMarketplace.TokenType",
"name": "tokenType",
"type": "uint8"
},
{
"internalType": "enum IMarketplace.ListingType",
"name": "listingType",
"type": "uint8"
}
],
"indexed": false,
"internalType": "struct IMarketplace.Listing",
"name": "listing",
"type": "tuple"
}
],
"name": "ListingAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "listingId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "listingCreator",
"type": "address"
}
],
"name": "ListingRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "listingId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "listingCreator",
"type": "address"
}
],
"name": "ListingUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "listingId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "offeror",
"type": "address"
},
{
"indexed": true,
"internalType": "enum IMarketplace.ListingType",
"name": "listingType",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint256",
"name": "quantityWanted",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalOfferAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "currency",
"type": "address"
}
],
"name": "NewOffer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "listingId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "assetContract",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "lister",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "buyer",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "quantityBought",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalPricePaid",
"type": "uint256"
}
],
"name": "NewSale",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "platformFeeRecipient",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "platformFeeBps",
"type": "uint256"
}
],
"name": "PlatformFeeInfoUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
}
],
"advancedOptions": null,
"chainIds": [
"0x5"
],
"status": "active",
"statusMessage": "Stream is active"
}

ListingRemoved Stream Settings

{
  "id": "d2c119cc-32a0-48e8-9dab-5b5b57b9b116",
  "webhookUrl": "https://eaa8-2001-818-db47-c300-2a41-f979-2e2c-78c2.ngrok.io/webhooks/moralis_marketplace",
  "description": "Demo stream marketplace",
  "tag": "ListingRemoved",
  "demo": false,
  "topic0": [
    "ListingRemoved(uint256,address)"
  ],
  "allAddresses": false,
  "includeNativeTxs": true,
  "includeContractLogs": true,
  "includeInternalTxs": true,
  "getNativeBalances": [],
  "triggers": [],
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "timeBuffer",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "bidBufferBps",
          "type": "uint256"
        }
      ],
      "name": "AuctionBuffersUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "listingId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "closer",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "bool",
          "name": "cancelled",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "auctionCreator",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "winningBidder",
          "type": "address"
        }
      ],
      "name": "AuctionClosed",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "listingId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "assetContract",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "lister",
          "type": "address"
        },
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "listingId",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "tokenOwner",
              "type": "address"
            },
            {
              "internalType": "address",
              "name": "assetContract",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "tokenId",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "startTime",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "endTime",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "quantity",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "currency",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "reservePricePerToken",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "buyoutPricePerToken",
              "type": "uint256"
            },
            {
              "internalType": "enum IMarketplace.TokenType",
              "name": "tokenType",
              "type": "uint8"
            },
            {
              "internalType": "enum IMarketplace.ListingType",
              "name": "listingType",
              "type": "uint8"
            }
          ],
          "indexed": false,
          "internalType": "struct IMarketplace.Listing",
          "name": "listing",
          "type": "tuple"
        }
      ],
      "name": "ListingAdded",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "listingId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "listingCreator",
          "type": "address"
        }
      ],
      "name": "ListingRemoved",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "listingId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "listingCreator",
          "type": "address"
        }
      ],
      "name": "ListingUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "listingId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "offeror",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "enum IMarketplace.ListingType",
          "name": "listingType",
          "type": "uint8"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "quantityWanted",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "totalOfferAmount",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "currency",
          "type": "address"
        }
      ],
      "name": "NewOffer",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "listingId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "assetContract",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "lister",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "buyer",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "quantityBought",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "totalPricePaid",
          "type": "uint256"
        }
      ],
      "name": "NewSale",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "platformFeeRecipient",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "platformFeeBps",
          "type": "uint256"
        }
      ],
      "name": "PlatformFeeInfoUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "previousAdminRole",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "newAdminRole",
          "type": "bytes32"
        }
      ],
      "name": "RoleAdminChanged",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "account",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "sender",
          "type": "address"
        }
      ],
      "name": "RoleGranted",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "account",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "sender",
          "type": "address"
        }
      ],
      "name": "RoleRevoked",
      "type": "event"
    }
  ],
  "advancedOptions": null,
  "chainIds": [
    "0x5"
  ],
  "status": "active",
  "statusMessage": "Stream is active"
}
1 Like

Hi,
Can you give examples of two stream events that you received, one for each event?

1 Like

Yes

Listing Removed Event

{"confirmed"=>true, "chainId"=>"0x5", "abi"=>[{"anonymous"=>false, "inputs"=>[{"indexed"=>false, "internalType"=>"uint256", "name"=>"timeBuffer", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"bidBufferBps", "type"=>"uint256"}], "name"=>"AuctionBuffersUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"closer", "type"=>"address"}, {"indexed"=>true, "internalType"=>"bool", "name"=>"cancelled", "type"=>"bool"}, {"indexed"=>false, "internalType"=>"address", "name"=>"auctionCreator", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"winningBidder", "type"=>"address"}], "name"=>"AuctionClosed", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"components"=>[{"internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"tokenOwner", "type"=>"address"}, {"internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"tokenId", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"startTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"endTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"quantity", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"currency", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"reservePricePerToken", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"buyoutPricePerToken", "type"=>"uint256"}, {"internalType"=>"enum IMarketplace.TokenType", "name"=>"tokenType", "type"=>"uint8"}, {"internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}], "indexed"=>false, "internalType"=>"struct IMarketplace.Listing", "name"=>"listing", "type"=>"tuple"}], "name"=>"ListingAdded", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingRemoved", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"offeror", "type"=>"address"}, {"indexed"=>true, "internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityWanted", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalOfferAmount", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"address", "name"=>"currency", "type"=>"address"}], "name"=>"NewOffer", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"buyer", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityBought", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalPricePaid", "type"=>"uint256"}], "name"=>"NewSale", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"address", "name"=>"platformFeeRecipient", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"platformFeeBps", "type"=>"uint256"}], "name"=>"PlatformFeeInfoUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"previousAdminRole", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"newAdminRole", "type"=>"bytes32"}], "name"=>"RoleAdminChanged", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleGranted", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleRevoked", "type"=>"event"}], "streamId"=>"d2c119cc-32a0-48e8-9dab-5b5b57b9b116", "tag"=>"ListingRemoved", "retries"=>0, "block"=>{"number"=>"8455536", "hash"=>"0xd2a73a94b845269d03960d02bba19dd7901d2fe4afd3345a02d89b0ac8e9d41a", "timestamp"=>"1675849596"}, "logs"=>[{"logIndex"=>"16", "transactionHash"=>"0xa3b09a8de18f4c85f7eee52c03f0605f49641e729a7713ef1889a5f21ba0ad7b", "address"=>"0x8f0f103346150423c8b884aee040cdd4d2b477b4", "data"=>"[FILTERED]", "topic0"=>"0x58b0852506006c4be6c7ae72afcd195d9e64d7f5d8947905e914b778e47b7cf3", "topic1"=>"0x0000000000000000000000000000000000000000000000000000000000000036", "topic2"=>"0x0000000000000000000000006954265e6e9c3ed83e1fb4033a68c666cd64340a", "topic3"=>nil}], "txs"=>[{"hash"=>"0xa3b09a8de18f4c85f7eee52c03f0605f49641e729a7713ef1889a5f21ba0ad7b", "gas"=>"85663", "gasPrice"=>"1503143817", "nonce"=>"142", "input"=>"0x7506c84a0000000000000000000000000000000000000000000000000000000000000036", "transactionIndex"=>"9", "fromAddress"=>"0x6954265e6e9c3ed83e1fb4033a68c666cd64340a", "toAddress"=>"0x8f0f103346150423c8b884aee040cdd4d2b477b4", "value"=>"0", "type"=>"2", "v"=>"0", "r"=>"28564494580990559332221464104086294348859569906195964840776800903965594514184", "s"=>"34955645972748242742609668252231617320942228677396188478219093957764116563210", "receiptCumulativeGasUsed"=>"5772316", "receiptGasUsed"=>"67785", "receiptContractAddress"=>nil, "receiptRoot"=>nil, "receiptStatus"=>"1"}], "txsInternal"=>[], "erc20Transfers"=>[], "erc20Approvals"=>[], "nftTokenApprovals"=>"[FILTERED]", "nftApprovals"=>{"ERC721"=>[], "ERC1155"=>[]}, "nftTransfers"=>[], "nativeBalances"=>[], "moralis_marketplace"=>{"confirmed"=>true, "chainId"=>"0x5", "abi"=>[{"anonymous"=>false, "inputs"=>[{"indexed"=>false, "internalType"=>"uint256", "name"=>"timeBuffer", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"bidBufferBps", "type"=>"uint256"}], "name"=>"AuctionBuffersUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"closer", "type"=>"address"}, {"indexed"=>true, "internalType"=>"bool", "name"=>"cancelled", "type"=>"bool"}, {"indexed"=>false, "internalType"=>"address", "name"=>"auctionCreator", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"winningBidder", "type"=>"address"}], "name"=>"AuctionClosed", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"components"=>[{"internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"tokenOwner", "type"=>"address"}, {"internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"tokenId", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"startTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"endTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"quantity", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"currency", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"reservePricePerToken", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"buyoutPricePerToken", "type"=>"uint256"}, {"internalType"=>"enum IMarketplace.TokenType", "name"=>"tokenType", "type"=>"uint8"}, {"internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}], "indexed"=>false, "internalType"=>"struct IMarketplace.Listing", "name"=>"listing", "type"=>"tuple"}], "name"=>"ListingAdded", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingRemoved", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"offeror", "type"=>"address"}, {"indexed"=>true, "internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityWanted", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalOfferAmount", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"address", "name"=>"currency", "type"=>"address"}], "name"=>"NewOffer", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"buyer", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityBought", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalPricePaid", "type"=>"uint256"}], "name"=>"NewSale", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"address", "name"=>"platformFeeRecipient", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"platformFeeBps", "type"=>"uint256"}], "name"=>"PlatformFeeInfoUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"previousAdminRole", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"newAdminRole", "type"=>"bytes32"}], "name"=>"RoleAdminChanged", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleGranted", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleRevoked", "type"=>"event"}], "streamId"=>"d2c119cc-32a0-48e8-9dab-5b5b57b9b116", "tag"=>"ListingRemoved", "retries"=>0, "block"=>{"number"=>"8455536", "hash"=>"0xd2a73a94b845269d03960d02bba19dd7901d2fe4afd3345a02d89b0ac8e9d41a", "timestamp"=>"1675849596"}, "logs"=>[{"logIndex"=>"16", "transactionHash"=>"0xa3b09a8de18f4c85f7eee52c03f0605f49641e729a7713ef1889a5f21ba0ad7b", "address"=>"0x8f0f103346150423c8b884aee040cdd4d2b477b4", "data"=>"[FILTERED]", "topic0"=>"0x58b0852506006c4be6c7ae72afcd195d9e64d7f5d8947905e914b778e47b7cf3", "topic1"=>"0x0000000000000000000000000000000000000000000000000000000000000036", "topic2"=>"0x0000000000000000000000006954265e6e9c3ed83e1fb4033a68c666cd64340a", "topic3"=>nil}], "txs"=>[{"hash"=>"0xa3b09a8de18f4c85f7eee52c03f0605f49641e729a7713ef1889a5f21ba0ad7b", "gas"=>"85663", "gasPrice"=>"1503143817", "nonce"=>"142", "input"=>"0x7506c84a0000000000000000000000000000000000000000000000000000000000000036", "transactionIndex"=>"9", "fromAddress"=>"0x6954265e6e9c3ed83e1fb4033a68c666cd64340a", "toAddress"=>"0x8f0f103346150423c8b884aee040cdd4d2b477b4", "value"=>"0", "type"=>"2", "v"=>"0", "r"=>"28564494580990559332221464104086294348859569906195964840776800903965594514184", "s"=>"34955645972748242742609668252231617320942228677396188478219093957764116563210", "receiptCumulativeGasUsed"=>"5772316", "receiptGasUsed"=>"67785", "receiptContractAddress"=>nil, "receiptRoot"=>nil, "receiptStatus"=>"1"}], "txsInternal"=>[], "erc20Transfers"=>[], "erc20Approvals"=>[], "nftTokenApprovals"=>"[FILTERED]", "nftApprovals"=>{"ERC721"=>[], "ERC1155"=>[]}, "nftTransfers"=>[], "nativeBalances"=>[]}}

Listing Added Event

{"confirmed"=>true, "chainId"=>"0x5", "abi"=>[{"anonymous"=>false, "inputs"=>[{"indexed"=>false, "internalType"=>"uint256", "name"=>"timeBuffer", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"bidBufferBps", "type"=>"uint256"}], "name"=>"AuctionBuffersUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"closer", "type"=>"address"}, {"indexed"=>true, "internalType"=>"bool", "name"=>"cancelled", "type"=>"bool"}, {"indexed"=>false, "internalType"=>"address", "name"=>"auctionCreator", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"winningBidder", "type"=>"address"}], "name"=>"AuctionClosed", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"components"=>[{"internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"tokenOwner", "type"=>"address"}, {"internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"tokenId", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"startTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"endTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"quantity", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"currency", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"reservePricePerToken", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"buyoutPricePerToken", "type"=>"uint256"}, {"internalType"=>"enum IMarketplace.TokenType", "name"=>"tokenType", "type"=>"uint8"}, {"internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}], "indexed"=>false, "internalType"=>"struct IMarketplace.Listing", "name"=>"listing", "type"=>"tuple"}], "name"=>"ListingAdded", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingRemoved", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"offeror", "type"=>"address"}, {"indexed"=>true, "internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityWanted", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalOfferAmount", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"address", "name"=>"currency", "type"=>"address"}], "name"=>"NewOffer", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"buyer", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityBought", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalPricePaid", "type"=>"uint256"}], "name"=>"NewSale", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"address", "name"=>"platformFeeRecipient", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"platformFeeBps", "type"=>"uint256"}], "name"=>"PlatformFeeInfoUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"previousAdminRole", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"newAdminRole", "type"=>"bytes32"}], "name"=>"RoleAdminChanged", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleGranted", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleRevoked", "type"=>"event"}], "streamId"=>"d2c119cc-32a0-48e8-9dab-5b5b57b9b116", "tag"=>"ListingRemoved", "retries"=>0, "block"=>{"number"=>"8455565", "hash"=>"0xf88ed266421e8d1165f650920b85693673d823af835ecdf17ec2b97686cdfd76", "timestamp"=>"1675850040"}, "logs"=>[], "txs"=>[{"hash"=>"0x24199cbfa788dc5877119d015df8aeaee9864b52bf6e942e71206e967139170b", "gas"=>"500000", "gasPrice"=>"1506624896", "nonce"=>"143", "input"=>"0x296f4e1600000000000000000000000021f6ecd9c885db3201ccbc897685e5d8a716c7bd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063e3711400000000000000000000000000000000000000000000000000000000bbf81e000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000000", "transactionIndex"=>"18", "fromAddress"=>"0x6954265e6e9c3ed83e1fb4033a68c666cd64340a", "toAddress"=>"0x8f0f103346150423c8b884aee040cdd4d2b477b4", "value"=>"0", "type"=>"2", "v"=>"0", "r"=>"28202134475904518508064325106757467734804262500243857366403930781971713765803", "s"=>"48503984216868235138154937639536441358418848071876514822214650200552488943998", "receiptCumulativeGasUsed"=>"5244104", "receiptGasUsed"=>"289277", "receiptContractAddress"=>nil, "receiptRoot"=>nil, "receiptStatus"=>"1"}], "txsInternal"=>[], "erc20Transfers"=>[], "erc20Approvals"=>[], "nftTokenApprovals"=>"[FILTERED]", "nftApprovals"=>{"ERC721"=>[], "ERC1155"=>[]}, "nftTransfers"=>[], "nativeBalances"=>[], "moralis_marketplace"=>{"confirmed"=>true, "chainId"=>"0x5", "abi"=>[{"anonymous"=>false, "inputs"=>[{"indexed"=>false, "internalType"=>"uint256", "name"=>"timeBuffer", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"bidBufferBps", "type"=>"uint256"}], "name"=>"AuctionBuffersUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"closer", "type"=>"address"}, {"indexed"=>true, "internalType"=>"bool", "name"=>"cancelled", "type"=>"bool"}, {"indexed"=>false, "internalType"=>"address", "name"=>"auctionCreator", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"winningBidder", "type"=>"address"}], "name"=>"AuctionClosed", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"components"=>[{"internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"tokenOwner", "type"=>"address"}, {"internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"tokenId", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"startTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"endTime", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"quantity", "type"=>"uint256"}, {"internalType"=>"address", "name"=>"currency", "type"=>"address"}, {"internalType"=>"uint256", "name"=>"reservePricePerToken", "type"=>"uint256"}, {"internalType"=>"uint256", "name"=>"buyoutPricePerToken", "type"=>"uint256"}, {"internalType"=>"enum IMarketplace.TokenType", "name"=>"tokenType", "type"=>"uint8"}, {"internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}], "indexed"=>false, "internalType"=>"struct IMarketplace.Listing", "name"=>"listing", "type"=>"tuple"}], "name"=>"ListingAdded", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingRemoved", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"listingCreator", "type"=>"address"}], "name"=>"ListingUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"offeror", "type"=>"address"}, {"indexed"=>true, "internalType"=>"enum IMarketplace.ListingType", "name"=>"listingType", "type"=>"uint8"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityWanted", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalOfferAmount", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"address", "name"=>"currency", "type"=>"address"}], "name"=>"NewOffer", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"uint256", "name"=>"listingId", "type"=>"uint256"}, {"indexed"=>true, "internalType"=>"address", "name"=>"assetContract", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"lister", "type"=>"address"}, {"indexed"=>false, "internalType"=>"address", "name"=>"buyer", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"quantityBought", "type"=>"uint256"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"totalPricePaid", "type"=>"uint256"}], "name"=>"NewSale", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"address", "name"=>"platformFeeRecipient", "type"=>"address"}, {"indexed"=>false, "internalType"=>"uint256", "name"=>"platformFeeBps", "type"=>"uint256"}], "name"=>"PlatformFeeInfoUpdated", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"previousAdminRole", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"bytes32", "name"=>"newAdminRole", "type"=>"bytes32"}], "name"=>"RoleAdminChanged", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleGranted", "type"=>"event"}, {"anonymous"=>false, "inputs"=>[{"indexed"=>true, "internalType"=>"bytes32", "name"=>"role", "type"=>"bytes32"}, {"indexed"=>true, "internalType"=>"address", "name"=>"account", "type"=>"address"}, {"indexed"=>true, "internalType"=>"address", "name"=>"sender", "type"=>"address"}], "name"=>"RoleRevoked", "type"=>"event"}], "streamId"=>"d2c119cc-32a0-48e8-9dab-5b5b57b9b116", "tag"=>"ListingRemoved", "retries"=>0, "block"=>{"number"=>"8455565", "hash"=>"0xf88ed266421e8d1165f650920b85693673d823af835ecdf17ec2b97686cdfd76", "timestamp"=>"1675850040"}, "logs"=>[], "txs"=>[{"hash"=>"0x24199cbfa788dc5877119d015df8aeaee9864b52bf6e942e71206e967139170b", "gas"=>"500000", "gasPrice"=>"1506624896", "nonce"=>"143", "input"=>"0x296f4e1600000000000000000000000021f6ecd9c885db3201ccbc897685e5d8a716c7bd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063e3711400000000000000000000000000000000000000000000000000000000bbf81e000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000000000", "transactionIndex"=>"18", "fromAddress"=>"0x6954265e6e9c3ed83e1fb4033a68c666cd64340a", "toAddress"=>"0x8f0f103346150423c8b884aee040cdd4d2b477b4", "value"=>"0", "type"=>"2", "v"=>"0", "r"=>"28202134475904518508064325106757467734804262500243857366403930781971713765803", "s"=>"48503984216868235138154937639536441358418848071876514822214650200552488943998", "receiptCumulativeGasUsed"=>"5244104", "receiptGasUsed"=>"289277", "receiptContractAddress"=>nil, "receiptRoot"=>nil, "receiptStatus"=>"1"}], "txsInternal"=>[], "erc20Transfers"=>[], "erc20Approvals"=>[], "nftTokenApprovals"=>"[FILTERED]", "nftApprovals"=>{"ERC721"=>[], "ERC1155"=>[]}, "nftTransfers"=>[], "nativeBalances"=>[]}}```

it looks like both webhook requests are for the second stream because first webhook matched the event and the second webhook request matched the to address and not the event

are you sure the the first stream config works as expected?

I have the same problem as of the moment. Is this solved?

1 Like

this solved-moralis-stream-notifies-me-on-every-topic-not-just-specified-one/24715 solved my problem

2 Likes