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.
 
 
 
 
 
 
nprimo 919ba9e5d6 feat(send-transaction-to-peer): improve subject 2 years ago
..
README.md feat(send-transaction-to-peer): improve subject 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.

  • Store the following values in a variable tx in your solution send-transaction-to-peer.js:

    • Transaction hash txid.
    • Transaction fee fee (in Bitcoins, negative integer).
    • Transaction amount amount (in Bitcoins, negative integer).
    • Transaction date `time.

The submitted transaction information needs to be related to a recent (no more than 48 h) transaction!

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