CityOfZion / neon-js

Javascript libraries that allow the applications to interact with NEO blockchain
https://docs.coz.io/neo3/neon-js/index.html
MIT License
183 stars 166 forks source link

rpc method 'CalculateNetworkFee' #789

Closed bettybao1209 closed 2 years ago

bettybao1209 commented 3 years ago

Hi, I'd like to know why we do not call CalculateNetworkFee directly since I found in neonjs we get the feePerByte and executionFeeFactor to calculate fee locally instead.

bettybao1209 commented 3 years ago

@snowypowers ping

ixje commented 3 years ago

Probably because we were not aware of the function at the time of writing. If there is no size limitation to tx, then it makes sense to use the RPC method instead.

bettybao1209 commented 3 years ago

So do you plan to implement the one using the RPC method?