MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

Nbitcoin(testnet), Qbitninja.client, spend your coin #113

Closed jole95 closed 4 years ago

jole95 commented 4 years ago

Nbitcoin-testnet-qbitninja (transactions)

Hi, I use Nbitcoin and Qbitninja. I read documentation on : Spend your coin

`var bitcoinPrivateKey = new BitcoinSecret("cRcYJLyX4spkbLRi7DQLUvcfk75XbVGNkFEQuFaBow3DuDUuuXX6", Network.Testnet); var network = bitcoinPrivateKey.Network; var address = bitcoinPrivateKey.GetAddress();

Console.WriteLine(bitcoinPrivateKey); Console.WriteLine(address); ``var client = new QBitNinjaClient(network); var transactionId = uint256.Parse(" fc4277895a0ed104b505c44a194aff0b37b241b668cd4a2b93945b481bafc606"); var transactionResponse = client.GetTransaction(transactionId).Result;

Console.WriteLine(transactionResponse.TransactionId); // null Console.WriteLine(transactionResponse.Block.Confirmations); // block is null

Thanks everyone

I hope someone will be able to help me as I need to do this for my graduate work

`

NicolasDorier commented 4 years ago

I am starting again the testnet server, let me know and reopen if it keep crashing in a day.