getGasPrice

Retrieves the gas price for a transaction on a specific chain.

Example

import { getGasPrice } from "thirdweb";
const gasPrice = await getGasPrice({ client, chain });

Parameters

Returns

A promise that resolves to the gas price as a bigint.