filecoin-project / lotus

Reference implementation of the Filecoin protocol, written in Go
https://lotus.filecoin.io/
Other
2.85k stars 1.27k forks source link

How to Transfer amount to let the account doesn't remain dust balance #6722

Open BomaxChen opened 3 years ago

BomaxChen commented 3 years ago

If I have filecoin account, its balance is 1 FIL, how do I use RPC API to get gas information that I can transfer all this account balance to another account ? (It means after this transaction, the previous account remains 0 FIL , that is I can calculate the real gas fee. )

I don't want to remain dust balance like ( 0.000000XXX FIL), so I need to transfer all amount from the previous account. Thanks a lot

f8-ptrk commented 3 years ago

impossible right now