typescript-sdk

Home > @3rdweb/sdk > ThirdwebSDK > getGasPrice

ThirdwebSDK.getGasPrice() method

Signature:

getGasPrice(speed?: string, maxGasGwei?: number): Promise<number | null>;

Parameters

Parameter Type Description
speed string what speed to prefer, default: “fastest”
maxGasGwei number  

Returns:

Promise<number | null>

the optiomal gas price