Transaction
Operations for submitting blockchain transactions
Receives a signed witness and a cbor to submit a transaction to the Cardano blockchain.
Body
cborstringRequiredExample:
The transaction in CBOR format as a hex string
84a400818258203f...
witnessstringRequiredExample:
The witness/signature data for the transaction
a10081825820...
Responses
200
Transaction successfully submitted to the blockchain
application/json
400
Missing required parameters
application/json
500
Server configuration error or transaction submission failure
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..."
}