Use Goal Account with REST API

Is it possible to use goal account marknonparticipating with 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:

  1. Use goal just 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 —

  1. Sign the transaction
goal clerk sign -i transaction.tx -o transaction.sig
  1. Send the transaction
curl -i -X POST -H "X-API-Key:APIKEY" -H "Content-Type:application/x-binary" -T transaction.sig