Bitcoin Forum
December 03, 2024, 03:00:35 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Rav3n_pl CoinControl for any coin c# .net 4.0  (Read 3602 times)
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
January 19, 2015, 09:09:21 PM
Last edit: June 30, 2016, 11:28:28 PM by rav3n_pl
 #1

Everyone, who mine on P2Pool or solo, or use many faucets, sometimes hit a wall: how to send many coins in one transaction and not pay huge fee?
I hit this problem, when I sent few hundred transactions to exchange and kill them wallet for week Tongue
Because most of altcoins not have coin control form latest Bitcoin Core client, so I wrote .net app that use RPC calls to access wallet and create transactions as you like.
First, you need to enable RPC access to your coin. Edit *coin.conf file in data directory, it will need:
Code:
server=1
daemon=1
rpcuser=something
rpcpassword=anothersomething
If we not know default RPC port of coin just add:
Code:
rpcport=12000
If we have daemon not on local machine, we need allow remote RPC address to our machine
Code:
rpcallowip=x.x.x.x
If you have encrypted wallet, you need open it b4 you can sign transaction.

Typical usage:
- enter ip:port of daemon (in example: 127.0.0.1:8223), press connect
- press "get inputs"
- sort inputs by age, value or how you like
- check inputs you want to use - value will calculate in lower box and in 1st output
- enter proper output address, you can put more than one (by default it is one output... BTC address to me, a little suggestion Cheesy)
- sum of all outputs must be less or equal to inputs. If less - what`s left will be tx fee!
- then press "prepare", wait
- press "sign", wait
- press "send", wait
- after this input will be cleared

All RPC calls are in output window, so you can see and check them.

For many coins sending tx witch 0 fee is possible for older coins (mined long time ago).
To make one big input, you need do few times a loop:
- choose one address
- send 10-20 inputs to it
- loop till you have one input
If we send full many inputs to one address, we not create new one in wallet every transaction (no change every time). So one backup is enough Smiley
Then just create new wallet and send this one tx to it, you will have much lighter wallet file Smiley

App is available on my OneDrive (link in signeture), zip has no password. Sources are included ofc.
App on github:
Source: https://github.com/Rav3nPL/CoinControl
Zip: https://github.com/Rav3nPL/CoinControl/archive/master.zip

last update: https://bitcointalk.org/index.php?topic=929954.msg10769808#msg10769808

I hope it will help many users Smiley

Some screens:




1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
najzenmajsen
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500



View Profile
January 19, 2015, 09:09:38 PM
 #2

is this really the right section ? . .
ocminer
Legendary
*
Offline Offline

Activity: 2688
Merit: 1240



View Profile WWW
January 19, 2015, 09:12:03 PM
 #3

Wat?

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
najzenmajsen
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500



View Profile
January 19, 2015, 09:12:29 PM
 #4

Wat?
indeed , weird this is that its comming from a legendary member :p
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
January 19, 2015, 09:28:13 PM
 #5

In fact, cant find better place for it.
Pls point it (a new place) and/or message moderator to move...   Roll Eyes

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
bitcreditscc
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
January 19, 2015, 09:39:15 PM
 #6

Source?

bitcreditscc
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501



View Profile
January 19, 2015, 09:40:48 PM
 #7

ocminer pool quick!!!

I have my abacus ready!!

rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
January 19, 2015, 10:05:00 PM
 #8

Source?
Source in zip.

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
January 29, 2015, 08:02:23 AM
 #9

Dupmed it into github too: https://github.com/Rav3nPL/CoinControl

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 02, 2015, 06:49:51 PM
 #10

Small but good update Smiley
"listunspent" command is no longer logged. It makes log window 10000x faster for big number of outputs - no more "app not responding".

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
cryptcollector
Full Member
***
Offline Offline

Activity: 227
Merit: 100


View Profile
March 11, 2015, 10:00:10 AM
 #11

Nice piece if work rav3n_pl.

will look at it, some of these wallet daemons really piss me off with their shinanigans  Smiley

As this has been done in .NET it should hopefully be portable to MONO for linux, would be nice :-)

Regards
Cryptcollector

Follow me on Twitter: https://twitter.com/cryptcollector
BTC Donation Address: 1LxXw9CRunb5mJfa99aTWQMCqmbroVBUxi
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 11, 2015, 10:31:47 AM
 #12

Mono support .net 4.5 so it should be no problem.
I used 4.0 because of Windows XP ;]

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Riseman
Hero Member
*****
Offline Offline

Activity: 690
Merit: 500


View Profile
March 12, 2015, 07:58:44 PM
 #13

Is there a way to check multiple inputs at once? E.g. if I want to make a tx with like 200 inputs do I have to click each one?
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 13, 2015, 07:15:08 AM
 #14

I recommend to use up to 30 inputs, 200 will make really huge tx.
No, I did not implement any "mass select" option.
Loaded TXes are in order of their TXID, I`m sorting them to older first and select to value (or number of inputs) I desire.
I can add a numeric and a button to select first xx inputs. It would be useful for you?

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Riseman
Hero Member
*****
Offline Offline

Activity: 690
Merit: 500


View Profile
March 13, 2015, 07:27:08 PM
 #15

It would be useful for you?

I'd appreciate that. It will make this software quite helpful for my particular use case.
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 14, 2015, 11:16:20 AM
Last edit: June 30, 2016, 11:28:04 PM by rav3n_pl
 #16

Done.
Added buttons: select all, deselect all, select 1st xxx rows (limit 500, default 30).
Also added display address of input.

Enjoy Smiley

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Riseman
Hero Member
*****
Offline Offline

Activity: 690
Merit: 500


View Profile
March 16, 2015, 07:06:00 PM
 #17

Thank you. Unfortunately, even 500 wasn't enough for my task. It turned out faster to just send many smaller transactions straight from the wallet. So never mind.
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 16, 2015, 07:29:34 PM
 #18

500 inputs make about 90kb transaction, it is HUGE.
100`000 bytes is standard transaction limit.
You would have huge troubles to broadcast and accept it - standard configuration on node just drop transactions like that.

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
rav3n_pl (OP)
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
January 19, 2018, 02:05:18 PM
 #19

Small updates:
- need .Net 4,5 now
- updated newtosoft.json library
- pull unconfirmed outputs
- speedup in drawing (hide elements to avoid system redraws)

Have fun Smiley

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!