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.
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
source pubkey.txt
|
|
|
|
echo $pubkey
|
|
|
|
sleep 3
|
|
|
|
|
|
|
|
# add non default assetchains here, HUSH because not in assetchains.json, and RFOX because its freq=10.
|
|
|
|
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"dpow\",\"symbol\":\"RFOX\",\"freq\":10,\"pubkey\":\"$pubkey\"}"
|
|
|
|
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
|