1

I am looking at the possibility of creating a custom token on the Ethereum network & wanted to know if there is a way if i can put an limit on the gasPrice in order to prevent the so called "gas wars" ?

Sujal Mandal
  • 123
  • 5

1 Answers1

2
require(tx.gasprice < 5 * 1000000000);

From Block and transaction properties. Solidity Docs

Roman Frolov
  • 3,177
  • 2
  • 11
  • 29