[SOLVED] How to get Stream Events emitted from Base Sepolia contract

Hi!

I’ve created a Base Sepolia Stream to get a specific event emitted when a method is executed through a Safe proposal. I’m currently trying to test the Stream through the UI, specifying both the smart contract and safe multisig addresses but getting “No events found”.

How to reproduce:

Get the ProjectListed event on this Safe transaction emitted by this contract.
The request payload sent to https://api.moralis-streams.com/streams/evm/0x14a33/block/7287374 is:

{
    "tag": "listProject",
    "topic0": [
        "ProjectListed(uint256,uint256,address,bool,string,uint256,uint256[],uint256[])"
    ],
    "allAddresses": false,
    "includeNativeTxs": false,
    "includeContractLogs": true,
    "includeInternalTxs": false,
    "abi": [
        {
            "name": "ProjectListed",
            "type": "event",
            "anonymous": false,
            "inputs": [
                {
                    "type": "uint256",
                    "name": "id",
                    "indexed": true
                },
                {
                    "type": "uint256",
                    "name": "providerId",
                    "indexed": false
                },
                {
                    "type": "address",
                    "name": "providerAddress",
                    "indexed": false
                },
                {
                    "type": "bool",
                    "name": "affiliate",
                    "indexed": false
                },
                {
                    "type": "string",
                    "name": "ipfsHash",
                    "indexed": false
                },
                {
                    "type": "uint256",
                    "name": "bucketId",
                    "indexed": false
                },
                {
                    "type": "uint256[]",
                    "name": "vintageMwhProduced",
                    "indexed": false
                },
                {
                    "type": "uint256[]",
                    "name": "vintageMwhYears",
                    "indexed": false
                }
            ]
        }
    ],
    "advancedOptions": [
        {
            "topic0": "ProjectListed(uint256,uint256,address,bool,string,uint256,uint256[],uint256[])",
            "filter": {},
            "includeNativeTxs": true
        }
    ],
    "addresses": [
        "0x7bf3121b01546a2a6a799b67bbe5ce18d9664941",
        "0xd161ebe1117c2550008366e6dc82dcb0855d5972"
    ]
}

Hi @gabrielstoica

Is this the feature you are testing with? If yes, then it is expected to not work with Base Sepolia chain as UI is not yet updated with this chain.

And also this feature requires some time to work as it is not directly related to the streams API. In the backend, it uses web3 data API to fetch the block data. So it will not work with base sepolia yet.

I hope I understood the issue correctly, let me know I missed something.

Hi @johnversus,

Yes, you’re right. I’m trying to test it through the “Test Your Stream” section. I’ve checked the request on the UI and it’s actually using the Base Sepolia network but there’s no result for it.

On another note, what’s the best option to test a stream on the Base Sepolia?

Thanks!

You can try making a new transaction on Sepolia to trigger ProjectListed event. If it works you will receive webhook data at your webhook URL.

Thank you! Manually creating new transactions can be time-consuming, especially for complex processes. When do you estimate that the “Test Your Stream” feature or at least the API will be ready?

Looks like we are already working on it. It should be available within next week along with the updated UI. :raised_hands:

Hi @gabrielstoica

The update is live now. Your test should work as expected