# internalizeAction

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

**POST** `/internalizeAction`

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

Submits a transaction to be internalized

## Body

Content type: `application/json`

- `tx` (number[])
- `outputs` (object[])
  - `outputIndex` (number)
  - `protocol` ("wallet payment" | "basket insertion")
  - `paymentRemittance` (object)
    - `derivationPrefix` (string)
    - `derivationSuffix` (string)
    - `senderIdentityKey` (string)
  - `insertionRemittance` (object)
    - `basket` (string)
    - `customInstructions` (string)
    - `tags` (string[])
- `description` (string)
- `labels` (string[])
- `seekPermission` (boolean)

Example:

```json
{
  "tx": [
    0
  ],
  "outputs": [
    {
      "outputIndex": 0,
      "protocol": "wallet payment",
      "paymentRemittance": {
        "derivationPrefix": "string",
        "derivationSuffix": "string",
        "senderIdentityKey": "string"
      },
      "insertionRemittance": {
        "basket": "string",
        "customInstructions": "string",
        "tags": [
          "string"
        ]
      }
    }
  ],
  "description": "string",
  "labels": [
    "string"
  ],
  "seekPermission": true
}
```

## Responses

### 200

The internalization result

- `accepted` (boolean)

Example:

```json
{
  "accepted": true
}
```

### 400

Invalid input

### 500

Internal server error