You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jrosendo 7a960f7d00 docs(blockchain): add blockchain branch subjects to public 2 years ago
..
README.md docs(blockchain): add blockchain branch subjects to public 2 years ago

README.md

Send Transaction to Peer

You will send your first peer-to-peer transaction between two students.

Instructions

  • Create manually an address on Bitcoin testnet. You can use bitcoin-cli configured on testnet or any other wallet.

  • Get testnet Bitcoin from a faucet (see below).

  • Send a transaction of 0.00001337 bitcoins to another student.

  • Retrieve the main information from the transaction from a public API or a node (using for instance bitcoin-cli gettransaction). You might need to convert some fields depending on the API used. - Transaction hash "txid - Transaction fee "fee" (in Bitcoins, negative integer) - Transaction amount "amount" (in Bitcoins, negative integer) - Transaction date "time"

  • Store the

Expected file

sendTransactionToPeer.js

exports.tx = {
  amount: -0.00001337,
  fee: -0.00000003,
  txid: "95952d9bf7542dfa0c98486495f1ae432a8738bbd7da051915d0aca1bec1f9",
  time: 1789670282,
};

Congrats for your first real peer to peer Bitcoin transaction!

Utilities