BSV blockchainBSV blockchain

Abort an unsigned / in-process action.

POST/actions/abort

Corresponds to StorageProvider.abortAction(auth, args). Marks the transaction as failed and frees any allocated inputs.

Body application/json

referencestringrequired

Reference string or txid of the action to abort.

Response

Abort result.

abortedboolean

Bad request — invalid arguments.

errorstring
codestring

Machine-readable error code (see specs/errors.md).

Authentication required or token invalid.

errorstring
codestring

Machine-readable error code (see specs/errors.md).

Internal storage error.

errorstring
codestring

Machine-readable error code (see specs/errors.md).

Request
curl -X POST "https://{host}/storage/v1/actions/abort" \
  -H "Content-Type: application/json" \
  -d '{
  "reference": "string"
}'
Response
{
  "aborted": true
}