How to enable internal transactions for Moralis.EvmApi.transaction.getWalletTransactions using the backend.
I am trying to “include”: “internal_transactions”, I am using the backend to fetch transaction data as follows.
I get an error
Something went wrong Moralis SDK Error: [C0005] Request contains unknown parameter: internal. This operation supports the following parameters: address, chain, fromBlock, toBlock, fromDate, toDate, cursor, limit, disableTotal
app.get("/gettransactions", async (req, res) => {
try {
const { query } = req;
const response = await Moralis.EvmApi.transaction.getWalletTransactionsVerbose({
chain: "0x1",
address: query.contractAddress,
include: "internal_transactions",
limit: 10
});
console.log(response); // Added console log to display response
return res.status(200).json(response.result);
} catch (e) {
console.log(`Something went wrong ${e}`);
return res.status(400).json();
}
});