> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebelfi.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit Hash

> POST /v1/transactions/submit-hash — Notify RebelFi of a broadcast transaction

<Note>
  **Endpoint:** `POST https://api.rebelfi.io/v1/transactions/submit-hash`
</Note>

Notify RebelFi that you've broadcast a transaction. Use this when your application broadcasts the signed transaction directly to the blockchain.

### Request Body

| Field           | Type     | Required | Description                                                                                                                                                                                                                      |
| --------------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `operationId`   | `number` | Yes      | Operation ID from supply/unwind                                                                                                                                                                                                  |
| `txHash`        | `string` | Yes      | On-chain transaction hash/signature                                                                                                                                                                                              |
| `transactionId` | `number` | No       | Target transaction ID within the operation. **Required for EVM multi-transaction operations** (approve + supply). Optional for Solana single-transaction operations. If omitted, associates with the first unsigned transaction. |

### Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://api.rebelfi.io/v1/transactions/submit-hash" \
    -H "x-api-key: your_api_key" \
    -H "Content-Type: application/json" \
    -d '{
      "operationId": 123,
      "txHash": "5UfD...xyz"
    }'
  ```

  ```typescript SDK theme={null}
  const result = await client.transactions.submitHash({
    operationId: 123,
    txHash: '5UfD...xyz'
  });
  ```
</CodeGroup>

### Example Response

```json theme={null}
{
  "id": 456,
  "operationId": 123,
  "status": "pending",
  "txHash": "5UfD...xyz"
}
```

### Errors

| Code                          | Description                                              |
| ----------------------------- | -------------------------------------------------------- |
| `OPERATION_NOT_FOUND`         | Operation ID doesn't exist                               |
| `OPERATION_EXPIRED`           | Unsigned transaction expired                             |
| `OPERATION_ALREADY_SUBMITTED` | Transaction already submitted                            |
| `INVALID_OPERATION_STATUS`    | Operation is in a status that doesn't accept submissions |
