BSV blockchainBSV blockchain

signAction

POST/signAction

Signs a transaction previously created using createAction

Body application/json

spendsobject
referencestring
optionsobject
Show options properties
acceptDelayedBroadcastboolean
returnTXIDOnlyboolean
noSendboolean
sendWithstring[]

Response

The signed transaction result

txidstring
txnumber[]
sendWithResultsobject[]
Show sendWithResults properties
txidstring
status"unproven" | "sending" | "failed"

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/signAction" \
  -H "Content-Type: application/json" \
  -d '{
  "spends": {},
  "reference": "string",
  "options": {
    "acceptDelayedBroadcast": true,
    "returnTXIDOnly": true,
    "noSend": true,
    "sendWith": [
      "string"
    ]
  }
}'
Response
{
  "txid": "string",
  "tx": [
    0
  ],
  "sendWithResults": [
    {
      "txid": "string",
      "status": "unproven"
    }
  ]
}