I am testing the Moralis streaming service and it seems wonderful to me, yesterday I tried the firebase ext and everything is perfect.
What I’m trying to do now is listen to the events of a smart contract on my same nodejs server, and for some reason the data is not decoded, I receive it as follows…
{
confirmed: true,
chainId: '0x61',
streamId: 'e141eac1-27e3-42ba-969a-c741fe22268a',
tag: 'shuffle',
retries: 0,
block: {
number: '27956372',
hash: '0x6a3355b861bed9054f7787f3014c4958f9aa0362074a731ecb2836b776301077',
timestamp: '1678556848'
},
logs: [
{
logIndex: '8',
transactionHash: '0xd2e361f702863964d89cf8d2bcc1c1f35e22866c04802b38c1dfc633ea361163',
address: '0x85d7e4ae3412526fc6f78aeb43936543936ccfb8',
data: '0x0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000ffeecd3004013c08ac95227ba2c22e4331d2e9da00000000000000000000000000000000000000000000000034bc4fdde27c0000',
topic0: '0x93a86c487b77bf92471eb14e91436a107887e1dfd4830179b6d599d97f3f891b',
topic1: null,
topic2: null,
topic3: null
}
],
txs: [],
txsInternal: [],
erc20Transfers: [],
erc20Approvals: [],
nftTokenApprovals: [],
nftApprovals: { ERC721: [], ERC1155: [] },
nftTransfers: [],
nativeBalances: []
}
I have read about it, it is time to decode the data but I see it as an additional step that we do not want to do, is there a chance that Moralis sends the data as it is stored in firebase?
thanks