getTransactions returns only objectId

The below code

async function getTransactions() {

  const userTrans = await Moralis.Web3.getTransactions();

  console.log(userTrans);

}

getTransactions();

Returns only objectIds of the transactions:
await Moralis.Web3.getTransactions();

Shouldn’t this also return these:

async function getBalances() {

  const balances = await Moralis.Web3.getAllERC20();

  console.log(balances);

}

getBalances();

returns an object with some actual data:
balances

How do I get all the transactions with the timestamp, gasused etc information?

Hey @hexadecimal

It works without problems for me.

const userTrans = await Moralis.Web3.getTransactions({
          chain: "matic"
        });
        console.log(userTrans);

Could you send your server domain and version :man_mechanic:

Have you changed any settings of CLP?

Server URL: https://qjma4pno5mtk.usemoralis.com:2053/server
I’m guessing this is version number: 0.0.248

Have you changed any settings of CLP?
–> I don’t think so since I don’t know what this means.

Hmm, very unfortunate first experience. I got stuck on this for several days, should have asked here earlier.

Issue was solved by creating a new server and changing the server URL & application ID to the new ones.

Hi @hexadecimal,

We are continuously improving our services and are moving with great speed. This is the reason we have our (Extremely Active) forum for your assistance. We would love your support as we grow and scale this world-class product!

There are already thousands of questions answered on the forum. If you have a unique question that has never been asked, feel free to post it here anytime you like. We will try to figure out the issue as soon as possible!

Have a wonderful day! :slight_smile:

1 Like