Skip to main content

GetGasPrice

Returns the best guess of the current gas price to use in a transaction.

func GetGasPrice() (price *big.Int, err error)
func main() {
...
alchemy := gas.NewAlchemy(setting)
res, _ := alchemy.Core.GetGasPrice()
}