- Generate a new address A (a shell variable)
- Generate a new address B (a shell variable)
- Mine 100 blocks whose rewards go to A
- Send 10 BTCs from A to B
- Generate a new address A (a shell variable)
- Generate a new address B (a shell variable)
- Mine 100 blocks whose rewards go to A
- Set as shell variables: (a) UNSPENT: the first unspent transaction output (utxo) (b) txid: the transaction id of UNSPENT (c) vout: the output value of UNSPENT (d) scriptPubKey: the scriptPubKey of UNSPENT
example1.js nodejs script which sets up new address using bitcore
example2.js executes a standard transaction with bitcore
example3.js adds data to a standard transaction
example4.js generates JSON for transaction
freeze-st.js //demonstrate a freezing fund transaction i.e. A sends 10 BTCs to B but it is unspendable until 150 blocks later
args-regtest.js //parses arguments from bash too JS
freeze.js //executes freezing funds while taking arguments from bash