I am currently using an Ether package and NodeJS to learn a few things.
It basically gets the network from my argument, and then get blockNumber and gasPrice.
So if run this, here is what I get:
Which is what I want. But sometimes, it gives the gas price BEFORE the block number, like that:
How can I edit my code so it always give the block number first? I tried to play with the
.then keyword, but didn't manage to make it work.
node.js asynchronous ethereum