Im having a issue very the getTransactions function in moralis docs

this is my get transactions function code:

getTransactions = async () => {

const options = { chain: "ropsten", address: "0x6b0F5fFC3AEa8E96171846cE10f5d1047f4bA2B2" };

const transactions = await Moralis.Web3API.account.getTransactions(options);



console.log(transactions);

console.log(user.get('ethAddress'))

}

this is the error the console gives me “Uncaught (in promise) Error: Web3Api not initialized, run Moralis.start() first”
i have tried putting this first in the function
Moralis.start();
but i dont know the issue and am stuck

1 Like

Hey @blockman34

You need to update your app initialzation to:

const serverUrl = "https://xxxxx/server";
const appId = "YOUR_APP_ID";
Moralis.start({ serverUrl, appId });

thank you @Yomoo . :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture: :love_you_gesture:

1 Like

You are welcome!

Happy BUIDLing :man_mechanic:

1 Like