Skip to main content
added 26 characters in body
Source Link
TThom
  • 49
  • 1
  • 1
  • 6

I'm using web3js to issue token which has a name and description. I'm using ropsten testnet.

Here's my tx.

const tx = {
      from: walletAddress,
      to: contractAddress,
      gas: 4700000,
      gasPrice: 20000000000,
      data: encodedABI,
    };

Here's what ethgasstation.info is telling me now.

enter image description here

I'm confused about how to translate what I read on ethgasstation.info to my "gas" and "gasPrice" values. I kept getting "ran out of gas" error if I only set gas to 2000000 WITHOUT specifying gasPrice.

I'm using web3js to issue token which has a name and description.

Here's my tx.

const tx = {
      from: walletAddress,
      to: contractAddress,
      gas: 4700000,
      gasPrice: 20000000000,
      data: encodedABI,
    };

Here's what ethgasstation.info is telling me now.

enter image description here

I'm confused about how to translate what I read on ethgasstation.info to my "gas" and "gasPrice" values. I kept getting "ran out of gas" error if I only set gas to 2000000 WITHOUT specifying gasPrice.

I'm using web3js to issue token which has a name and description. I'm using ropsten testnet.

Here's my tx.

const tx = {
      from: walletAddress,
      to: contractAddress,
      gas: 4700000,
      gasPrice: 20000000000,
      data: encodedABI,
    };

Here's what ethgasstation.info is telling me now.

enter image description here

I'm confused about how to translate what I read on ethgasstation.info to my "gas" and "gasPrice" values. I kept getting "ran out of gas" error if I only set gas to 2000000 WITHOUT specifying gasPrice.

Source Link
TThom
  • 49
  • 1
  • 1
  • 6

How to calculate "gas" and "gasPrice" when referring to ethgasstation.info when sending transaction via web3js?

I'm using web3js to issue token which has a name and description.

Here's my tx.

const tx = {
      from: walletAddress,
      to: contractAddress,
      gas: 4700000,
      gasPrice: 20000000000,
      data: encodedABI,
    };

Here's what ethgasstation.info is telling me now.

enter image description here

I'm confused about how to translate what I read on ethgasstation.info to my "gas" and "gasPrice" values. I kept getting "ran out of gas" error if I only set gas to 2000000 WITHOUT specifying gasPrice.