Home > @3rdweb/sdk > ThirdwebSDK > getGasPrice
Signature:
getGasPrice(speed?: string, maxGasGwei?: number): Promise<number | null>;
Parameter | Type | Description |
---|---|---|
speed | string | what speed to prefer, default: “fastest” |
maxGasGwei | number |
Returns:
Promise<number | null>
the optiomal gas price