initial commit
[crowdnode.js/.git] / crowdnode-signup-sign.sh
1 #!/bin/bash
2 set -e
3 set -u
4
5 # See https://knowledge.crowdnode.io/en/articles/5963880-blockchain-api-guide
6 MSG_SIGNUP=$((131072 + 20000))
7 MSG_AGREE=$((65536 + 20000))
8 MSG_DEPOSIT=$((100000 + 20000))
9
10 #CHANGE=
11 HOTWALLET=XjbaGWaGnvEtuQAUoBgDxJWe8ZNv45upG2
12
13 node create-tx.js \
14     "${CHANGE}" \
15     "${HOTWALLET}":${MSG_SIGNUP} \
16     > rawtx.hex
17 bash send-tx.sh
18 sleep 180
19
20 node create-tx.js \
21     "${CHANGE}" \
22     "${HOTWALLET}":${MSG_AGREE} \
23     > rawtx.hex
24 bash send-tx.sh
25 sleep 30
26
27 node create-tx.js \
28     "${CHANGE}" \
29     "${HOTWALLET}":${MSG_DEPOSIT} \
30     > rawtx.hex
31 bash send-tx.sh