Closed RuChiang closed 1 year ago
It seems Estimate API expects amount in Tezos while Transfer in Mutez, so if you pass Mutez you get error with insufficient funds.
reviewed - 2023-04-26 could no longer reproduce the problem
const amount = 2; const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY';
// Estimate gasLimit, storageLimit and fees for a transfer operation const est = await tezos.estimate.transfer({ to: address, amount: amount }) console.log(est.burnFeeMutez, est.gasLimit, est.minimalFeeMutez, est.storageLimit, est.suggestedFeeMutez, est.totalCost, est.usingBaseFeeMutez)
result: 0 1101 300 0 400 300 300
Hi there,
I'm trying to estimate the fees for my transfer transaction, and this is what I did
and I kept getting this error
Seems the error came from
I was suspecting it could be the problem with the rpc node, but apparently my rpc node is working as
actually returns a value
Has anyone also run into this error? Many thanks if any assistance is offered