An instance of ExtendedViemClient
used to make the request.
The input parameters required to estimate the transfer fee.
A promise that resolves to an EstimateTransactionFee
object containing the estimated fee details.
const fee = await estimateTransferFee(client, {
destinationAddress: '0x123...',
sourceAddress: '0x456...',
amount: ['1000'],
blockchain: 'ETH-SEPOLIA',
});
// => {
// high: { gasLimit: '3', maxFee: '6', priorityFee: '9', baseFee: '12', networkFee: '15' },
// medium: { gasLimit: '2', maxFee: '4', priorityFee: '6', baseFee: '8', networkFee: '10' },
// low: { gasLimit: '1', maxFee: '2', priorityFee: '3', baseFee: '4', networkFee: '5' },
// }
Estimates the transfer fee for a given transaction.