-
Awaru
re
-
NakedKing
I'm trying basic things about splitting monero. Is that good way to do it? Will %2 of total amount be enough for transaction fee? $splittedAmount = ($amount * 98 / 100) / $splitCount;
-
moneromooo
It depends what the amout is, obviously.
-
moneromooo
For "sane" amunts, it'll be way more than enough. But for corner cases (tiny amounts), it might not be enough.
-
moneromooo
But what you can do is something like:L
-
moneromooo
(wait, thinking)
-
moneromooo
Actually, it's the same as you're doing, but without the 98/100, but send N-1 amounts, and let the last one be the change.
-
moneromooo
Which... might have been what you wanted to do anyway ? :D
-
moneromooo
So if you want to split 1 monero into 4, you send 3 times 1/4, you'll get 0.25 0.25 0.25 0.249
-
moneromooo
And no dust due to that 2% tiny outout.
-
moneromooo
(instead of 4 times 0.25*98/100 and a fifth output of 0.0000x)
-
NakedKing
when a user sends a exactly equivalent amount of money to buy something, with this way waiting 10block wont be enough. User will need to wait 10(for splitted transfer) + 10 (and the last one) blocks.
-
NakedKing
But in another way, if user sends exactly equivalent, i will took his/her %2 too.. :D
-
NakedKing
And yes i will get problems with corner cases and there will be dust amounts. You are right but my workload is increasing, i need to watch a more transaction and then send last transfer at backend.
-
moneromooo
If you want to buy two things, just send one tx, not two.
-
moneromooo
That could have privacy implications though. What exactly, I'm not sure.
-
moneromooo
Or you can piggyback other txes: if you need to spend 10 to pay 3, you can always add another 2 output to yourself as well.
-
moneromooo
So instead of 10 -> 3 + 7 back (ignoring fee), you hve 10 -> 3 + 2 (back) + 7 (back).
-
moneromooo
No extra waiting. And you can have up to 16 outputs per tx.
-
moneromooo
Maybe the wallet should have an option for that kind of auto split...
-
upp
can you import wallet file generated from the cli client into monerujo? i tried but the file is greyed out and unselectable. not sure if it needs a filename extension or
-
hyc
ought to be able to, but I've never tried it
-
hyc
note that the CLI generates two files: xx and xx.keys
-
hyc
the .keys file is the critical one
-
upp
ah i noticed that, what is .keys
-
hyc
it stores your keys.......
-
upp
:>
-
upp
the other file is many megabytes, i assume it contains information from scanning the chain for transactions, which is what i figured i would try to avoid doing all over again by importing it
-
hyc
yes. it's called the wallet cache. it can be recreated by scanning the blockchain, it's mostly just there for convenience
-
hyc
but...
-
hyc
it also records details of outgoing txns, and those details don't exist anywhere else.
-
hyc
and can't be recovered from scanning the blockchain
-
upp
oh, interesting
-
hyc
I mean, a rescan will show that a txn was sent, but other info about the txn will be gone
-
upp
so maybe the import wallet feature is to import the keys file not the cache file? cache file seems more useful to bring over
-
hyc
without the keys you have no wallet at all
-
hyc
your viewkey and spendkey are what defines a wallet
-
upp
they are generated from the seed phrase and you can just re enter that i thought?
-
hyc
yes, true
-
upp
oh how about that, i put the cache and keys file in a zip and monerujo import seems to have worked
-
apotheon
that's cool
-
apotheon
upp: Thanks for blazing that trail so I now know that about Monerujo.
-
Mochi101
Moneruju is a pretty good wallet upp
-
upp
apotheon :)
-
upp
Mochi101: i wasnt sure which android wallet to try. i was about to try cake wallet as i see it recommended a lot on the reddit, but then i discovered something i didnt like about it while researching... i already forget what it was :( lol maybe it didnt have a feature i wanted like wallet import
-
Mochi101
I've never actually tried the Cake Wallet upp
-
Mochi101
Maybe I should try it one day and see how it does with a wallet with thousands of txs.