Transaction

Operations for submitting blockchain transactions

Submit transaction to blockchain

post

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

Body
cborstringRequired

The transaction in CBOR format as a hex string

Example: 84a400818258203f...
witnessstringRequired

The witness/signature data for the transaction

Example: a10081825820...
Responses
200

Transaction successfully submitted to the blockchain

application/json
post
POST /api/transaction/submit HTTP/1.1
Host: app.strikefinance.org
Content-Type: application/json
Accept: */*
Content-Length: 835

{
  "cbor": "84a400818258203f...",
  "witness": "a10081825820...",
  "perpetualRequest": {
    "asset": {
      "policyId": "279c909f348e533da5808898f87f9a14bb2c3dfbbacccd631d927a3f",
      "assetName": "534e454b"
    },
    "position": "Long",
    "leverage": 1,
    "collateralAmount": 1,
    "positionSize": 1,
    "stopLossPrice": 1,
    "takeProfitPrice": 1,
    "address": "text",
    "enteredPositionTime": 1
  },
  "closePositionInfo": {
    "perpetualInfo": {
      "asset": {
        "ticker": "SNEK",
        "asset": {
          "policyId": "279c909f348e533da5808898f87f9a14bb2c3dfbbacccd631d927a3f",
          "assetName": "534e454b"
        },
        "type": "native",
        "url": "text",
        "decimals": 6,
        "dex": "minswap",
        "perpAuthPolicyId": "text"
      },
      "position": "Long",
      "entryPrice": 1,
      "positionSize": 1,
      "collateral": {
        "amount": 1,
        "ticker": "text",
        "includeStrike": true,
        "strikeAmount": 1
      },
      "enteredPositionTime": 1,
      "hourlyBorrowFee": 1,
      "openingUSDFee": 1,
      "outRef": {
        "txHash": "text",
        "outputIndex": 1
      }
    },
    "address": "text"
  }
}
{
  "txHash": "a1b2c3d4e5f6..."
}