Iโm using the latest version of the SDK (2.25.4) and I want to use the getWalletHistory method, but it does not exist on the Moralis class. I copied the code straight from the documentation here: https://docs.moralis.io/web3-data-api/evm/reference/wallet-api/get-wallet-history?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&chain=eth&order=DESC
Property 'getWalletHistory' does not exist on type '{ getWalletTokenBalancesPrice: (request: GetWalletTokenBalancesPriceOperationRequest) => Promise<PaginatedResponseV3Adapter<EvmErc20TokenBalanceWithPriceResult, EvmErc20TokenBalanceWithPriceResultJSON>>; getWalletNetWorth: (request: GetWalletNetWorthOperationRequest) => Promise<...>; getWalletActiveChains: (request:...'.ts(2339)
If i ignore the ts warning i get the same error when it actually runs the code.
What do I do?
import Moralis from 'moralis';
try {
await Moralis.start({
apiKey: "APIKEYHERE"
});
const response = await Moralis.EvmApi.wallets.getWalletHistory({
"chain": "0x1",
"order": "DESC",
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045"
});
console.log(response.raw);
} catch (e) {
console.error(e);
}