---
title: "Submit transaction to blockchain"
method: POST
path: "/api/transaction/submit"
tags: ["Transaction"]
---

# Submit transaction to blockchain

`POST /api/transaction/submit`

Receives a signed witness and a cbor to submit a transaction to the Cardano blockchain.

## Request body

- SubmitTransactionRequest
  - `cbor` string, required — The transaction in CBOR format as a hex string
  - `witness` string, required — The witness/signature data for the transaction
  - `perpetualRequest` CreatePerpetualRequest
    - `address` string, required — User's wallet address
    - `asset` Asset, required
      - `policyId` string, required — The Cardano policy ID of the asset
      - `assetName` string, required — The asset name
    - `collateralAmount` number, required — Amount of collateral in ADA (NOT LOVELACE)
    - `leverage` number, required — Leverage multiplier (e.g., 2 for 2x)
    - `position` 'Long' | 'Short', required
    - `stopLossPrice` number — Optional stop loss price in USD
    - `takeProfitPrice` number — Optional take profit price in USD
    - `partnerAddress` string — Optional partner wallet address. Important: Must be whitelisted. Please contact the Strike Finance team for approval.
  - `closePositionInfo` ClosePositionInfo — Optional data for closing a perpetual position
    - `perpetualInfo` PerpetualInfo, required
      - `position` 'Long' | 'Short'
      - `positionSize` number
      - `leverage` number
      - `stopLoss` number
      - `takeProfit` number
      - `asset` object
        - `ticker` string
        - `asset` Asset
          - `policyId` string, required — The Cardano policy ID of the asset
          - `assetName` string, required — The asset name
        - `type` string
        - `url` string
        - `decimals` integer
        - `dex` string
        - `perpAuthPolicyId` string
      - `collateral` object
        - `amount` number
        - `ticker` string
        - `includeStrike` boolean
        - `strikeAmount` number
      - `entryPrice` number
      - `isPending` boolean
      - `outRef` OutRef
        - `txHash` string, required — Transaction hash
        - `outputIndex` integer, required — Output index in the transaction
      - `status` 'Pending' | 'Completed'
      - `liquidationPrice` number
      - `version` integer
      - `hourlyBorrowFee` number
      - `originalTxHash` string
    - `address` string, required — The wallet address closing the position

## Response `200`

Transaction successfully submitted to the blockchain

- SubmitTransactionResponse
  - `txHash` string, required — The transaction hash returned by the blockchain

## Other responses

- `400` — Missing required parameters
- `500` — Server configuration error or transaction submission failure

---

[API](https://skmtc.net/strikefinance/apis/strike-finance-staking-api.md) · [All operations](https://skmtc.net/strikefinance/apis/strike-finance-staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/strikefinance/strike-finance-staking-api/revisions/6b7d8bd51050/schema)
