This is a wallet server, similar to the node and the miner. The only thing this server does is to create wallets.
To run this application, run 'npm start' in the root directory of the project.
- To start the first node run 'HTTP_PORT=4001 npm start' or 'npm start' which defaults to the 4001
- run npm i typedoc
- The command in 1. is only required once.
- Run 'mkdir docs' in the root directory.
- cd to src
- run '../node_modules/.bin/typedoc --out ../docs --mode modules .'
- This will create .html files in the /docs directory. You can open the index.html file to view the documentation
curl -H "Content-Type: application/json" -X POST http://localhost:4001/wallet/create/1234
This is an ugly looking GET request, but it does allow the browser to execute it with an array count of 2.
http://localhost:4001/wallet/balance/f3a1e69b6176052fcc4a3248f1c5a91dea308ca9?unspentTxOuts[]={'txOutId': "1", 'txOutIndex': 1, 'address': "someadress", 'amount': 10}&unspentTxOuts[]={'txOutId': "1", 'txOutIndex': 1, 'address': "someadress", 'amount': 10}