Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 13:53
    zawasp synchronize #650
  • Jan 31 13:47
    zawasp synchronize #650
  • Jan 31 13:44
    zawasp commented #650
  • Jan 31 13:43
    zawasp commented #650
  • Jan 31 12:25
    NicolasDorier commented #650
  • Jan 31 12:25
    NicolasDorier commented #650
  • Jan 31 10:57
    zawasp synchronize #650
  • Jan 31 10:50
    zawasp synchronize #650
  • Jan 31 10:40
    zawasp synchronize #650
  • Jan 31 10:36
    zawasp opened #650
  • Jan 31 07:47
    NicolasDorier commented #649
  • Jan 31 07:47

    NicolasDorier on v4.1.1.81

    (compare)

  • Jan 31 07:46

    NicolasDorier on master

    bump (compare)

  • Jan 31 07:45
    NicolasDorier commented #649
  • Jan 31 07:45

    NicolasDorier on master

    Fix DivideByZeroException when … (compare)

  • Jan 31 07:45
    NicolasDorier closed #649
  • Jan 31 07:45
    NicolasDorier closed #648
  • Jan 31 00:38
    knocte commented #648
  • Jan 30 17:19
    lontivero commented #648
  • Jan 30 17:19
    lontivero commented #648
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]you don't really need the tx builder
Aram Kocharyan
@arkoc
gotcha thanks. One question about SendEstimateFee...if I have 1 input with (1btc) and 1 output(1btc). When I create transaction with builder and then call SendEstimateFee, will it substract fee from output ?
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@arkoc no, if you want to substract fee you need to do builder.Send(money, destinatoin).SubstractFees().SendEstimatedFee(feeRate);
[mattermost - nicolasdorier]this will substract the fee from destination
Aram Kocharyan
@arkoc
Thank you !
blockmonk
@blockmonk
any one familiar with BNB chain with c#
https://explorer.binance.org/
i m trying to run thr node and other stuffs like address generation payment
?
btcpaybot
@btcpaybot
[mattermost - Kukks]wrong place, this is for bitcoin magic
btcpaybot
@btcpaybot
[mattermost - paz]I'm going through Nico's Programming Blockchain in C# book. when using my node to broadcast a transaction, why do we first 'advertise our transaction' by just sending the hash to the node? Is it strictly necessary?
[mattermost - paz]using (var node = Node.ConnectToLocal(Network.Main)) //Connect to the node { node.VersionHandshake(); //Say hello //Advertize your transaction (send just the hash) node.SendMessage(new InvPayload(InventoryType.MSG_TX, tx.GetHash())); //Send it node.SendMessage(new TxPayload(tx)); Thread.Sleep(500); //Wait a bit }
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@paz yeah it is
[mattermost - nicolasdorier]this is the protocol that what this
[mattermost - nicolasdorier]Please if you go deep into dev, also then look at https://github.com/NicolasDorier/NBitcoin.Docs
SmartK8
@SmartK8
Hi, how to create a new wallet address.. I had previous (now obsolete) version: privateKey.PubKey.GetAddress(Network.Main).. I'm trying to change it to: privateKey.PubKey.GetAddress(ScriptPubKeyType.Legacy, Network.Main) this gives me BitcoinAddress, but then what?
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]then nothing, you have an address
SmartK8
@SmartK8
Yeah, thanks. Too much work & not enough coffee makes my brain skip a beat sometimes.
Rex
@Reximusiy_twitter
hi guys
maybe a stupid question
but how can i get BitcoinAddress object from available address in www.blockchain.com
like this one:
https://www.blockchain.com/en/btc/address/393eXKrkHL2wB12o8XRRTcKc4gLsS4MiPj
btcpaybot
@btcpaybot
[mattermost - Kukks]I think just BitcoinAddress.Parse("address here")
[mattermost - Kukks]Just from memory though but along those lines
Rex
@Reximusiy_twitter
i found the solution
it is BitcoinScriptAddress represented in base58 format
BitcoinScriptAddress("address here", network)
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@Reximusiy_twitter use BitcoinAddress.Parse("str", Network.Main);
Xavier
@xardass
hello, are there any code examples for how to make the scriptSig and hash for scriptPubKey? Currently trying to reverse engineer for that part
rjlimardo
@rjlimardo
.
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@xardass
[mattermost - nicolasdorier]you should use the transaction builder
[mattermost - nicolasdorier]if you want hash of scriptpubkey scriptPubKey.Hash
rjlimardo
@rjlimardo
Hello, i did a Live transaction with NBitcoin taken from the example and some changes and today it still says Pending, and when i checked on the history it says ("Unable to decode output address ")
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@limardo blockchain.com is an obsolete block explorer
[mattermost - nicolasdorier]your fee are low that's why it is not confirmed yet
blockmonk
@blockmonk
hello any implementation for bsv on c#
btcpaybot
@btcpaybot
[mattermost - Kukks]Lol no
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@blockmonk no, and it won't happen
Deepan
@Deepan412_twitter
is anyone knows blockchain in hyper ledger fabric
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]nobody knows blockchain here, we use bitcoin
Trycoder
@Trycoder

Hi guys . Im getting the following when trying to sign the bch transaction : The output being signed with the amount must be provided
Parameter name: spentOutput

But the ltc and btc transaction are getting processed

Grey007
@Grey007
This message was deleted
Babken Gevorgyan
@babgev
Hi guys. Had anyone ever stumbled to UnauthorizedAccessException while trying to run AltcoinTests?
Grey007
@Grey007

Hey guys,

What would you suggest is better to do when sending bitcoin in the following scenario: I want to send 1BTC. Which is made up of 3 coins received: 0.6BTC, 0.2BTC, 0.2BTC. Which of the below is the correct approach:

  1. Spend all coins the wallet has in the transaction, which then results in the next time the wallet transacts that it only has one input (Considering it hasn't received anymore coins). Therefore send 0.1 to the destination and set the change back to the sender address which in this case would be 0.9BTC.

OR

  1. Only spend the input you need to, therefore in this scenario you will just spend one of the 0.2BTC inputs?
btcpaybot
@btcpaybot
[mattermost - britttttk]hey can you repost your options maybe without the formatting? We cant see them here in the mattermost chat :)
Omar Sagga
@osagga
@Grey007 it really depends, its usually better to have your coins in many outputs, so that you're more flexible (and also help a tiny bit with privacy), but that usually means that you have to manage multiple outputs (hence maybe multiple private keys, if you're not using HD scheme), which might get tricky if you're making your own wallet
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@osagga btw, you may want to take a look at https://github.com/dgarage/NBXplorer I made it easy to track UTXOs
Omar Sagga
@osagga
Awesome, will definitely check it out!
ThePigInTheHouse
@IsTypiNOVanS
Hey everyone :),
I have a question for NBitcoin gitters: I'm looking for using NBitcoin to build custom blockchain for managing supplychain software and I would like to know if it possible before starting studying it ?
Thanks all !!!
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]@IsTypiNOVanS don't do it, it is waste of time
[mattermost - nicolasdorier]but if you want to do it, NBitcoin is useless to you
btcpaybot
@btcpaybot
[mattermost - Kukks]@IsTypiNOVanS supply chain blockchain software that is privately managed is as good as a mysql database with a 1000x performace hit
Mark Allison
@markallisongit
Has anyone compiled the NBitcoin class library and loaded into PowerShell and called Methods from there?
btcpaybot
@btcpaybot
[mattermost - nicolasdorier]I did not but it should work