Estimate the gas cost of a transaction in ether and wei.
import { estimateGasCost } from "thirdweb"; const gasCost = await estimateGasCost({ transaction });
function estimateGasCost( options: EstimateGasOptions,): Promise<EstimateGasCostResult>;
let options: Prettify< { transaction: PreparedTransaction<any> } & ( | { account: Account; from?: never } | { account?: never; from?: string } )>;
let returnType: { ether: string; wei: bigint };