-
Notifications
You must be signed in to change notification settings - Fork 1
/
usage.txt
33 lines (18 loc) · 1.01 KB
/
usage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
We need fresh addresses for each test run, thus we require an unique (pseud-random) seed to be passed to the test script.
Any string can be passed as seed:
$ node test.js ABCDefgh show
The script will output an initial address and the current funding state:
$ node test.js ABCDefgh show
n2J6AcQZkF9Facmfte6JTqCmibJ7unfepK
{ coins: [] }
please send some testnet bitcoins to address above
You need to send testnet coins (e.g. from a faucet http://tpfaucet.appspot.com/ ) to the address above. Check the funding state by running script again.
After coins are received, you can run the test:
$ node test.js ABCDefgh run
The run will generate 4 addresses, issue new coins and transfer them using API.
Parameters:
--url= Full url to server endpoint, end with /, defaults to http://localhost:4444/api/
Use like this:
node test.js ABCdef show --url=http://myserver:4444/api/
--seed= optional way to specify the seed
--command = optional way to specify the command ('show' or 'run')