Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

173
Vistas
Set priority fee for gas in a web3 transaction

I am currently using the following method to interact with my contract and send a transaction:

 contract.methods.myMethod(amount).send({
    from: address,
    to: CONTRACT_ADDRESS,
    value: String(totalCost),
   });

I did notice the .send does take the following parameters:

gasPrice - String (optional): The gas price in wei to use for this transaction. gas - Number (optional): The maximum gas provided for this transaction (gas limit).

However, i dont see any parameter to adjust the priority fee. Is there any way to pass this trough when making a transaction this way?

Im firing the transaction from a nodejs app and is for personal use only, so i have set a private key to avoid having to sign etc. But the only thing im missing now is to set a pre-defined priority fee.

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

From another post over at https://ethereum.stackexchange.com/questions/11018/

Miners will Prioritize the transactions with a higher gas price not a gas value (how much gas are you providing to be used to execute your transaction). the miners set a gasprice(the gas price you are willing to pay in ether for each unit of gas) whiting the network if you send a transaction with a price below your transaction will not be proceeded otherwise more you raise your gas price more you Prioritize your transaction. your transaction fee = consumed_gas * gas_price. your function consumes n gas you get refunded gas_value-n;

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda