This is not entirely true, but, partly you are right. I found out this by the example of this record:
{
"confirmed": true,
"chainId": "0x38",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "pair",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PairCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount0",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount1",
"type": "uint256"
}
],
"name": "Mint",
"type": "event"
}
],
"streamId": "b8293b3c-05ae-4b01-b46d-2daf32afbaa8",
"tag": "bsc mainnet, eth mainnet",
"retries": 0,
"block": {
"number": "23368716",
"hash": "0x333f6dc7901b331e0c4be0ec20ec945c40b361d91b21f8293b35c4f27af10e79",
"timestamp": "1669405037"
},
"logs": [
{
"logIndex": "71",
"transactionHash": "0xd3608293c19c00182cfc63c14eb57cae4a81ce6019baefa39bd3d3391cf86519",
"address": "0xb07956e0372ef2be02bea1e46ff0a984deb13b49",
"data": "0x00000000000000000000000000000000000000000000000551369210a676941100000000000000000000000000000000000000000000000821ab0d4414980000",
"topic0": "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
"topic1": "0x00000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e",
"topic2": null,
"topic3": null
},
{
"logIndex": "113",
"transactionHash": "0x7cabf4bc90124fdd6213b8beb80c8a8a814ba4b3e584ae632709e1fed632b620",
"address": "0xca143ce32fe78f1f7019d7d551a6402fc5350c73",
"data": "0x000000000000000000000000353ccf1a92f07e1336626fe08e9cab0b2ea6a7270000000000000000000000000000000000000000000000000000000000120f7a",
"topic0": "0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9",
"topic1": "0x0000000000000000000000002df03f1e6661f496a8daa2c22a58f83e7b255790",
"topic2": "0x000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"topic3": null
},
{
"logIndex": "121",
"transactionHash": "0x7cabf4bc90124fdd6213b8beb80c8a8a814ba4b3e584ae632709e1fed632b620",
"address": "0x353ccf1a92f07e1336626fe08e9cab0b2ea6a727",
"data": "0x0000000000000000000000000000000000000003c95a2f0b4856475fe000000000000000000000000000000000000000000000000000000014d1120d7b160000",
"topic0": "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
"topic1": "0x00000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e",
"topic2": null,
"topic3": null
},
{
"logIndex": "145",
"transactionHash": "0x8ffeb8f24cf3f824b962ebb0d6566f9de485292c270faa28fce4795e9bf28ea3",
"address": "0x35182c82717cfffd63bf53990721517794b7a314",
"data": "0x00000000000000000000000000000000000000000000000d8d726b7177a8000000000000000000000000000000000000000000000000000000fe1fa410dfeb01",
"topic0": "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
"topic1": "0x00000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024e",
"topic2": null,
"topic3": null
}
],
"txs": [],
"txsInternal": [],
"erc20Transfers": [],
"erc20Approvals": [],
"nftApprovals": {
"ERC1155": [],
"ERC721": []
},
"nftTransfers": []
}
When in the JSON.logs[i] in the data has sender / amount0 / amount1 - that is we get the Mint Event, then the JSON.logs[i].address has pair address and when in the data there is pair / token0 / token1 - that is we get the PairCreted Event, then the JSON.logs[i].address has Factory Address.
I hope this information will help other forum participants.
Thanks.