bc195ca0a9175a524733abf9ee02c8ff8310768e
[crowdnode.js/.git] / create-tx.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 + 1000))
7 MSG_AGREE=$((65536 + 20000 + 1000))
8
9 #SOURCE_ADDRESS=
10
11 node create-tx.js \
12     "${SOURCE_ADDRESS}" \
13     "${SOURCE_ADDRESS}:${MSG_SIGNUP}" \
14     "${SOURCE_ADDRESS}:${MSG_AGREE}" \
15     > rawtx.hex