Algoriddle: unable to execute a .teal

Hi there,

I was trying to execute the Algoriddle teal code, but I’m getting some errors.

I placed the algoriddle.teal file in the main directory ~/node then I typed:

./goal clerk send --amount 0 --argb64 "*** my solution ***" --to "*** my address ***" --from KFGWR5LVDNWO3RRDNUUZN725S7V7FG5RLYEHUAIROSL6CBKLEHCKVZRXTE --close-to "*** my address ***" --from-program algoriddle.teal --fee 1000

and get this error:

Data directory not specified. Please use -d or set $ALGORAND_DATA in your environment. Exiting.

so I retyped:

./goal clerk send --amount 0 --argb64 "*** my solution ***" --to "*** my address ***" --from KFGWR5LVDNWO3RRDNUUZN725S7V7FG5RLYEHUAIROSL6CBKLEHCKVZRXTE --close-to "*** my address ***" --from-program algoriddle.teal --fee 1000 -d ~/node

and get this other error:

Error determining kmd folder (open /Users/username/node/genesis.json: no such file or directory). Ensure the node is running in /Users/username/node.

Any suggestion?

1 Like

Sounds like this was solved. I believe we can mark as closed.

Yes, it worked typing the command in this way:

./goal clerk send --amount 0 --argb64 ***my_solution*** --to ***my_address*** --from KFGWR5LVDNWO3RRDNUUZN725S7V7FG5RLYEHUAIROSL6CBKLEHCKVZRXTE --close-to ***my_address*** --from-program ~/node/algoriddle.teal --fee 1000 -d ~/node/data