|
Nicolas Dorier (OP)
|
|
July 22, 2014, 02:56:56 PM |
|
Making your own Payload is not complicated, I'll add it, but if you are stuck because of that take a look at the implementation of others. It takes literally 5 minutes.
|
Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
|
|
|
ThePok
|
|
October 13, 2014, 08:36:35 PM |
|
The lib now can handle ColoredCoins!
|
|
|
|
|
illodin
|
|
November 13, 2014, 06:03:56 AM |
|
|
|
|
|
Nicolas Dorier (OP)
|
|
November 13, 2014, 12:15:35 PM |
|
Exciting, I wonder what is the trick, because I don't see any reason to by a 5K $ msdn subscription for VS now...
|
Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
|
|
|
thirdprize
|
|
December 16, 2014, 12:04:47 PM |
|
If you ask, M$ will give you a free "Biz Spark" MSDN subscription, if you have a web site and pretend to be a start up. I got one of the back of a couple of iPhone apps i wrote which i said i wanted to port to WinPhone. http://www.microsoft.com/bizspark/default.aspx
|
|
|
|
hhanh00
|
|
December 28, 2014, 06:26:42 PM |
|
Is it possible to run it as a full node implementation? Basically with tx relay and wallet maintenance.
|
|
|
|
Nicolas Dorier (OP)
|
|
December 28, 2014, 08:14:59 PM |
|
Is it possible to run it as a full node implementation? Basically with tx relay and wallet maintenance.
Yes it is, here to get started (assuming you run bitcoin core locally) Obviously, you can also connect to other node as long as you know the IP. using(var node = Node.ConnectToLocal(Network.Main)) { node.VersionHandshake(); node.MessageReceived += (node,message) => //Do your stuff when new message here; }
If you want to make a server, using(var server = new NodeServer(Network.Main)) { server.Listen(); server.NodeAdded += (s,node)=>//do stuff when node connect (Handshakes and Ping/Pong are handled automatically) }
|
Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
|
|
|
hhanh00
|
|
December 29, 2014, 03:23:32 AM |
|
Thanks for your quick response, another question - is there support for the maintenance of the mempool and the set of unspent outputs? I couldn't find where transactions are checked for double spends for example.
|
|
|
|
Nicolas Dorier (OP)
|
|
December 29, 2014, 01:28:48 PM Last edit: December 29, 2014, 01:48:49 PM by Nicolas Dorier |
|
Thanks for your quick response, another question - is there support for the maintenance of the mempool and the set of unspent outputs? I couldn't find where transactions are checked for double spends for example.
No, this is yours to do. NodeServer and Node are the class to send message and respond to messages you receive. (as a server, or as a client) I have not coded a full node with this, but someone can. In my code, I usually use NodeServer for mocking a fake bitcoin server (for unit testing), and I use Node to get notified from new Transactions, blocks, get the Headers chain, and download blocks.
|
Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
|
|
|
hhanh00
|
|
December 29, 2014, 02:28:32 PM |
|
Got it - thanks
|
|
|
|
Nicolas Dorier (OP)
|
|
December 29, 2014, 02:44:23 PM |
|
Got it - thanks
One advice, there is several test that are using these class. If you have the xunit test running, they either the Trait "NodeServer" or "Network". It assume you have a local bitcoin instance on testnet. You might learn how these class work with the tests.
|
Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
|
|
|
doof
|
|
January 29, 2015, 02:34:10 AM |
|
Actually, I'm a little busy to create an indexer. So that will probably be a blockchain.info or blockexplorer.com backed by Microsoft Azure. (which is pure awesomeness) I will release it entirely open source.
Doing a similar thing. PM me
|
|
|
|
doof
|
|
January 29, 2015, 02:40:19 AM |
|
Is it possible to run it as a full node implementation? Basically with tx relay and wallet maintenance.
Yes it is, here to get started (assuming you run bitcoin core locally) Obviously, you can also connect to other node as long as you know the IP. using(var node = Node.ConnectToLocal(Network.Main)) { node.VersionHandshake(); node.MessageReceived += (node,message) => //Do your stuff when new message here; }
If you want to make a server, using(var server = new NodeServer(Network.Main)) { server.Listen(); server.NodeAdded += (s,node)=>//do stuff when node connect (Handshakes and Ping/Pong are handled automatically) }
When trying to start as server, I'm getting this exception thrown on server.Listen() An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in NBitcoin.dll Additional information: Only one usage of each socket address (protocol/network address/port) is normally permitted Any ideas? I had bitcoind running using that port.
|
|
|
|
DGulari
Legendary
Offline
Activity: 1386
Merit: 1000
KawBet.com - Anonymous Bitcoin Casino & Sportsbook
|
|
April 28, 2015, 01:24:05 PM |
|
Is there a new thread somewhere? How could 4 months go by without anyone discussing NBitcoin?
|
|
|
|
Nicolas Dorier (OP)
|
|
April 29, 2015, 12:07:54 PM |
|
Is there a new thread somewhere? How could 4 months go by without anyone discussing NBitcoin?
There was some about discussion on threads about Blockchain Programming in C# about it. The rest happens on github/stackoverflow/mails. (no specific forum thread)
|
Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
|
|
|
lontivero
Full Member
Offline
Activity: 164
Merit: 128
Amazing times are coming
|
|
July 07, 2015, 05:03:54 AM Last edit: July 07, 2015, 02:52:58 PM by lontivero |
|
If you take a look at the NBitcoin repo https://github.com/NicolasDorier/NBitcoin you will see that it is a very active project. In fact, yesterday there was a new release with many improvements. For example, the latest version allows you to use the bitcoin core consensus library to validate transactions. There are new features (see the TransactionBuilder and MoneyBag classes), improvements and, at the same time, NBitcoin is on sync with bitcoin core project. So, summarizing: there are a lot of news.
|
|
|
|
bananas
|
|
July 08, 2015, 07:59:37 AM Last edit: July 08, 2015, 08:19:26 AM by bananas |
|
If you take a look at the NBitcoin repo https://github.com/NicolasDorier/NBitcoin you will see that it is a very active project. In fact, yesterday there was a new release with many improvements. For example, the latest version allows you to use the bitcoin core consensus library to validate transactions. There are new features (see the TransactionBuilder and MoneyBag classes), improvements and, at the same time, NBitcoin is on sync with bitcoin core project. So, summarizing: there are a lot of news. I wonder if it does have some kind of coin selector and a wallet file format?
|
|
|
|
|
|