Fee Estimations
Calculating exact fee values for the different transactions
Last updated
Was this helpful?
Was this helpful?
const res = await zkClient.feeEstimate([100000000000, 12000000000], TxType.Transfer);
console.log(`The transfer will take ${res.txCnt} tx(s) and requires ${res.total} fee`);
// output: The transfer will take 1 tx(s) and requires 263573104 fee