You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
721 B

6 years ago
#!/bin/bash
set -x
source pubkey.txt
echo $pubkey
sleep 3
6 years ago
# add non default assetchains here, HUSH because not in assetchains.json, and RFOX because its freq=10.
6 years ago
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"dpow\",\"symbol\":\"RFOX\",\"freq\":10,\"pubkey\":\"$pubkey\"}"
6 years ago
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"dpow\",\"symbol\":\"HUSH3\",\"pubkey\":\"$pubkey\"}"
# Loop through assetchains.json and call dpow for them. ROFX will not add a second time.
~/komodo/src/listassetchains | while read chain; do
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"dpow\",\"symbol\":\"$chain\",\"pubkey\":\"$pubkey\"}"
done