estimateTransactionCost

function estimateTransactionCost(
provider: Provider,
tx: TransactionRequest,
): Promise<BigNumber>;

Parameters

Type

let provider: Provider;

Type

let tx: TransactionRequest;

Returns

let returnType: Promise<BigNumber>;