Bitcoin Forum
November 17, 2017, 09:42:54 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Rav3n_pl CoinControl for any coin c# .net 4.0  (Read 3399 times)
rav3n_pl
Legendary
*
Offline Offline

Activity: 1253


Don`t panic! Organize!


View Profile WWW
January 19, 2015, 09:09:21 PM
 #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/
1510954974
Hero Member
*
Offline Offline

Posts: 1510954974

View Profile Personal Message (Offline)

Ignore
1510954974
Reply with quote  #2

1510954974
Report to moderator
1510954974
Hero Member
*
Offline Offline

Posts: 1510954974

View Profile Personal Message (Offline)

Ignore
1510954974
Reply with quote  #2

1510954974
Report to moderator
Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
najzenmajsen
Hero Member
*****
Offline Offline

Activity: 672


AMAZING F5 skills O_o


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

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

Activity: 1918



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: 672


AMAZING F5 skills O_o


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
Legendary
*
Offline Offline

Activity: 1253


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



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

Source?

bitcreditscc
Hero Member
*****
Offline Offline

Activity: 602



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

ocminer pool quick!!!

I have my abacus ready!!

rav3n_pl
Legendary
*
Offline Offline

Activity: 1253


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
Legendary
*
Offline Offline

Activity: 1253


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
Legendary
*
Offline Offline

Activity: 1253


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: 220


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
Hash to Coins: http://hash-to-coins.com/index.php?page=register&rid=5764
Argentum BTC Donation Address: 1LxXw9CRunb5mJfa99aTWQMCqmbroVBUxi
rav3n_pl
Legendary
*
Offline Offline

Activity: 1253


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: 677


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
Legendary
*
Offline Offline

Activity: 1253


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: 677


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
Legendary
*
Offline Offline

Activity: 1253


Don`t panic! Organize!


View Profile WWW
March 14, 2015, 11:16:20 AM
 #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: 677


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
Legendary
*
Offline Offline

Activity: 1253


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/
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!