units / org.apache.tuweni.units.ethereum / Gas / priceFor

priceFor

fun priceFor(gasPrice: Wei): Wei (source)

The price of this amount of gas given the provided price per unit of gas.

Parameters

gasPrice - The price per unit of gas.

Return
The price of this amount of gas for a per unit of gas price of gasPrice.