[Solved] Streams are not sending logs with NFT Transfer topic0 selected

Iā€™m having a weird issue with streams.
I created a stream that listen for a specific amount of wallets and if i narrow down the abi to transfers only and select that Topic0 logs are never sent!

{
   confirmed: true,
   chainId: '0x89',
   abi: [
     {
       anonymous: false,
       inputs: [Array],
       name: 'Transfer',
       type: 'event'
     }
   ],
   streamId: 'bdfc7e43-ab8a-46f9-bca3-918bee02544d',
   tag: 'demo',
   retries: 0,
   block: {
     number: '38545878',
     hash: '0x18ce54bb14de48e562bef37a59cb018c02f738973f965e1944e1611e092ad3f2',
     timestamp: '1674730574'
   },
   logs: [],
   txs: [
     {
       hash: '0x92b06e444510c2e21adb110973e2422326a5c116b4f25173e3ddc5e7af525ea1',
       gas: '77964',
       gasPrice: '49730295831',
       nonce: '7',
       input: '0xf242432a0000000000000000000000003ed7184de131228ba8700afb9a9711164f5d88690000000000000000000000005211063c82d0cd0ab516a063206d50aa919eac755211063c82d0cd0ab516a063206d50aa919eac75000000000000030000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000360c6ebe',
       transactionIndex: '90',
       fromAddress: '0x3ed7184de131228ba8700afb9a9711164f5d8869',
       toAddress: '0x2953399124f0cbb46d2cbacd8a89cf0599974963',
       value: '0',
       type: '2',
       v: '1',
       r: '93169025023428873547986342896056618699788648163598559339733301180286343225460',
       s: '50998416034203505142322580563443222754927220690228080191043392125748427720566',
       receiptCumulativeGasUsed: '17709679',
       receiptGasUsed: '55173',
       receiptContractAddress: null,
       receiptRoot: null,
       receiptStatus: '1'
     }
   ],
   txsInternal: [],
   erc20Transfers: [],
   erc20Approvals: [],
   nftTokenApprovals: [],
   nftApprovals: { ERC721: [], ERC1155: [] },
   nftTransfers: [],
   nativeBalances: []
 }

This is a body response i receive. i need to only listen to Nfts transfers in polygon and ethereum by the nftTransfer array, this is my stream configuration

{
  "demo": false,
  "topic0": [
    "Transfer(address,address,uint256)"
  ],
  "allAddresses": false,
  "includeNativeTxs": true,
  "includeContractLogs": true,
  "includeInternalTxs": false,
  "getNativeBalances": [],
  "triggers": [],
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "from",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "to",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "tokenId",
          "type": "uint256"
        }
      ],
      "name": "Transfer",
      "type": "event"
    }
  ],
  "advancedOptions": null,
  "chainIds": [
    "0x1",
    "0x89"
  ],
  "status": "active",
  "statusMessage": "Stream is active"
}

Ok found out i was only inputting wrong abi, sorry everyone

2 Likes

No worries, how are you finding Moralis services so far?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.