# signAction

> For the complete documentation index, see [llms.txt](https://bsvblockchain.com/docs/llms.txt).

**POST** `/signAction`

Base URL: `http://localhost:3321`

Signs a transaction previously created using `createAction`

## Body

Content type: `application/json`

- `spends` (object)
- `reference` (string)
- `options` (object)
  - `acceptDelayedBroadcast` (boolean)
  - `returnTXIDOnly` (boolean)
  - `noSend` (boolean)
  - `sendWith` (string[])

Example:

```json
{
  "spends": {},
  "reference": "string",
  "options": {
    "acceptDelayedBroadcast": true,
    "returnTXIDOnly": true,
    "noSend": true,
    "sendWith": [
      "string"
    ]
  }
}
```

## Responses

### 200

The signed transaction result

- `txid` (string)
- `tx` (number[])
- `sendWithResults` (object[])
  - `txid` (string)
  - `status` ("unproven" | "sending" | "failed")

Example:

```json
{
  "txid": "string",
  "tx": [
    0
  ],
  "sendWithResults": [
    {
      "txid": "string",
      "status": "unproven"
    }
  ]
}
```

### 400

Invalid input

### 500

Internal server error