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,390 points
796 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,090 points
517 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,400 points
1,031 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 aryya
• 7,450 points
888 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
• 69,210 points
2,188 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
1,705 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,740 points
43,987 views
0 votes
1 answer

How do I add multiple recipients for transactions via Blockchain API?

Convert the recipes into JSON objects. x = ...READ MORE

answered Jul 6, 2018 in Blockchain by Perry
• 17,100 points
681 views
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
412 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 1,364 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP