If I using
got error:
I still Stream is OK but Cloud function not working
Stream ok:
Moralis.start({
apiKey: process.env.NEXT_PUBLIC_MORALIS_STREAM_API_KEY,
});
const chain = EvmChain.create(process.env.NEXT_PUBLIC_MAIN_NET_CHAINID);
const stream = {
chains: [chain], // list of blockchains to monitor
description: process.env.WEBHOOK_STREAM_DESCRIPTION, // your description
tag: process.env.WEBHOOK_STREAM_TAG, // give it a tag
includeNativeTxs: true,
includeContractLogs: true,
webhookUrl: process.env.WEBHOOK_STREAM_URL + '/api/webhook', // webhook url to receive events,
};
const newStream = await Moralis.Streams.add(stream);
const {id} = newStream.toJSON(); // { id: 'YOUR_STREAM_ID', ...newStream }
this syntax is for moralis v2 SDK, try to install only moralis v1 SDK in a separate environment
I init Parse SDK
Parse.initialize(process.env.NEXT_PUBLIC_MORALIS_APPLICATION_ID);
Parse.serverURL = process.env.NEXT_PUBLIC_MORALIS_SERVER_URL;
const aa = await Parse.Cloud.run('Hello');
Still error lol. I donβt know why ?
Iβm not sure of the syntax with Parse SDK, it should work, what is the error that you got?
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.