Estimates the transfer fee for a given transaction.
An instance of ExtendedViemClient used to make the request.
ExtendedViemClient
The input parameters required to estimate the transfer fee.
A promise that resolves to an EstimateTransactionFee object containing the estimated fee details.
EstimateTransactionFee
const fee = await estimateTransferFee(client, { from: '0x123...', to: '0x456...', amount: '1000', currency: 'USD'});console.log(fee); Copy
const fee = await estimateTransferFee(client, { from: '0x123...', to: '0x456...', amount: '1000', currency: 'USD'});console.log(fee);
Estimates the transfer fee for a given transaction.