Docs

estimateGasCost

Estimate the gas cost of a transaction in ether and wei.

Example

import { estimateGasCost } from "thirdweb";
const gasCost = await estimateGasCost({ transaction });

Parameters

Returns