neo-node
neo-node copied to clipboard
Can't send all gas to an address in neo-cli
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?
A nice feature 🆒.
It can be done changing the type to string
and parsing the string inside the method
It can be done changing the type to
string
and parsing the string inside the method
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.
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 0000000000000001
, substract the fee from the amount and sign.
But it would be nice to have this https://github.com/neo-project/neo/pull/2008 otherwise, you will earn gas :)
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
0000000000000001
, substract the fee from the amount and sign.
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