Is it possible to use goal account marknonparticipating with Purestake.io REST API?
You cannot use the features of
goal that require access to a node without running a node yourself (via
goal node start that is synced with the network).
What you can do however is the following:
goaljust to generate the nonparticipating transaction:
goal account marknonparticipating -a ADDRESS --firstvalid CURRENT_ROUND -t transaction.tx
Note that you must replace
CURRENT_ROUND by the current round (use any block explorer for that purpose — https://developer.algorand.org/docs/community/#block-explorers)
- Sign the transaction
goal clerk sign -i transaction.tx -o transaction.sig
- Send the transaction
curl -i -X POST -H "X-API-Key:APIKEY" -H "Content-Type:application/x-binary" -T transaction.sig https://testnet-algorand.api.purestake.io/ps2/v2/transactions