This is a simple Go app made to do the quote task for Algorand TestNet. More details can be found here - https://community.algorand.org/t/task-read-a-quote-write-a-quote-using-javascript/367
Firstly, we need to export a fews environment variables. To do that, enter your ~/node/data/
directory and execute the following commands:
export ALGOD_ADDRESS=$(cat algod.net)
export ALGOD_TOKEN=$(cat algod.token)
cd kmd-v0.5
export KMD_ADDRESS=$(cat kmd.net)
export KMD_TOKEN=$(cat kmd.token)
NOTE: If your ALGOD_ADDRESS
and KMD_ADDRESS
get set to 127.0.0.1:port
, you should change them to http://localhost:port
as Go SDK doesn't seem to like parsing the former.