-
Infinity8
Mochi101: geonic : How would I identify the dust transaction to use sweep_single on that's giving my wallet trouble?
-
Infinity8
usage: sweep_single [<priority>] [<ring_size>] [outputs=<N>] <key_image> <address> [<payment_id (obsolete)>]
-
Infinity8
I have no clue what to put as <key_image>
-
Infinity8
brb
-
jtgrassie
-
Mochi101
Infinity8, hold on... I have to do it in my wallet to tell you how
-
Mochi101
:D
-
Mochi101
It's like... unspent_outputs --verbose
-
Mochi101
something like that...
-
Mochi101
mmmmm
-
Mochi101
ahhh there you go. jtgrassie saves the day
-
Mochi101
Found 1037/29185 transfers
-
Mochi101
man... has to be easier...
-
Infinity8
i did sweep_all unimportant "My new generated subaddress goes here"
-
Infinity8
I wonder if it worked
-
Mochi101
Has to be a way to narrow down my 1037 out of 29185 incoming transfers...
-
Mochi101
jtgrassie, ?
-
Mochi101
So if I do: unspent_outputs 0 0.0001 I get 2 results
-
Mochi101
Would be nice to be able to do something with that global index number
-
moneromooo
Infinity8: sweep_unmixable might be what you want.
-
NakedKing
o/ I need idea about online Monero wallet system. When i create a wallet and connect rpc via this wallet, i use "create_address" function and assign account_index to users. But this causes a problem: When i user do withdraw, it locks all wallet/all users (unlocked balance) , then i tried to create a new wallet for every user and one of wallet takes ~16MB so its impossible. Im stucked. Please give me idea.
-
rbrunner
You could try to generate and/or keep a suitable number of available outputs by sending to yourself using transactions that have several outputs
-
rbrunner
i.e. splitting your own outputs that way
-
rbrunner
I do that myself for the fountain I have on my testnet webwallet:
monerotech.info/Wallet
-
rbrunner
I watch how many spendable outputs I have in the fountain wallet, and if that goes lower than a given limit, I start to send funds to myself
-
rbrunner
with such "split" transactions
-
NakedKing
rbrunner, did i understand correct: Set limit for warning on spendable outputs. Eg: its 10 XMR. If spendable outputs goes down 10XMR then split it and send them to these... wallets.
-
rbrunner
No, you have to watch the number of spendable outputs in your wallet, if you have enough of those their amounts are secondary
-
rbrunner
Imagine that for every user you had 100 spendable outputs ready, with small amounts: You would always be able to spend
-
rbrunner
with a lot of outputs left that remain *free* after a transaction
-
NakedKing
What's mean of spendable outputs? Isn't it equal to XMR value?
-
rbrunner
for the simple reason that they are not involved in any way
-
rbrunner
Well, it get's a bit technical here if you never had a closer look at how so-called UTXO cryptocurrencies work
-
rbrunner
If that's the case I can really recommend a closer look at the website I linked
-
rbrunner
It is meant to be a tool where people can learn about that, and watch closely "how it works" with those outputs
-
rbrunner
(honest, more than simple shilling for my own website :)
-
NakedKing
What did you use on backend dear rbrunner?
-
rbrunner
I wrote the code in C# myself, using a library that makes Monero RPC available for C# programs
-
NakedKing
Seems cool. I'm working on php and using
github.com/monero-integrations/monerophp this wrapper. I get confused~~ spendable outputs and utx0.
-
NakedKing
If i generate suitable number of spendable outputs, all my problems will be gone
-
NakedKing
*on the foundation wallet (maybe its named escrow)
-
NakedKing
Am i correct now?: Main wallet has got 1xmr + 1xmr + 1xmr. Total 3XMR with 3 spendable outputs. This means it's withdrawable for 3 times. Can be 1xmr 1xmr 1xmr on same time, or 2xmr 0.5 and 0.5. But not 1xmr 1xmr 0.5 0.5! . So when the wallet have 3xmr, i send it another wallet for 0.1 x 30times. then i make the main wallet this wallet and it has god 30 spendable outputs.
-
rbrunner
Correct in principle. Just don't forget about fees. If you have an output of exactly 1 XMR and you spend exactly 1 XMR that will spend that output *and* another one
-
rbrunner
because it has to take the fee from somewhere, however small it may be
-
rbrunner
And the change from that output that will go back into your wallet will be locked for 20 minutes
-
rbrunner
But anyway, such details won't matter once you have a suitable number of outputs ready and not altogether too much traffic / outgoing payments on your wallet
-
rbrunner
You can worry about that once you reach Amazon levels of orders :)
-
merope
"Can be 1xmr 1xmr 1xmr on same time, or 2xmr 0.5 and 0.5" - no, the second case cannot be done in three different transaction without waiting at least once for the 10 block limit
-
NakedKing
why not?
-
merope
Because the 2xmr transaction will consume two of your 1xmr outputs, then the second transaction consumes the last 1xmr output to send 0.5 and give you 0.5 change, and then you have to wait 10 blocks before you can spend the last 0.5
-
merope
Imagine each output is a dollar bill (that can have any value), and that you have to spend the whole bill when you make a transaction
-
NakedKing
i see
-
merope
It's the same case as the 1xmr 1xmr 0.5 0.5
-
NakedKing
i need to wait first my 0.5 then i can send it
-
merope
exactly
-
NakedKing
wtf is that? how can handle the fees and follow spendable outputs? I looked
getmonero.org/resources/developer-guides/wallet-rpc.html there are no thing for check it
-
merope
Tx fees are very small, much less than 0.001 xmr (unless you're doing something strange or wrong)
-
NakedKing
also the second question. There are 2 wallets. 1. wallet have: 10 xmr and i want to upgrade my spendable outputs then i split it 0.1 x 10 then send it another wallet. Are there any problem exists if the second wallet && this wallets account same? The balance going to appear 10XMR (didnt calculated fees) but its spendable for 10 times even its same wallet/account, right?
-
merope
But yeah, if you have 3x 1xmr outputs and you need to send 1xmr, the wallet will actually use two of those 1xmr outputs to pay 1xmr + the small tx fee
-
merope
So if you want to send 1xmr + 1xmr + 1xmr, you will actually have to wait two times and your last tx will be slightly less than 1xmr
-
merope
But if you are that much worried about tx fees and waiting 20 minutes, you should consider sending transaction in batches
-
merope
For example 1 tx every 10 minutes, paying multiple people
-
NakedKing
can i send monero to multiple wallet with 1 transaction?
-
merope
Yes
-
NakedKing
so, isnt it best way to split monero?
-
NakedKing
eg: 1xmr, 0.1 x 10wallet with 1 transaction?
-
merope
there is the "sweep" function that allows you to do that automatically by sending to yourself
-
NakedKing
sweep_dust, is that?
-
merope
oh wait, I'm not sure if sweep allows you to split outputs
-
merope
sweep_dust does the opposite: if you have many outputs that are too small, it turns them into a single output
-
NakedKing
sweep_single >> Send all of a specific unlocked output to an address.
-
merope
NakedKing: But you can always do this
-
merope
oh right
-
NakedKing
is that you talked about?
-
merope
Maybe only Feather Wallet has the split function already built-in
-
NakedKing
i'm running full node at my own
-
NakedKing
if i understand the idea correctly i can build it well
-
merope
Feather wallet is just a wallet, it doesn't have a node included
-
NakedKing
is it connected public nodes
-
merope
You can connect it to your own node too
-
merope
You have the correct idea: send yourself multiple small outputs (like 0.1 x 10), even to the same address they came from
-
merope
You just have to figure out how to construct that transaction with the rpc wallet
-
NakedKing
merope, can the destination be same address + event same account_index ?
-
merope
I think so
-
NakedKing
are there any way to check spendable output count?
-
merope
incoming_transfers, and you set "transfer_type" to "available" (those are the unspent outputs you have available)
-
merope
-
NakedKing
thanks you so so so much merope! and thanks you too rbrunner. i was in pain and lost my hopes... now time to try more
-
unsanctioned
-
rbrunner
Don't worry about the splitting if you use the RPC interface and your library (in your case for PHP) has complete support
-
rbrunner
If you check closely the transfer call you will see that you can give an array of amounts, not only a single amount
-
rbrunner
And that in turn will lead to a transaction with the corresponding number of outputs + 1 (for the change)
-
rbrunner
You can interactively wish for transactions with 1, 3 or 7 outputs on my web wallet and can check how the number of spendable outputs in your wallet develops / changes