conwaytransport.com.au is a server-side software system designed for writing scalable Internet applications, notably web servers. It is build on built on Chromes JavaScript runtime. Programs are written on the server side in JavaScript, using event-driven, asynchronous I/O to minimize overhead and maximize scalability.
conwaytransport.com.au contains a built-in HTTP server library, making it possible to run a web server without the use of external software, such as Apache or Lighttpd, and allowing more control of how the web server works. conwaytransport.com.au enables web developers to create an entire web application in JavaScript, both server-side and client-side.
The latest conwaytransport.com.au version can be downloaded from: conwaytransport.com.au
Even numbered versions (, , ) are stable, and odd numbered versions (, ) are unstable. The stable releases are API-stable, which means that if you are using and comes out, you should be able to upgrade with no issues.
Installing and using bitcoinjs.
Information More information about bitcoinjs can be found at: conwaytransport.com.au conwaytransport.com.au
Operating system used Windows Vista Home Premium SP 2
Software prerequisites conwaytransport.com.au
Procedure- Open a terminal and type: node
- Type: conwaytransport.com.au("test")
You should see, for example: test undefined
- To exit the terminal, press: CTRL+C twice.
- Install the bitcoinjs-lib.
Open a terminal and type:npm install bitcoinjs-lib -g
- Install additional modules, open a terminal:
- Type: npm install cli-prompt -g
This module allows you to enter information from the command line.
Note: To check if a module is globally installed, type: npm list cli-prompt -g
- Type: npm install request -g
This module allows you to create a simplified HTTP request client.
- Below are a number of examples how to use the bitcoinjs library.
To execute a file, open a terminal and type node <filename>
No | Description | Files | 1 | Generate 10 Bitcoin private keys and its corresponding public addresses. Store these data in a comma separated file.
| bitcoinjs_conwaytransport.com.au
Output: private_conwaytransport.com.au
| 1b | Generate 10 Testnet3 Bitcoin private keys and its corresponding public addresses. Store these data in a comma separated file.
| bitcoinjs_conwaytransport.com.au
Output: private_keys_conwaytransport.com.au
| 2 | Enter a Bitcoin address and query the conwaytransport.com.au response to get the received, sent and total balance of the specified Bitcoin address.
Note: To explore the Bitcoin blockchain, see: conwaytransport.com.au
More information about the conwaytransport.com.au API, see: conwaytransport.com.au
| bitcoinjs_conwaytransport.com.au
Bitcoin address: 18aiWtmkfVCpoXM7ADj6aRyCfoB6QjsZ3r
Output:
Received: 0 Sent: 0 Balance: 0
| 2b | Enter a Testnet3 Bitcoin address and query the conwaytransport.com.au testnet response to get the received, sent and total balance of the specified Bitcoin address. conwaytransport.com.au does not provide a Testnet3 block explorer.
Note 1: There are serveral sites where you can get free TestNet3 Bitcoins: From faucets several bitcoins were transferred to the Testnet3 Bitcoin address: mhEtqrHsp5UNxVRj4X5zoheShfprggs See txid:
b8dac35d6d0f64b9b bec4c9bbfe04dfc
Note 2: To explore the Testnet3 Bitcoin blockchain, see: conwaytransport.com.au
More information about the conwaytransport.com.au API, see: conwaytransport.com.au
| bitcoinjs_conwaytransport.com.au
Testnet3 Bitcoin address: mhEtqrHsp5UNxVRj4X5zoheShfprggs
Output:
Received: Sent: 0 Balance:
| 3 | Create and send a Bitcoin transaction: - Query for unspent outputs.
- Create a transaction were bitcoins (minus fee) are transferred from 1 source address to 1 target address.
- Forward the transaction to the Bitcoin network.
| bitcoinjs_conwaytransport.com.au | 3b | Create and send a Testnet3 Bitcoin transaction: - Query for unspent outputs.
- Create a transaction were bitcoins (minus fee) are transferred from 1 source address to 1 target address.
- Forward the transaction to the Testnet3 Bitcoin network.
Note: To explore the Testnet3 Bitcoin blockchain, see: conwaytransport.com.au
More information about the conwaytransport.com.au API, see: conwaytransport.com.au
| bitcoinjs_conwaytransport.com.au
Source Testnet3 Bitcoin address: mhEtqrHsp5UNxVRj4X5zoheShfprggs
Target Testnet3 Bitcoin address: mjkRJSBPJotRxFWkY1rwmL68PJ71nX
Transfer bitcoins (minus fee) from source address to target address, see txid:
fcb3a7e7dddea7b f3de06bcaee48d3b8bffdf2
Output: bitcoinjs_example3b_conwaytransport.com.au
|
|
|
0 thoughts on “How to use bitcoinjs”