> For the complete documentation index, see [llms.txt](https://docs.skylinebridge.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skylinebridge.tech/cardano-api/cardanotx.md).

# CardanoTx

## Create a bridging transaction

> Builds a bridging transaction with all required fees and metadata. The transaction must be signed and submitted separately.

```json
{"openapi":"3.1.1","info":{"title":"Cardano API","version":"1.0"},"servers":[{"url":"/api"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"BridgingTxResponse":{"properties":{"amount":{"description":"Amount of currency to be bridged, expressed in Lovelace","type":"integer"},"bridgingFee":{"description":"Bridging fee for covering submission on the destination chain, expressed in Lovelace","type":"integer"},"nativeTokenAmount":{"description":"Amount of native token to be bridged","type":"integer"},"txHash":{"description":"Transaction hash","type":"string"},"txRaw":{"description":"Raw transaction data, encoded as a hexadecimal string","type":"string"}},"type":"object"},"ErrorResponse":{"properties":{"err":{"type":"string"}},"type":"object"},"CreateBridgingTxRequest":{"properties":{"bridgingFee":{"description":"Fee covering the submission of the transaction on the destination chain, expressed in Lovelace","type":"integer"},"destinationChainId":{"description":"Destination chain ID","type":"string"},"operationFee":{"description":"Fee covering the operational cost of processing the bridging request, expressed in Lovelace","type":"integer"},"senderAddr":{"description":"Address that initiates the bridging request on the source chain","type":"string"},"skipUtxos":{"description":"Specifies the UTXO to skip during transaction creation on the source chain","items":{"$ref":"#/components/schemas/UtxoRequest"},"type":"array"},"sourceChainId":{"description":"Source chain ID","type":"string"},"transactions":{"description":"Array of transactions requested by the sender","items":{"$ref":"#/components/schemas/CreateBridgingTxTransactionRequest"},"type":"array"},"useFallback":{"description":"Indicates if fallback mechanism should be used","type":"boolean"},"utxoCacheKey":{"description":"Key used to enable caching of spent UTXOs","type":"string"}},"required":["destinationChainId","senderAddr","sourceChainId","transactions"],"type":"object"},"UtxoRequest":{"properties":{"hash":{"description":"Transaction hash","type":"string"},"index":{"description":"Output index of UTXO","type":"integer"}},"type":"object"},"CreateBridgingTxTransactionRequest":{"properties":{"addr":{"description":"Receiver address","type":"string"},"amount":{"description":"Amount to be bridged","type":"integer"},"isNativeToken":{"description":"True if the amount is specified in a native token; false if in a currency on source chain","type":"boolean"}},"required":["addr","amount"],"type":"object"}}},"paths":{"/CardanoTx/CreateBridgingTx":{"post":{"description":"Builds a bridging transaction with all required fees and metadata. The transaction must be signed and submitted separately.","responses":{"200":{"description":"OK - Returns the raw transaction data, transaction hash, and calculated bridging fee and amounts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgingTxResponse"}}}},"400":{"description":"Bad Request – Validation error due to input data not meeting required conditions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized – API key missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Create a bridging transaction","tags":["CardanoTx"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBridgingTxRequest"}}},"description":"Bridging transaction data","required":true}}}}}
```

## Get fees required for a bridging transaction

> Returns the transaction and bridging fees that the sender must pay on the source chain. The bridging fee covers the cost for the fee payer to submit the transaction on the destination chain.

```json
{"openapi":"3.1.1","info":{"title":"Cardano API","version":"1.0"},"servers":[{"url":"/api"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"BridgingTxFeeResponse":{"properties":{"bridgingFee":{"description":"Bridging fee for covering submission on the destination chain, expressed in Lovelace","type":"integer"},"fee":{"description":"Transaction fee on the source chain, expressed in Lovelace","type":"integer"}},"type":"object"},"ErrorResponse":{"properties":{"err":{"type":"string"}},"type":"object"},"CreateBridgingTxRequest":{"properties":{"bridgingFee":{"description":"Fee covering the submission of the transaction on the destination chain, expressed in Lovelace","type":"integer"},"destinationChainId":{"description":"Destination chain ID","type":"string"},"operationFee":{"description":"Fee covering the operational cost of processing the bridging request, expressed in Lovelace","type":"integer"},"senderAddr":{"description":"Address that initiates the bridging request on the source chain","type":"string"},"skipUtxos":{"description":"Specifies the UTXO to skip during transaction creation on the source chain","items":{"$ref":"#/components/schemas/UtxoRequest"},"type":"array"},"sourceChainId":{"description":"Source chain ID","type":"string"},"transactions":{"description":"Array of transactions requested by the sender","items":{"$ref":"#/components/schemas/CreateBridgingTxTransactionRequest"},"type":"array"},"useFallback":{"description":"Indicates if fallback mechanism should be used","type":"boolean"},"utxoCacheKey":{"description":"Key used to enable caching of spent UTXOs","type":"string"}},"required":["destinationChainId","senderAddr","sourceChainId","transactions"],"type":"object"},"UtxoRequest":{"properties":{"hash":{"description":"Transaction hash","type":"string"},"index":{"description":"Output index of UTXO","type":"integer"}},"type":"object"},"CreateBridgingTxTransactionRequest":{"properties":{"addr":{"description":"Receiver address","type":"string"},"amount":{"description":"Amount to be bridged","type":"integer"},"isNativeToken":{"description":"True if the amount is specified in a native token; false if in a currency on source chain","type":"boolean"}},"required":["addr","amount"],"type":"object"}}},"paths":{"/CardanoTx/GetBridgingTx":{"post":{"description":"Returns the transaction and bridging fees that the sender must pay on the source chain. The bridging fee covers the cost for the fee payer to submit the transaction on the destination chain.","responses":{"200":{"description":"OK - Returns calculated fees.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgingTxFeeResponse"}}}},"400":{"description":"Bad Request – Validation error due to input data not meeting required conditions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized – API key missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get fees required for a bridging transaction","tags":["CardanoTx"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBridgingTxRequest"}}},"description":"Bridging transaction data","required":true}}}}}
```

## Get bridge settings

> Returns the participating chains with their specific settings, global bridge configuration (such as minimum and maximum allowed bridging amounts), and, for each source chain, the native token that will be received on the destination chain.

```json
{"openapi":"3.1.1","info":{"title":"Cardano API","version":"1.0"},"servers":[{"url":"/api"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"SettingsResponse":{"properties":{"bridgingSettings":{"allOf":[{"$ref":"#/components/schemas/BridgingSettings"}],"description":"Settings for bridge"},"cardanoChainsNativeTokens":{"additionalProperties":{"items":{"$ref":"#/components/schemas/sendtx.TokenExchangeConfig"},"type":"array"},"description":"For each source chain, defines the native token that will be received on the destination chain","type":"object"},"enabledChains":{"description":"Participating chains in the bridge","items":{"type":"string"},"type":"array"},"runMode":{"allOf":[{"$ref":"#/components/schemas/VCRunMode"}],"description":"Specifies the current operating mode of the application"}},"type":"object"},"BridgingSettings":{"properties":{"maxAmountAllowedToBridge":{"description":"Maximum amount of currency allowed to be bridged","type":"string"},"maxReceiversPerBridgingRequest":{"description":"Maximum number of receivers allowed in a bridging request","type":"integer"},"maxTokenAmountAllowedToBridge":{"description":"Maximum amount of native tokens allowed to be bridged","type":"string"},"minChainFeeForBridging":{"additionalProperties":{"type":"integer"},"description":"For each chain, the minimum fee required to cover the submission of the transaction on the destination chain","type":"object"},"minOperationFee":{"additionalProperties":{"type":"integer"},"description":"For each chain, the minimum fee required to cover operational costs","type":"object"},"minUtxoChainValue":{"additionalProperties":{"type":"integer"},"description":"For each chain, the minimum allowed UTXO value","type":"object"},"minValueToBridge":{"description":"Minimum value allowed to be bridged","type":"integer"}},"type":"object"},"sendtx.TokenExchangeConfig":{"properties":{"dstChainID":{"description":"Destination chain ID","type":"string"},"tokenName":{"description":"Token identifier in the format \"policyId.name\"","type":"string"}},"type":"object"},"VCRunMode":{"enum":["reactor","skyline"],"type":"string"},"ErrorResponse":{"properties":{"err":{"type":"string"}},"type":"object"}}},"paths":{"/CardanoTx/GetSettings":{"get":{"description":"Returns the participating chains with their specific settings, global bridge configuration (such as minimum and maximum allowed bridging amounts), and, for each source chain, the native token that will be received on the destination chain.","responses":{"200":{"description":"OK - Returns the configuration settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsResponse"}}}},"401":{"description":"Unauthorized – API key missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get bridge settings","tags":["CardanoTx"]}}}}
```
