Hello
Another quick question.
I want to run the transactions of the current user that is connected via MetaMask. In the documentation it says the address is optional
This is my code:
getTransactions = async () => {
if(document.querySelector('#get-transactions-link') !=null){
const transactions = await Moralis.Web3API.account.getTransactions();
console.log(transactions);
}}
I get this error
main.js:38 Uncaught (in promise)
{code: 141, error: 'required param address not provided'}
code: 141
error: "required param address not provided"
[[Prototype]]: Object
How can I provide the required param “address” if the user is already signed in via metamask? I tried
const transactions = await Moralis.Web3API.account.getTransactions(Moralis.User.current);
Thanks