Transaction Id in Bitcoin Blockchain

0 votes

Hi, I am pretty new to the concepts of Blockchain and its development. I want to ask if I have to fill in the transactionId value before sending the coin? And why?

In the below code, where is this value e44587cf08b4f03b0e8b4ae7562217796ec47b8c91666681d71329b764add2e3 found from?

ar bitcoinPrivateKey = new BitcoinSecret("cSZjE4aJNPpBtU6xvJ6J4iBzDgTmzTjbq8w2kqnYvAprBCyTsG4x");
var network = bitcoinPrivateKey.Network;


var address = bitcoinPrivateKey.GetAddress();

Console.WriteLine(bitcoinPrivateKey); // cSZjE4aJNPpBtU6xvJ6J4iBzDgTmzTjbq8w2kqnYvAprBCyTsG4x
Console.WriteLine(address); // mzK6Jy5mer3ABBxfHdcxXEChsn3mkv8qJv
Console.WriteLine();

var client = new QBitNinjaClient(network);
var transactionId = uint256.Parse("e44587cf08b4f03b0e8b4ae7562217796ec47b8c91666681d71329b764add2e3");
var transactionResponse = client.GetTransaction(transactionId).Result;

Console.WriteLine(transactionResponse.TransactionId); // e44587cf08b4f03b0e8b4ae7562217796ec47b8c91666681d71329b764add2e3
Console.WriteLine(transactionResponse.Block.Confirmations);
Console.WriteLine();
Jul 13, 2018 in Blockchain by sabby
• 4,350 points
132 views

1 answer to this question.

0 votes

The TransactionId comes from sending the coin. So sending the coin from one address to another will generate a transactionId. Might get more help on https://bitcoin.stackexchange.com/.

Looking on a testnet block explorer you can see this transaction: https://www.blocktrail.com/tBTC/tx/e44587cf08b4f03b0e8b4ae7562217796ec47b8c91666681d71329b764add2e3 sent coins from muxdaneQGxjcvdX5TMpw3vtAYbb7rmjhZz to mzERr7ZPXC1vThsJ74odTn1fuGvASGpQjz and mzK6Jy5mer3ABBxfHdcxXEChsn3mkv8qJv 

answered Jul 13, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

0 votes
1 answer

How a transaction validity is verified in blockchain?

Blockchain has the records the of all ...READ MORE

answered May 11, 2018 in Blockchain by Johnathon
• 9,080 points
49 views
0 votes
1 answer

How can I retrieve to and from address in transaction directly from blockchain?

The spending conditions, i.e., who is able ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,350 points
84 views
0 votes
1 answer

How to understand transaction verification in blockchain

They said it takes about 10 minutes ...READ MORE

answered Jul 17, 2018 in Blockchain by ariaholic
• 7,340 points
36 views
0 votes
1 answer

Hyperledger Fabric: How to access transaction ID in invoke function?

You can access transaction ID in Invoke ...READ MORE

answered Nov 5, 2018 in Blockchain by Omkar
• 67,660 points
487 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
173 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 26,550 points
4,532 views
0 votes
1 answer
0 votes
1 answer

Transaction Verification in Blockchain

Yes if your transaction was lucky enough ...READ MORE

answered Sep 5, 2018 in Blockchain by Christine
• 15,790 points
39 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 127 views