-
Notifications
You must be signed in to change notification settings - Fork 224
node: Can't send all gas to an address in neo-cli #717
Comments
A nice feature 🆒. |
It can be done changing the type to |
Since we're still calculating NetFee per byte not per KB, how can we calculate that accurately if the tx is just over 1KB after signature is added. |
With zero padding for the big integer amount. The size will be the same for 1 and for 10000000. You will need to compute only twice the transaction, one for get the fee with |
But it would be nice to have this neo-project/neo#2008 otherwise, you will earn gas :) |
Yeah, size will be the same for 1 and 10000000. But we could have multi addresses in wallet especially the exchange. They often have few gas in many wallet. If one signature is added, the size is bigger then netfee will be increased, if the second address has not enough gas then CLI has to ask the third address for more fee and more recalculate. So the issue is we don't know how many times we have to calculate or CLI will return fault after tried twice. |
We can try it 10 times? |
Old, if remains, please re-open |
Description
I want to transfer all my GAS to another address, and I can't do that in neo-cli.
Expected
Automatically deduct the fee and transfer the balance to this address.
Suggestion:
Can it automatically deduct the fee from the transfer amount when sending all?
The text was updated successfully, but these errors were encountered: