1

When I send a transaction from remix, how does it set the gas price for the transaction (not gas cost / limit)?

2 Answers 2

1

This depends on client you are using to broadcast your transaction. Most of them choose the standard gas price at the time the transaction is about to be sent. MyCrypto and Metamask do this, for example.

3
  • ok that's helpful - how do they retrieve the 'standard gas price at the time the transaction is sent' ? Commented Aug 24, 2018 at 7:06
  • 1
    ethgasstation.info has an API that provides this number based on the current network Commented Aug 24, 2018 at 7:23
  • and which software part is querying this api? geth? or remix? Commented Aug 24, 2018 at 7:25
1

Remix in particularly uses ethgasstation.info, but many wallets such as metamask will use eth_gasPrice from the node they are connected to

2
  • now I'm confused - the other answer stated it's the client that choses it (I thought in this case the client would be geth, not remix?) Commented Aug 24, 2018 at 7:08
  • ethgasstation and geth would both provide an estimated gas price, but the client is free to update it Commented Aug 24, 2018 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.